APIErrorResponse API error response.
type APIErrorResponse struct {
// A list of errors.
Errors []string `json:"errors"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIErrorResponse(errors []string) *APIErrorResponse
NewAPIErrorResponse instantiates a new APIErrorResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIErrorResponseWithDefaults() *APIErrorResponse
NewAPIErrorResponseWithDefaults instantiates a new APIErrorResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIErrorResponse) GetErrors() []string
GetErrors returns the Errors field value.
func (o *APIErrorResponse) GetErrorsOk() (*[]string, bool)
GetErrorsOk returns a tuple with the Errors field value and a boolean to check if the value has been set.
func (o APIErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIErrorResponse) SetErrors(v []string)
SetErrors sets field value.
func (o *APIErrorResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyCreateAttributes Attributes used to create an API Key.
type APIKeyCreateAttributes struct {
// Name of the API key.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyCreateAttributes(name string) *APIKeyCreateAttributes
NewAPIKeyCreateAttributes instantiates a new APIKeyCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyCreateAttributesWithDefaults() *APIKeyCreateAttributes
NewAPIKeyCreateAttributesWithDefaults instantiates a new APIKeyCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *APIKeyCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o APIKeyCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyCreateAttributes) SetName(v string)
SetName sets field value.
func (o *APIKeyCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyCreateData Object used to create an API key.
type APIKeyCreateData struct {
// Attributes used to create an API Key.
Attributes APIKeyCreateAttributes `json:"attributes"`
// API Keys resource type.
Type APIKeysType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyCreateData(attributes APIKeyCreateAttributes, typeVar APIKeysType) *APIKeyCreateData
NewAPIKeyCreateData instantiates a new APIKeyCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyCreateDataWithDefaults() *APIKeyCreateData
NewAPIKeyCreateDataWithDefaults instantiates a new APIKeyCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyCreateData) GetAttributes() APIKeyCreateAttributes
GetAttributes returns the Attributes field value.
func (o *APIKeyCreateData) GetAttributesOk() (*APIKeyCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *APIKeyCreateData) GetType() APIKeysType
GetType returns the Type field value.
func (o *APIKeyCreateData) GetTypeOk() (*APIKeysType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o APIKeyCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyCreateData) SetAttributes(v APIKeyCreateAttributes)
SetAttributes sets field value.
func (o *APIKeyCreateData) SetType(v APIKeysType)
SetType sets field value.
func (o *APIKeyCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyCreateRequest Request used to create an API key.
type APIKeyCreateRequest struct {
// Object used to create an API key.
Data APIKeyCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyCreateRequest(data APIKeyCreateData) *APIKeyCreateRequest
NewAPIKeyCreateRequest instantiates a new APIKeyCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyCreateRequestWithDefaults() *APIKeyCreateRequest
NewAPIKeyCreateRequestWithDefaults instantiates a new APIKeyCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyCreateRequest) GetData() APIKeyCreateData
GetData returns the Data field value.
func (o *APIKeyCreateRequest) GetDataOk() (*APIKeyCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o APIKeyCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyCreateRequest) SetData(v APIKeyCreateData)
SetData sets field value.
func (o *APIKeyCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyRelationships Resources related to the API key.
type APIKeyRelationships struct {
// Relationship to user.
CreatedBy *RelationshipToUser `json:"created_by,omitempty"`
// Relationship to user.
ModifiedBy *RelationshipToUser `json:"modified_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyRelationships() *APIKeyRelationships
NewAPIKeyRelationships instantiates a new APIKeyRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyRelationshipsWithDefaults() *APIKeyRelationships
NewAPIKeyRelationshipsWithDefaults instantiates a new APIKeyRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyRelationships) GetCreatedBy() RelationshipToUser
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *APIKeyRelationships) GetCreatedByOk() (*RelationshipToUser, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeyRelationships) GetModifiedBy() RelationshipToUser
GetModifiedBy returns the ModifiedBy field value if set, zero value otherwise.
func (o *APIKeyRelationships) GetModifiedByOk() (*RelationshipToUser, bool)
GetModifiedByOk returns a tuple with the ModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeyRelationships) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *APIKeyRelationships) HasModifiedBy() bool
HasModifiedBy returns a boolean if a field has been set.
func (o APIKeyRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyRelationships) SetCreatedBy(v RelationshipToUser)
SetCreatedBy gets a reference to the given RelationshipToUser and assigns it to the CreatedBy field.
func (o *APIKeyRelationships) SetModifiedBy(v RelationshipToUser)
SetModifiedBy gets a reference to the given RelationshipToUser and assigns it to the ModifiedBy field.
func (o *APIKeyRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyResponse Response for retrieving an API key.
type APIKeyResponse struct {
// Datadog API key.
Data *FullAPIKey `json:"data,omitempty"`
// Array of objects related to the API key.
Included []APIKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyResponse() *APIKeyResponse
NewAPIKeyResponse instantiates a new APIKeyResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyResponseWithDefaults() *APIKeyResponse
NewAPIKeyResponseWithDefaults instantiates a new APIKeyResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyResponse) GetData() FullAPIKey
GetData returns the Data field value if set, zero value otherwise.
func (o *APIKeyResponse) GetDataOk() (*FullAPIKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeyResponse) GetIncluded() []APIKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *APIKeyResponse) GetIncludedOk() (*[]APIKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeyResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *APIKeyResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o APIKeyResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyResponse) SetData(v FullAPIKey)
SetData gets a reference to the given FullAPIKey and assigns it to the Data field.
func (o *APIKeyResponse) SetIncluded(v []APIKeyResponseIncludedItem)
SetIncluded gets a reference to the given []APIKeyResponseIncludedItem and assigns it to the Included field.
func (o *APIKeyResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyResponseIncludedItem - An object related to an API key.
type APIKeyResponseIncludedItem struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsAPIKeyResponseIncludedItem(v *User) APIKeyResponseIncludedItem
UserAsAPIKeyResponseIncludedItem is a convenience function that returns User wrapped in APIKeyResponseIncludedItem.
func (obj *APIKeyResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj APIKeyResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *APIKeyResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
APIKeyUpdateAttributes Attributes used to update an API Key.
type APIKeyUpdateAttributes struct {
// Name of the API key.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyUpdateAttributes(name string) *APIKeyUpdateAttributes
NewAPIKeyUpdateAttributes instantiates a new APIKeyUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyUpdateAttributesWithDefaults() *APIKeyUpdateAttributes
NewAPIKeyUpdateAttributesWithDefaults instantiates a new APIKeyUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyUpdateAttributes) GetName() string
GetName returns the Name field value.
func (o *APIKeyUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o APIKeyUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyUpdateAttributes) SetName(v string)
SetName sets field value.
func (o *APIKeyUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyUpdateData Object used to update an API key.
type APIKeyUpdateData struct {
// Attributes used to update an API Key.
Attributes APIKeyUpdateAttributes `json:"attributes"`
// ID of the API key.
Id string `json:"id"`
// API Keys resource type.
Type APIKeysType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyUpdateData(attributes APIKeyUpdateAttributes, id string, typeVar APIKeysType) *APIKeyUpdateData
NewAPIKeyUpdateData instantiates a new APIKeyUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyUpdateDataWithDefaults() *APIKeyUpdateData
NewAPIKeyUpdateDataWithDefaults instantiates a new APIKeyUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyUpdateData) GetAttributes() APIKeyUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *APIKeyUpdateData) GetAttributesOk() (*APIKeyUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *APIKeyUpdateData) GetId() string
GetId returns the Id field value.
func (o *APIKeyUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *APIKeyUpdateData) GetType() APIKeysType
GetType returns the Type field value.
func (o *APIKeyUpdateData) GetTypeOk() (*APIKeysType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o APIKeyUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyUpdateData) SetAttributes(v APIKeyUpdateAttributes)
SetAttributes sets field value.
func (o *APIKeyUpdateData) SetId(v string)
SetId sets field value.
func (o *APIKeyUpdateData) SetType(v APIKeysType)
SetType sets field value.
func (o *APIKeyUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyUpdateRequest Request used to update an API key.
type APIKeyUpdateRequest struct {
// Object used to update an API key.
Data APIKeyUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyUpdateRequest(data APIKeyUpdateData) *APIKeyUpdateRequest
NewAPIKeyUpdateRequest instantiates a new APIKeyUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyUpdateRequestWithDefaults() *APIKeyUpdateRequest
NewAPIKeyUpdateRequestWithDefaults instantiates a new APIKeyUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyUpdateRequest) GetData() APIKeyUpdateData
GetData returns the Data field value.
func (o *APIKeyUpdateRequest) GetDataOk() (*APIKeyUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o APIKeyUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyUpdateRequest) SetData(v APIKeyUpdateData)
SetData sets field value.
func (o *APIKeyUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeysResponse Response for a list of API keys.
type APIKeysResponse struct {
// Array of API keys.
Data []PartialAPIKey `json:"data,omitempty"`
// Array of objects related to the API key.
Included []APIKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeysResponse() *APIKeysResponse
NewAPIKeysResponse instantiates a new APIKeysResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeysResponseWithDefaults() *APIKeysResponse
NewAPIKeysResponseWithDefaults instantiates a new APIKeysResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeysResponse) GetData() []PartialAPIKey
GetData returns the Data field value if set, zero value otherwise.
func (o *APIKeysResponse) GetDataOk() (*[]PartialAPIKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeysResponse) GetIncluded() []APIKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *APIKeysResponse) GetIncludedOk() (*[]APIKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeysResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *APIKeysResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o APIKeysResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeysResponse) SetData(v []PartialAPIKey)
SetData gets a reference to the given []PartialAPIKey and assigns it to the Data field.
func (o *APIKeysResponse) SetIncluded(v []APIKeyResponseIncludedItem)
SetIncluded gets a reference to the given []APIKeyResponseIncludedItem and assigns it to the Included field.
func (o *APIKeysResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeysSort Sorting options
type APIKeysSort string
List of APIKeysSort.
const (
APIKEYSSORT_CREATED_AT_ASCENDING APIKeysSort = "created_at"
APIKEYSSORT_CREATED_AT_DESCENDING APIKeysSort = "-created_at"
APIKEYSSORT_LAST4_ASCENDING APIKeysSort = "last4"
APIKEYSSORT_LAST4_DESCENDING APIKeysSort = "-last4"
APIKEYSSORT_MODIFIED_AT_ASCENDING APIKeysSort = "modified_at"
APIKEYSSORT_MODIFIED_AT_DESCENDING APIKeysSort = "-modified_at"
APIKEYSSORT_NAME_ASCENDING APIKeysSort = "name"
APIKEYSSORT_NAME_DESCENDING APIKeysSort = "-name"
)
func NewAPIKeysSortFromValue(v string) (*APIKeysSort, error)
NewAPIKeysSortFromValue returns a pointer to a valid APIKeysSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *APIKeysSort) GetAllowedValues() []APIKeysSort
GetAllowedValues reeturns the list of possible values.
func (v APIKeysSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v APIKeysSort) Ptr() *APIKeysSort
Ptr returns reference to APIKeysSort value.
func (v *APIKeysSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
APIKeysType API Keys resource type.
type APIKeysType string
List of APIKeysType.
const (
APIKEYSTYPE_API_KEYS APIKeysType = "api_keys"
)
func NewAPIKeysTypeFromValue(v string) (*APIKeysType, error)
NewAPIKeysTypeFromValue returns a pointer to a valid APIKeysType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *APIKeysType) GetAllowedValues() []APIKeysType
GetAllowedValues reeturns the list of possible values.
func (v APIKeysType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v APIKeysType) Ptr() *APIKeysType
Ptr returns reference to APIKeysType value.
func (v *APIKeysType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ApplicationKeyCreateAttributes Attributes used to create an application Key.
type ApplicationKeyCreateAttributes struct {
// Name of the application key.
Name string `json:"name"`
// Array of scopes to grant the application key.
Scopes datadog.NullableList[string] `json:"scopes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyCreateAttributes(name string) *ApplicationKeyCreateAttributes
NewApplicationKeyCreateAttributes instantiates a new ApplicationKeyCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyCreateAttributesWithDefaults() *ApplicationKeyCreateAttributes
NewApplicationKeyCreateAttributesWithDefaults instantiates a new ApplicationKeyCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *ApplicationKeyCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ApplicationKeyCreateAttributes) GetScopes() []string
GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ApplicationKeyCreateAttributes) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *ApplicationKeyCreateAttributes) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o ApplicationKeyCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyCreateAttributes) SetName(v string)
SetName sets field value.
func (o *ApplicationKeyCreateAttributes) SetScopes(v []string)
SetScopes gets a reference to the given datadog.NullableList[string] and assigns it to the Scopes field.
func (o *ApplicationKeyCreateAttributes) SetScopesNil()
SetScopesNil sets the value for Scopes to be an explicit nil.
func (o *ApplicationKeyCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *ApplicationKeyCreateAttributes) UnsetScopes()
UnsetScopes ensures that no value is present for Scopes, not even an explicit nil.
ApplicationKeyCreateData Object used to create an application key.
type ApplicationKeyCreateData struct {
// Attributes used to create an application Key.
Attributes ApplicationKeyCreateAttributes `json:"attributes"`
// Application Keys resource type.
Type ApplicationKeysType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyCreateData(attributes ApplicationKeyCreateAttributes, typeVar ApplicationKeysType) *ApplicationKeyCreateData
NewApplicationKeyCreateData instantiates a new ApplicationKeyCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyCreateDataWithDefaults() *ApplicationKeyCreateData
NewApplicationKeyCreateDataWithDefaults instantiates a new ApplicationKeyCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyCreateData) GetAttributes() ApplicationKeyCreateAttributes
GetAttributes returns the Attributes field value.
func (o *ApplicationKeyCreateData) GetAttributesOk() (*ApplicationKeyCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ApplicationKeyCreateData) GetType() ApplicationKeysType
GetType returns the Type field value.
func (o *ApplicationKeyCreateData) GetTypeOk() (*ApplicationKeysType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ApplicationKeyCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyCreateData) SetAttributes(v ApplicationKeyCreateAttributes)
SetAttributes sets field value.
func (o *ApplicationKeyCreateData) SetType(v ApplicationKeysType)
SetType sets field value.
func (o *ApplicationKeyCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyCreateRequest Request used to create an application key.
type ApplicationKeyCreateRequest struct {
// Object used to create an application key.
Data ApplicationKeyCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyCreateRequest(data ApplicationKeyCreateData) *ApplicationKeyCreateRequest
NewApplicationKeyCreateRequest instantiates a new ApplicationKeyCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyCreateRequestWithDefaults() *ApplicationKeyCreateRequest
NewApplicationKeyCreateRequestWithDefaults instantiates a new ApplicationKeyCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyCreateRequest) GetData() ApplicationKeyCreateData
GetData returns the Data field value.
func (o *ApplicationKeyCreateRequest) GetDataOk() (*ApplicationKeyCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ApplicationKeyCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyCreateRequest) SetData(v ApplicationKeyCreateData)
SetData sets field value.
func (o *ApplicationKeyCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyRelationships Resources related to the application key.
type ApplicationKeyRelationships struct {
// Relationship to user.
OwnedBy *RelationshipToUser `json:"owned_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyRelationships() *ApplicationKeyRelationships
NewApplicationKeyRelationships instantiates a new ApplicationKeyRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyRelationshipsWithDefaults() *ApplicationKeyRelationships
NewApplicationKeyRelationshipsWithDefaults instantiates a new ApplicationKeyRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyRelationships) GetOwnedBy() RelationshipToUser
GetOwnedBy returns the OwnedBy field value if set, zero value otherwise.
func (o *ApplicationKeyRelationships) GetOwnedByOk() (*RelationshipToUser, bool)
GetOwnedByOk returns a tuple with the OwnedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ApplicationKeyRelationships) HasOwnedBy() bool
HasOwnedBy returns a boolean if a field has been set.
func (o ApplicationKeyRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyRelationships) SetOwnedBy(v RelationshipToUser)
SetOwnedBy gets a reference to the given RelationshipToUser and assigns it to the OwnedBy field.
func (o *ApplicationKeyRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyResponse Response for retrieving an application key.
type ApplicationKeyResponse struct {
// Datadog application key.
Data *FullApplicationKey `json:"data,omitempty"`
// Array of objects related to the application key.
Included []ApplicationKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyResponse() *ApplicationKeyResponse
NewApplicationKeyResponse instantiates a new ApplicationKeyResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyResponseWithDefaults() *ApplicationKeyResponse
NewApplicationKeyResponseWithDefaults instantiates a new ApplicationKeyResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyResponse) GetData() FullApplicationKey
GetData returns the Data field value if set, zero value otherwise.
func (o *ApplicationKeyResponse) GetDataOk() (*FullApplicationKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ApplicationKeyResponse) GetIncluded() []ApplicationKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *ApplicationKeyResponse) GetIncludedOk() (*[]ApplicationKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ApplicationKeyResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *ApplicationKeyResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o ApplicationKeyResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyResponse) SetData(v FullApplicationKey)
SetData gets a reference to the given FullApplicationKey and assigns it to the Data field.
func (o *ApplicationKeyResponse) SetIncluded(v []ApplicationKeyResponseIncludedItem)
SetIncluded gets a reference to the given []ApplicationKeyResponseIncludedItem and assigns it to the Included field.
func (o *ApplicationKeyResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyResponseIncludedItem - An object related to an application key.
type ApplicationKeyResponseIncludedItem struct {
User *User
Role *Role
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RoleAsApplicationKeyResponseIncludedItem(v *Role) ApplicationKeyResponseIncludedItem
RoleAsApplicationKeyResponseIncludedItem is a convenience function that returns Role wrapped in ApplicationKeyResponseIncludedItem.
func UserAsApplicationKeyResponseIncludedItem(v *User) ApplicationKeyResponseIncludedItem
UserAsApplicationKeyResponseIncludedItem is a convenience function that returns User wrapped in ApplicationKeyResponseIncludedItem.
func (obj *ApplicationKeyResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ApplicationKeyResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ApplicationKeyResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ApplicationKeyUpdateAttributes Attributes used to update an application Key.
type ApplicationKeyUpdateAttributes struct {
// Name of the application key.
Name *string `json:"name,omitempty"`
// Array of scopes to grant the application key.
Scopes datadog.NullableList[string] `json:"scopes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyUpdateAttributes() *ApplicationKeyUpdateAttributes
NewApplicationKeyUpdateAttributes instantiates a new ApplicationKeyUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyUpdateAttributesWithDefaults() *ApplicationKeyUpdateAttributes
NewApplicationKeyUpdateAttributesWithDefaults instantiates a new ApplicationKeyUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ApplicationKeyUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ApplicationKeyUpdateAttributes) GetScopes() []string
GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ApplicationKeyUpdateAttributes) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *ApplicationKeyUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *ApplicationKeyUpdateAttributes) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o ApplicationKeyUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ApplicationKeyUpdateAttributes) SetScopes(v []string)
SetScopes gets a reference to the given datadog.NullableList[string] and assigns it to the Scopes field.
func (o *ApplicationKeyUpdateAttributes) SetScopesNil()
SetScopesNil sets the value for Scopes to be an explicit nil.
func (o *ApplicationKeyUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *ApplicationKeyUpdateAttributes) UnsetScopes()
UnsetScopes ensures that no value is present for Scopes, not even an explicit nil.
ApplicationKeyUpdateData Object used to update an application key.
type ApplicationKeyUpdateData struct {
// Attributes used to update an application Key.
Attributes ApplicationKeyUpdateAttributes `json:"attributes"`
// ID of the application key.
Id string `json:"id"`
// Application Keys resource type.
Type ApplicationKeysType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyUpdateData(attributes ApplicationKeyUpdateAttributes, id string, typeVar ApplicationKeysType) *ApplicationKeyUpdateData
NewApplicationKeyUpdateData instantiates a new ApplicationKeyUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyUpdateDataWithDefaults() *ApplicationKeyUpdateData
NewApplicationKeyUpdateDataWithDefaults instantiates a new ApplicationKeyUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyUpdateData) GetAttributes() ApplicationKeyUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *ApplicationKeyUpdateData) GetAttributesOk() (*ApplicationKeyUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ApplicationKeyUpdateData) GetId() string
GetId returns the Id field value.
func (o *ApplicationKeyUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *ApplicationKeyUpdateData) GetType() ApplicationKeysType
GetType returns the Type field value.
func (o *ApplicationKeyUpdateData) GetTypeOk() (*ApplicationKeysType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ApplicationKeyUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyUpdateData) SetAttributes(v ApplicationKeyUpdateAttributes)
SetAttributes sets field value.
func (o *ApplicationKeyUpdateData) SetId(v string)
SetId sets field value.
func (o *ApplicationKeyUpdateData) SetType(v ApplicationKeysType)
SetType sets field value.
func (o *ApplicationKeyUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyUpdateRequest Request used to update an application key.
type ApplicationKeyUpdateRequest struct {
// Object used to update an application key.
Data ApplicationKeyUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyUpdateRequest(data ApplicationKeyUpdateData) *ApplicationKeyUpdateRequest
NewApplicationKeyUpdateRequest instantiates a new ApplicationKeyUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyUpdateRequestWithDefaults() *ApplicationKeyUpdateRequest
NewApplicationKeyUpdateRequestWithDefaults instantiates a new ApplicationKeyUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyUpdateRequest) GetData() ApplicationKeyUpdateData
GetData returns the Data field value.
func (o *ApplicationKeyUpdateRequest) GetDataOk() (*ApplicationKeyUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ApplicationKeyUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyUpdateRequest) SetData(v ApplicationKeyUpdateData)
SetData sets field value.
func (o *ApplicationKeyUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeysSort Sorting options
type ApplicationKeysSort string
List of ApplicationKeysSort.
const (
APPLICATIONKEYSSORT_CREATED_AT_ASCENDING ApplicationKeysSort = "created_at"
APPLICATIONKEYSSORT_CREATED_AT_DESCENDING ApplicationKeysSort = "-created_at"
APPLICATIONKEYSSORT_LAST4_ASCENDING ApplicationKeysSort = "last4"
APPLICATIONKEYSSORT_LAST4_DESCENDING ApplicationKeysSort = "-last4"
APPLICATIONKEYSSORT_NAME_ASCENDING ApplicationKeysSort = "name"
APPLICATIONKEYSSORT_NAME_DESCENDING ApplicationKeysSort = "-name"
)
func NewApplicationKeysSortFromValue(v string) (*ApplicationKeysSort, error)
NewApplicationKeysSortFromValue returns a pointer to a valid ApplicationKeysSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ApplicationKeysSort) GetAllowedValues() []ApplicationKeysSort
GetAllowedValues reeturns the list of possible values.
func (v ApplicationKeysSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ApplicationKeysSort) Ptr() *ApplicationKeysSort
Ptr returns reference to ApplicationKeysSort value.
func (v *ApplicationKeysSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ApplicationKeysType Application Keys resource type.
type ApplicationKeysType string
List of ApplicationKeysType.
const (
APPLICATIONKEYSTYPE_APPLICATION_KEYS ApplicationKeysType = "application_keys"
)
func NewApplicationKeysTypeFromValue(v string) (*ApplicationKeysType, error)
NewApplicationKeysTypeFromValue returns a pointer to a valid ApplicationKeysType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ApplicationKeysType) GetAllowedValues() []ApplicationKeysType
GetAllowedValues reeturns the list of possible values.
func (v ApplicationKeysType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ApplicationKeysType) Ptr() *ApplicationKeysType
Ptr returns reference to ApplicationKeysType value.
func (v *ApplicationKeysType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuditApi service type
type AuditApi datadog.Service
func NewAuditApi(client *datadog.APIClient) *AuditApi
NewAuditApi Returns NewAuditApi.
func (a *AuditApi) ListAuditLogs(ctx _context.Context, o ...ListAuditLogsOptionalParameters) (AuditLogsEventsResponse, *_nethttp.Response, error)
ListAuditLogs Get a list of Audit Logs events. List endpoint returns events that match a Audit Logs search query. [Results are paginated]1.
Use this endpoint to see your latest Audit Logs events.
func (a *AuditApi) ListAuditLogsWithPagination(ctx _context.Context, o ...ListAuditLogsOptionalParameters) (<-chan datadog.PaginationResult[AuditLogsEvent], func())
ListAuditLogsWithPagination provides a paginated version of ListAuditLogs returning a channel with all items.
func (a *AuditApi) SearchAuditLogs(ctx _context.Context, o ...SearchAuditLogsOptionalParameters) (AuditLogsEventsResponse, *_nethttp.Response, error)
SearchAuditLogs Search Audit Logs events. List endpoint returns Audit Logs events that match an Audit search query. [Results are paginated]1.
Use this endpoint to build complex Audit Logs events filtering and search.
func (a *AuditApi) SearchAuditLogsWithPagination(ctx _context.Context, o ...SearchAuditLogsOptionalParameters) (<-chan datadog.PaginationResult[AuditLogsEvent], func())
SearchAuditLogsWithPagination provides a paginated version of SearchAuditLogs returning a channel with all items.
AuditLogsEvent Object description of an Audit Logs event after it is processed and stored by Datadog.
type AuditLogsEvent struct {
// JSON object containing all event attributes and their associated values.
Attributes *AuditLogsEventAttributes `json:"attributes,omitempty"`
// Unique ID of the event.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *AuditLogsEventType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsEvent() *AuditLogsEvent
NewAuditLogsEvent instantiates a new AuditLogsEvent object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsEventWithDefaults() *AuditLogsEvent
NewAuditLogsEventWithDefaults instantiates a new AuditLogsEvent object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsEvent) GetAttributes() AuditLogsEventAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuditLogsEvent) GetAttributesOk() (*AuditLogsEventAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEvent) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *AuditLogsEvent) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEvent) GetType() AuditLogsEventType
GetType returns the Type field value if set, zero value otherwise.
func (o *AuditLogsEvent) GetTypeOk() (*AuditLogsEventType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEvent) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuditLogsEvent) HasId() bool
HasId returns a boolean if a field has been set.
func (o *AuditLogsEvent) HasType() bool
HasType returns a boolean if a field has been set.
func (o AuditLogsEvent) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsEvent) SetAttributes(v AuditLogsEventAttributes)
SetAttributes gets a reference to the given AuditLogsEventAttributes and assigns it to the Attributes field.
func (o *AuditLogsEvent) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *AuditLogsEvent) SetType(v AuditLogsEventType)
SetType gets a reference to the given AuditLogsEventType and assigns it to the Type field.
func (o *AuditLogsEvent) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsEventAttributes JSON object containing all event attributes and their associated values.
type AuditLogsEventAttributes struct {
// JSON object of attributes from Audit Logs events.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// Name of the application or service generating Audit Logs events.
// This name is used to correlate Audit Logs to APM, so make sure you specify the same
// value when you use both products.
Service *string `json:"service,omitempty"`
// Array of tags associated with your event.
Tags []string `json:"tags,omitempty"`
// Timestamp of your event.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsEventAttributes() *AuditLogsEventAttributes
NewAuditLogsEventAttributes instantiates a new AuditLogsEventAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsEventAttributesWithDefaults() *AuditLogsEventAttributes
NewAuditLogsEventAttributesWithDefaults instantiates a new AuditLogsEventAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsEventAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuditLogsEventAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *AuditLogsEventAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *AuditLogsEventAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *AuditLogsEventAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuditLogsEventAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *AuditLogsEventAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *AuditLogsEventAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o AuditLogsEventAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsEventAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *AuditLogsEventAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *AuditLogsEventAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *AuditLogsEventAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *AuditLogsEventAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsEventType Type of the event.
type AuditLogsEventType string
List of AuditLogsEventType.
const (
AUDITLOGSEVENTTYPE_Audit AuditLogsEventType = "audit"
)
func NewAuditLogsEventTypeFromValue(v string) (*AuditLogsEventType, error)
NewAuditLogsEventTypeFromValue returns a pointer to a valid AuditLogsEventType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuditLogsEventType) GetAllowedValues() []AuditLogsEventType
GetAllowedValues reeturns the list of possible values.
func (v AuditLogsEventType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuditLogsEventType) Ptr() *AuditLogsEventType
Ptr returns reference to AuditLogsEventType value.
func (v *AuditLogsEventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuditLogsEventsResponse Response object with all events matching the request and pagination information.
type AuditLogsEventsResponse struct {
// Array of events matching the request.
Data []AuditLogsEvent `json:"data,omitempty"`
// Links attributes.
Links *AuditLogsResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *AuditLogsResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsEventsResponse() *AuditLogsEventsResponse
NewAuditLogsEventsResponse instantiates a new AuditLogsEventsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsEventsResponseWithDefaults() *AuditLogsEventsResponse
NewAuditLogsEventsResponseWithDefaults instantiates a new AuditLogsEventsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsEventsResponse) GetData() []AuditLogsEvent
GetData returns the Data field value if set, zero value otherwise.
func (o *AuditLogsEventsResponse) GetDataOk() (*[]AuditLogsEvent, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventsResponse) GetLinks() AuditLogsResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *AuditLogsEventsResponse) GetLinksOk() (*AuditLogsResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventsResponse) GetMeta() AuditLogsResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *AuditLogsEventsResponse) GetMetaOk() (*AuditLogsResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *AuditLogsEventsResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *AuditLogsEventsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o AuditLogsEventsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsEventsResponse) SetData(v []AuditLogsEvent)
SetData gets a reference to the given []AuditLogsEvent and assigns it to the Data field.
func (o *AuditLogsEventsResponse) SetLinks(v AuditLogsResponseLinks)
SetLinks gets a reference to the given AuditLogsResponseLinks and assigns it to the Links field.
func (o *AuditLogsEventsResponse) SetMeta(v AuditLogsResponseMetadata)
SetMeta gets a reference to the given AuditLogsResponseMetadata and assigns it to the Meta field.
func (o *AuditLogsEventsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsQueryFilter Search and filter query settings.
type AuditLogsQueryFilter struct {
// Minimum time for the requested events. Supports date, math, and regular timestamps (in milliseconds).
From *string `json:"from,omitempty"`
// Search query following the Audit Logs search syntax.
Query *string `json:"query,omitempty"`
// Maximum time for the requested events. Supports date, math, and regular timestamps (in milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsQueryFilter() *AuditLogsQueryFilter
NewAuditLogsQueryFilter instantiates a new AuditLogsQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsQueryFilterWithDefaults() *AuditLogsQueryFilter
NewAuditLogsQueryFilterWithDefaults instantiates a new AuditLogsQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *AuditLogsQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *AuditLogsQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *AuditLogsQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *AuditLogsQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *AuditLogsQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o AuditLogsQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *AuditLogsQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *AuditLogsQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *AuditLogsQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsQueryOptions Global query options that are used during the query. Note: Specify either timezone or time offset, not both. Otherwise, the query fails.
type AuditLogsQueryOptions struct {
// Time offset (in seconds) to apply to the query.
TimeOffset *int64 `json:"time_offset,omitempty"`
// The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York).
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsQueryOptions() *AuditLogsQueryOptions
NewAuditLogsQueryOptions instantiates a new AuditLogsQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsQueryOptionsWithDefaults() *AuditLogsQueryOptions
NewAuditLogsQueryOptionsWithDefaults instantiates a new AuditLogsQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *AuditLogsQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *AuditLogsQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *AuditLogsQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o AuditLogsQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *AuditLogsQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *AuditLogsQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsQueryPageOptions Paging attributes for listing events.
type AuditLogsQueryPageOptions struct {
// List following results with a cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// Maximum number of events in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsQueryPageOptions() *AuditLogsQueryPageOptions
NewAuditLogsQueryPageOptions instantiates a new AuditLogsQueryPageOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsQueryPageOptionsWithDefaults() *AuditLogsQueryPageOptions
NewAuditLogsQueryPageOptionsWithDefaults instantiates a new AuditLogsQueryPageOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsQueryPageOptions) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *AuditLogsQueryPageOptions) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryPageOptions) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *AuditLogsQueryPageOptions) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryPageOptions) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *AuditLogsQueryPageOptions) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o AuditLogsQueryPageOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsQueryPageOptions) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *AuditLogsQueryPageOptions) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *AuditLogsQueryPageOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsResponseLinks Links attributes.
type AuditLogsResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsResponseLinks() *AuditLogsResponseLinks
NewAuditLogsResponseLinks instantiates a new AuditLogsResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsResponseLinksWithDefaults() *AuditLogsResponseLinks
NewAuditLogsResponseLinksWithDefaults instantiates a new AuditLogsResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *AuditLogsResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o AuditLogsResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *AuditLogsResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsResponseMetadata The metadata associated with a request.
type AuditLogsResponseMetadata struct {
// Time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// Paging attributes.
Page *AuditLogsResponsePage `json:"page,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The status of the response.
Status *AuditLogsResponseStatus `json:"status,omitempty"`
// A list of warnings (non-fatal errors) encountered. Partial results may return if
// warnings are present in the response.
Warnings []AuditLogsWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsResponseMetadata() *AuditLogsResponseMetadata
NewAuditLogsResponseMetadata instantiates a new AuditLogsResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsResponseMetadataWithDefaults() *AuditLogsResponseMetadata
NewAuditLogsResponseMetadataWithDefaults instantiates a new AuditLogsResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) GetPage() AuditLogsResponsePage
GetPage returns the Page field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetPageOk() (*AuditLogsResponsePage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) GetStatus() AuditLogsResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetStatusOk() (*AuditLogsResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) GetWarnings() []AuditLogsWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetWarningsOk() (*[]AuditLogsWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *AuditLogsResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *AuditLogsResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *AuditLogsResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *AuditLogsResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o AuditLogsResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *AuditLogsResponseMetadata) SetPage(v AuditLogsResponsePage)
SetPage gets a reference to the given AuditLogsResponsePage and assigns it to the Page field.
func (o *AuditLogsResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *AuditLogsResponseMetadata) SetStatus(v AuditLogsResponseStatus)
SetStatus gets a reference to the given AuditLogsResponseStatus and assigns it to the Status field.
func (o *AuditLogsResponseMetadata) SetWarnings(v []AuditLogsWarning)
SetWarnings gets a reference to the given []AuditLogsWarning and assigns it to the Warnings field.
func (o *AuditLogsResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsResponsePage Paging attributes.
type AuditLogsResponsePage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsResponsePage() *AuditLogsResponsePage
NewAuditLogsResponsePage instantiates a new AuditLogsResponsePage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsResponsePageWithDefaults() *AuditLogsResponsePage
NewAuditLogsResponsePageWithDefaults instantiates a new AuditLogsResponsePage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsResponsePage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *AuditLogsResponsePage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponsePage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o AuditLogsResponsePage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsResponsePage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *AuditLogsResponsePage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsResponseStatus The status of the response.
type AuditLogsResponseStatus string
List of AuditLogsResponseStatus.
const (
AUDITLOGSRESPONSESTATUS_DONE AuditLogsResponseStatus = "done"
AUDITLOGSRESPONSESTATUS_TIMEOUT AuditLogsResponseStatus = "timeout"
)
func NewAuditLogsResponseStatusFromValue(v string) (*AuditLogsResponseStatus, error)
NewAuditLogsResponseStatusFromValue returns a pointer to a valid AuditLogsResponseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuditLogsResponseStatus) GetAllowedValues() []AuditLogsResponseStatus
GetAllowedValues reeturns the list of possible values.
func (v AuditLogsResponseStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuditLogsResponseStatus) Ptr() *AuditLogsResponseStatus
Ptr returns reference to AuditLogsResponseStatus value.
func (v *AuditLogsResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuditLogsSearchEventsRequest The request for a Audit Logs events list.
type AuditLogsSearchEventsRequest struct {
// Search and filter query settings.
Filter *AuditLogsQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Note: Specify either timezone or time offset, not both. Otherwise, the query fails.
Options *AuditLogsQueryOptions `json:"options,omitempty"`
// Paging attributes for listing events.
Page *AuditLogsQueryPageOptions `json:"page,omitempty"`
// Sort parameters when querying events.
Sort *AuditLogsSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsSearchEventsRequest() *AuditLogsSearchEventsRequest
NewAuditLogsSearchEventsRequest instantiates a new AuditLogsSearchEventsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsSearchEventsRequestWithDefaults() *AuditLogsSearchEventsRequest
NewAuditLogsSearchEventsRequestWithDefaults instantiates a new AuditLogsSearchEventsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsSearchEventsRequest) GetFilter() AuditLogsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *AuditLogsSearchEventsRequest) GetFilterOk() (*AuditLogsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsSearchEventsRequest) GetOptions() AuditLogsQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *AuditLogsSearchEventsRequest) GetOptionsOk() (*AuditLogsQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsSearchEventsRequest) GetPage() AuditLogsQueryPageOptions
GetPage returns the Page field value if set, zero value otherwise.
func (o *AuditLogsSearchEventsRequest) GetPageOk() (*AuditLogsQueryPageOptions, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsSearchEventsRequest) GetSort() AuditLogsSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *AuditLogsSearchEventsRequest) GetSortOk() (*AuditLogsSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsSearchEventsRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *AuditLogsSearchEventsRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *AuditLogsSearchEventsRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *AuditLogsSearchEventsRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o AuditLogsSearchEventsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsSearchEventsRequest) SetFilter(v AuditLogsQueryFilter)
SetFilter gets a reference to the given AuditLogsQueryFilter and assigns it to the Filter field.
func (o *AuditLogsSearchEventsRequest) SetOptions(v AuditLogsQueryOptions)
SetOptions gets a reference to the given AuditLogsQueryOptions and assigns it to the Options field.
func (o *AuditLogsSearchEventsRequest) SetPage(v AuditLogsQueryPageOptions)
SetPage gets a reference to the given AuditLogsQueryPageOptions and assigns it to the Page field.
func (o *AuditLogsSearchEventsRequest) SetSort(v AuditLogsSort)
SetSort gets a reference to the given AuditLogsSort and assigns it to the Sort field.
func (o *AuditLogsSearchEventsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsSort Sort parameters when querying events.
type AuditLogsSort string
List of AuditLogsSort.
const (
AUDITLOGSSORT_TIMESTAMP_ASCENDING AuditLogsSort = "timestamp"
AUDITLOGSSORT_TIMESTAMP_DESCENDING AuditLogsSort = "-timestamp"
)
func NewAuditLogsSortFromValue(v string) (*AuditLogsSort, error)
NewAuditLogsSortFromValue returns a pointer to a valid AuditLogsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuditLogsSort) GetAllowedValues() []AuditLogsSort
GetAllowedValues reeturns the list of possible values.
func (v AuditLogsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuditLogsSort) Ptr() *AuditLogsSort
Ptr returns reference to AuditLogsSort value.
func (v *AuditLogsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuditLogsWarning Warning message indicating something that went wrong with the query.
type AuditLogsWarning struct {
// Unique code for this type of warning.
Code *string `json:"code,omitempty"`
// Detailed explanation of this specific warning.
Detail *string `json:"detail,omitempty"`
// Short human-readable summary of the warning.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsWarning() *AuditLogsWarning
NewAuditLogsWarning instantiates a new AuditLogsWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsWarningWithDefaults() *AuditLogsWarning
NewAuditLogsWarningWithDefaults instantiates a new AuditLogsWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *AuditLogsWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *AuditLogsWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *AuditLogsWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *AuditLogsWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *AuditLogsWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o AuditLogsWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *AuditLogsWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *AuditLogsWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *AuditLogsWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMapping The AuthN Mapping object returned by API.
type AuthNMapping struct {
// Attributes of AuthN Mapping.
Attributes *AuthNMappingAttributes `json:"attributes,omitempty"`
// ID of the AuthN Mapping.
Id string `json:"id"`
// All relationships associated with AuthN Mapping.
Relationships *AuthNMappingRelationships `json:"relationships,omitempty"`
// AuthN Mappings resource type.
Type AuthNMappingsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMapping(id string, typeVar AuthNMappingsType) *AuthNMapping
NewAuthNMapping instantiates a new AuthNMapping object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingWithDefaults() *AuthNMapping
NewAuthNMappingWithDefaults instantiates a new AuthNMapping object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMapping) GetAttributes() AuthNMappingAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuthNMapping) GetAttributesOk() (*AuthNMappingAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMapping) GetId() string
GetId returns the Id field value.
func (o *AuthNMapping) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *AuthNMapping) GetRelationships() AuthNMappingRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *AuthNMapping) GetRelationshipsOk() (*AuthNMappingRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMapping) GetType() AuthNMappingsType
GetType returns the Type field value.
func (o *AuthNMapping) GetTypeOk() (*AuthNMappingsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *AuthNMapping) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuthNMapping) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o AuthNMapping) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMapping) SetAttributes(v AuthNMappingAttributes)
SetAttributes gets a reference to the given AuthNMappingAttributes and assigns it to the Attributes field.
func (o *AuthNMapping) SetId(v string)
SetId sets field value.
func (o *AuthNMapping) SetRelationships(v AuthNMappingRelationships)
SetRelationships gets a reference to the given AuthNMappingRelationships and assigns it to the Relationships field.
func (o *AuthNMapping) SetType(v AuthNMappingsType)
SetType sets field value.
func (o *AuthNMapping) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingAttributes Attributes of AuthN Mapping.
type AuthNMappingAttributes struct {
// Key portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeKey *string `json:"attribute_key,omitempty"`
// Value portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeValue *string `json:"attribute_value,omitempty"`
// Creation time of the AuthN Mapping.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last AuthN Mapping modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// The ID of the SAML assertion attribute.
SamlAssertionAttributeId *string `json:"saml_assertion_attribute_id,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingAttributes() *AuthNMappingAttributes
NewAuthNMappingAttributes instantiates a new AuthNMappingAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingAttributesWithDefaults() *AuthNMappingAttributes
NewAuthNMappingAttributesWithDefaults instantiates a new AuthNMappingAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingAttributes) GetAttributeKey() string
GetAttributeKey returns the AttributeKey field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetAttributeKeyOk() (*string, bool)
GetAttributeKeyOk returns a tuple with the AttributeKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) GetAttributeValue() string
GetAttributeValue returns the AttributeValue field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetAttributeValueOk() (*string, bool)
GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) GetSamlAssertionAttributeId() string
GetSamlAssertionAttributeId returns the SamlAssertionAttributeId field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetSamlAssertionAttributeIdOk() (*string, bool)
GetSamlAssertionAttributeIdOk returns a tuple with the SamlAssertionAttributeId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) HasAttributeKey() bool
HasAttributeKey returns a boolean if a field has been set.
func (o *AuthNMappingAttributes) HasAttributeValue() bool
HasAttributeValue returns a boolean if a field has been set.
func (o *AuthNMappingAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *AuthNMappingAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *AuthNMappingAttributes) HasSamlAssertionAttributeId() bool
HasSamlAssertionAttributeId returns a boolean if a field has been set.
func (o AuthNMappingAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingAttributes) SetAttributeKey(v string)
SetAttributeKey gets a reference to the given string and assigns it to the AttributeKey field.
func (o *AuthNMappingAttributes) SetAttributeValue(v string)
SetAttributeValue gets a reference to the given string and assigns it to the AttributeValue field.
func (o *AuthNMappingAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *AuthNMappingAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *AuthNMappingAttributes) SetSamlAssertionAttributeId(v string)
SetSamlAssertionAttributeId gets a reference to the given string and assigns it to the SamlAssertionAttributeId field.
func (o *AuthNMappingAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingCreateAttributes Key/Value pair of attributes used for create request.
type AuthNMappingCreateAttributes struct {
// Key portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeKey *string `json:"attribute_key,omitempty"`
// Value portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeValue *string `json:"attribute_value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingCreateAttributes() *AuthNMappingCreateAttributes
NewAuthNMappingCreateAttributes instantiates a new AuthNMappingCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingCreateAttributesWithDefaults() *AuthNMappingCreateAttributes
NewAuthNMappingCreateAttributesWithDefaults instantiates a new AuthNMappingCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingCreateAttributes) GetAttributeKey() string
GetAttributeKey returns the AttributeKey field value if set, zero value otherwise.
func (o *AuthNMappingCreateAttributes) GetAttributeKeyOk() (*string, bool)
GetAttributeKeyOk returns a tuple with the AttributeKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateAttributes) GetAttributeValue() string
GetAttributeValue returns the AttributeValue field value if set, zero value otherwise.
func (o *AuthNMappingCreateAttributes) GetAttributeValueOk() (*string, bool)
GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateAttributes) HasAttributeKey() bool
HasAttributeKey returns a boolean if a field has been set.
func (o *AuthNMappingCreateAttributes) HasAttributeValue() bool
HasAttributeValue returns a boolean if a field has been set.
func (o AuthNMappingCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingCreateAttributes) SetAttributeKey(v string)
SetAttributeKey gets a reference to the given string and assigns it to the AttributeKey field.
func (o *AuthNMappingCreateAttributes) SetAttributeValue(v string)
SetAttributeValue gets a reference to the given string and assigns it to the AttributeValue field.
func (o *AuthNMappingCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingCreateData Data for creating an AuthN Mapping.
type AuthNMappingCreateData struct {
// Key/Value pair of attributes used for create request.
Attributes *AuthNMappingCreateAttributes `json:"attributes,omitempty"`
// Relationship of AuthN Mapping create object to Role.
Relationships *AuthNMappingCreateRelationships `json:"relationships,omitempty"`
// AuthN Mappings resource type.
Type AuthNMappingsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingCreateData(typeVar AuthNMappingsType) *AuthNMappingCreateData
NewAuthNMappingCreateData instantiates a new AuthNMappingCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingCreateDataWithDefaults() *AuthNMappingCreateData
NewAuthNMappingCreateDataWithDefaults instantiates a new AuthNMappingCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingCreateData) GetAttributes() AuthNMappingCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuthNMappingCreateData) GetAttributesOk() (*AuthNMappingCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateData) GetRelationships() AuthNMappingCreateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *AuthNMappingCreateData) GetRelationshipsOk() (*AuthNMappingCreateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateData) GetType() AuthNMappingsType
GetType returns the Type field value.
func (o *AuthNMappingCreateData) GetTypeOk() (*AuthNMappingsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *AuthNMappingCreateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuthNMappingCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o AuthNMappingCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingCreateData) SetAttributes(v AuthNMappingCreateAttributes)
SetAttributes gets a reference to the given AuthNMappingCreateAttributes and assigns it to the Attributes field.
func (o *AuthNMappingCreateData) SetRelationships(v AuthNMappingCreateRelationships)
SetRelationships gets a reference to the given AuthNMappingCreateRelationships and assigns it to the Relationships field.
func (o *AuthNMappingCreateData) SetType(v AuthNMappingsType)
SetType sets field value.
func (o *AuthNMappingCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingCreateRelationships Relationship of AuthN Mapping create object to Role.
type AuthNMappingCreateRelationships struct {
// Relationship to role.
Role *RelationshipToRole `json:"role,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingCreateRelationships() *AuthNMappingCreateRelationships
NewAuthNMappingCreateRelationships instantiates a new AuthNMappingCreateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingCreateRelationshipsWithDefaults() *AuthNMappingCreateRelationships
NewAuthNMappingCreateRelationshipsWithDefaults instantiates a new AuthNMappingCreateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingCreateRelationships) GetRole() RelationshipToRole
GetRole returns the Role field value if set, zero value otherwise.
func (o *AuthNMappingCreateRelationships) GetRoleOk() (*RelationshipToRole, bool)
GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateRelationships) HasRole() bool
HasRole returns a boolean if a field has been set.
func (o AuthNMappingCreateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingCreateRelationships) SetRole(v RelationshipToRole)
SetRole gets a reference to the given RelationshipToRole and assigns it to the Role field.
func (o *AuthNMappingCreateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingCreateRequest Request for creating an AuthN Mapping.
type AuthNMappingCreateRequest struct {
// Data for creating an AuthN Mapping.
Data AuthNMappingCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingCreateRequest(data AuthNMappingCreateData) *AuthNMappingCreateRequest
NewAuthNMappingCreateRequest instantiates a new AuthNMappingCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingCreateRequestWithDefaults() *AuthNMappingCreateRequest
NewAuthNMappingCreateRequestWithDefaults instantiates a new AuthNMappingCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingCreateRequest) GetData() AuthNMappingCreateData
GetData returns the Data field value.
func (o *AuthNMappingCreateRequest) GetDataOk() (*AuthNMappingCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o AuthNMappingCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingCreateRequest) SetData(v AuthNMappingCreateData)
SetData sets field value.
func (o *AuthNMappingCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingIncluded - Included data in the AuthN Mapping response.
type AuthNMappingIncluded struct {
SAMLAssertionAttribute *SAMLAssertionAttribute
Role *Role
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RoleAsAuthNMappingIncluded(v *Role) AuthNMappingIncluded
RoleAsAuthNMappingIncluded is a convenience function that returns Role wrapped in AuthNMappingIncluded.
func SAMLAssertionAttributeAsAuthNMappingIncluded(v *SAMLAssertionAttribute) AuthNMappingIncluded
SAMLAssertionAttributeAsAuthNMappingIncluded is a convenience function that returns SAMLAssertionAttribute wrapped in AuthNMappingIncluded.
func (obj *AuthNMappingIncluded) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj AuthNMappingIncluded) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *AuthNMappingIncluded) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
AuthNMappingRelationships All relationships associated with AuthN Mapping.
type AuthNMappingRelationships struct {
// Relationship to role.
Role *RelationshipToRole `json:"role,omitempty"`
// AuthN Mapping relationship to SAML Assertion Attribute.
SamlAssertionAttribute *RelationshipToSAMLAssertionAttribute `json:"saml_assertion_attribute,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingRelationships() *AuthNMappingRelationships
NewAuthNMappingRelationships instantiates a new AuthNMappingRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingRelationshipsWithDefaults() *AuthNMappingRelationships
NewAuthNMappingRelationshipsWithDefaults instantiates a new AuthNMappingRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingRelationships) GetRole() RelationshipToRole
GetRole returns the Role field value if set, zero value otherwise.
func (o *AuthNMappingRelationships) GetRoleOk() (*RelationshipToRole, bool)
GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingRelationships) GetSamlAssertionAttribute() RelationshipToSAMLAssertionAttribute
GetSamlAssertionAttribute returns the SamlAssertionAttribute field value if set, zero value otherwise.
func (o *AuthNMappingRelationships) GetSamlAssertionAttributeOk() (*RelationshipToSAMLAssertionAttribute, bool)
GetSamlAssertionAttributeOk returns a tuple with the SamlAssertionAttribute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingRelationships) HasRole() bool
HasRole returns a boolean if a field has been set.
func (o *AuthNMappingRelationships) HasSamlAssertionAttribute() bool
HasSamlAssertionAttribute returns a boolean if a field has been set.
func (o AuthNMappingRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingRelationships) SetRole(v RelationshipToRole)
SetRole gets a reference to the given RelationshipToRole and assigns it to the Role field.
func (o *AuthNMappingRelationships) SetSamlAssertionAttribute(v RelationshipToSAMLAssertionAttribute)
SetSamlAssertionAttribute gets a reference to the given RelationshipToSAMLAssertionAttribute and assigns it to the SamlAssertionAttribute field.
func (o *AuthNMappingRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingResponse AuthN Mapping response from the API.
type AuthNMappingResponse struct {
// The AuthN Mapping object returned by API.
Data *AuthNMapping `json:"data,omitempty"`
// Included data in the AuthN Mapping response.
Included []AuthNMappingIncluded `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingResponse() *AuthNMappingResponse
NewAuthNMappingResponse instantiates a new AuthNMappingResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingResponseWithDefaults() *AuthNMappingResponse
NewAuthNMappingResponseWithDefaults instantiates a new AuthNMappingResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingResponse) GetData() AuthNMapping
GetData returns the Data field value if set, zero value otherwise.
func (o *AuthNMappingResponse) GetDataOk() (*AuthNMapping, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingResponse) GetIncluded() []AuthNMappingIncluded
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *AuthNMappingResponse) GetIncludedOk() (*[]AuthNMappingIncluded, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *AuthNMappingResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o AuthNMappingResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingResponse) SetData(v AuthNMapping)
SetData gets a reference to the given AuthNMapping and assigns it to the Data field.
func (o *AuthNMappingResponse) SetIncluded(v []AuthNMappingIncluded)
SetIncluded gets a reference to the given []AuthNMappingIncluded and assigns it to the Included field.
func (o *AuthNMappingResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingUpdateAttributes Key/Value pair of attributes used for update request.
type AuthNMappingUpdateAttributes struct {
// Key portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeKey *string `json:"attribute_key,omitempty"`
// Value portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeValue *string `json:"attribute_value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingUpdateAttributes() *AuthNMappingUpdateAttributes
NewAuthNMappingUpdateAttributes instantiates a new AuthNMappingUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingUpdateAttributesWithDefaults() *AuthNMappingUpdateAttributes
NewAuthNMappingUpdateAttributesWithDefaults instantiates a new AuthNMappingUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingUpdateAttributes) GetAttributeKey() string
GetAttributeKey returns the AttributeKey field value if set, zero value otherwise.
func (o *AuthNMappingUpdateAttributes) GetAttributeKeyOk() (*string, bool)
GetAttributeKeyOk returns a tuple with the AttributeKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateAttributes) GetAttributeValue() string
GetAttributeValue returns the AttributeValue field value if set, zero value otherwise.
func (o *AuthNMappingUpdateAttributes) GetAttributeValueOk() (*string, bool)
GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateAttributes) HasAttributeKey() bool
HasAttributeKey returns a boolean if a field has been set.
func (o *AuthNMappingUpdateAttributes) HasAttributeValue() bool
HasAttributeValue returns a boolean if a field has been set.
func (o AuthNMappingUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingUpdateAttributes) SetAttributeKey(v string)
SetAttributeKey gets a reference to the given string and assigns it to the AttributeKey field.
func (o *AuthNMappingUpdateAttributes) SetAttributeValue(v string)
SetAttributeValue gets a reference to the given string and assigns it to the AttributeValue field.
func (o *AuthNMappingUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingUpdateData Data for updating an AuthN Mapping.
type AuthNMappingUpdateData struct {
// Key/Value pair of attributes used for update request.
Attributes *AuthNMappingUpdateAttributes `json:"attributes,omitempty"`
// ID of the AuthN Mapping.
Id string `json:"id"`
// Relationship of AuthN Mapping update object to Role.
Relationships *AuthNMappingUpdateRelationships `json:"relationships,omitempty"`
// AuthN Mappings resource type.
Type AuthNMappingsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingUpdateData(id string, typeVar AuthNMappingsType) *AuthNMappingUpdateData
NewAuthNMappingUpdateData instantiates a new AuthNMappingUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingUpdateDataWithDefaults() *AuthNMappingUpdateData
NewAuthNMappingUpdateDataWithDefaults instantiates a new AuthNMappingUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingUpdateData) GetAttributes() AuthNMappingUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuthNMappingUpdateData) GetAttributesOk() (*AuthNMappingUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateData) GetId() string
GetId returns the Id field value.
func (o *AuthNMappingUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateData) GetRelationships() AuthNMappingUpdateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *AuthNMappingUpdateData) GetRelationshipsOk() (*AuthNMappingUpdateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateData) GetType() AuthNMappingsType
GetType returns the Type field value.
func (o *AuthNMappingUpdateData) GetTypeOk() (*AuthNMappingsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuthNMappingUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o AuthNMappingUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingUpdateData) SetAttributes(v AuthNMappingUpdateAttributes)
SetAttributes gets a reference to the given AuthNMappingUpdateAttributes and assigns it to the Attributes field.
func (o *AuthNMappingUpdateData) SetId(v string)
SetId sets field value.
func (o *AuthNMappingUpdateData) SetRelationships(v AuthNMappingUpdateRelationships)
SetRelationships gets a reference to the given AuthNMappingUpdateRelationships and assigns it to the Relationships field.
func (o *AuthNMappingUpdateData) SetType(v AuthNMappingsType)
SetType sets field value.
func (o *AuthNMappingUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingUpdateRelationships Relationship of AuthN Mapping update object to Role.
type AuthNMappingUpdateRelationships struct {
// Relationship to role.
Role *RelationshipToRole `json:"role,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingUpdateRelationships() *AuthNMappingUpdateRelationships
NewAuthNMappingUpdateRelationships instantiates a new AuthNMappingUpdateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingUpdateRelationshipsWithDefaults() *AuthNMappingUpdateRelationships
NewAuthNMappingUpdateRelationshipsWithDefaults instantiates a new AuthNMappingUpdateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingUpdateRelationships) GetRole() RelationshipToRole
GetRole returns the Role field value if set, zero value otherwise.
func (o *AuthNMappingUpdateRelationships) GetRoleOk() (*RelationshipToRole, bool)
GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateRelationships) HasRole() bool
HasRole returns a boolean if a field has been set.
func (o AuthNMappingUpdateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingUpdateRelationships) SetRole(v RelationshipToRole)
SetRole gets a reference to the given RelationshipToRole and assigns it to the Role field.
func (o *AuthNMappingUpdateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingUpdateRequest Request to update an AuthN Mapping.
type AuthNMappingUpdateRequest struct {
// Data for updating an AuthN Mapping.
Data AuthNMappingUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingUpdateRequest(data AuthNMappingUpdateData) *AuthNMappingUpdateRequest
NewAuthNMappingUpdateRequest instantiates a new AuthNMappingUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingUpdateRequestWithDefaults() *AuthNMappingUpdateRequest
NewAuthNMappingUpdateRequestWithDefaults instantiates a new AuthNMappingUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingUpdateRequest) GetData() AuthNMappingUpdateData
GetData returns the Data field value.
func (o *AuthNMappingUpdateRequest) GetDataOk() (*AuthNMappingUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o AuthNMappingUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingUpdateRequest) SetData(v AuthNMappingUpdateData)
SetData sets field value.
func (o *AuthNMappingUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingsApi service type
type AuthNMappingsApi datadog.Service
func NewAuthNMappingsApi(client *datadog.APIClient) *AuthNMappingsApi
NewAuthNMappingsApi Returns NewAuthNMappingsApi.
func (a *AuthNMappingsApi) CreateAuthNMapping(ctx _context.Context, body AuthNMappingCreateRequest) (AuthNMappingResponse, *_nethttp.Response, error)
CreateAuthNMapping Create an AuthN Mapping. Create an AuthN Mapping.
func (a *AuthNMappingsApi) DeleteAuthNMapping(ctx _context.Context, authnMappingId string) (*_nethttp.Response, error)
DeleteAuthNMapping Delete an AuthN Mapping. Delete an AuthN Mapping specified by AuthN Mapping UUID.
func (a *AuthNMappingsApi) GetAuthNMapping(ctx _context.Context, authnMappingId string) (AuthNMappingResponse, *_nethttp.Response, error)
GetAuthNMapping Get an AuthN Mapping by UUID. Get an AuthN Mapping specified by the AuthN Mapping UUID.
func (a *AuthNMappingsApi) ListAuthNMappings(ctx _context.Context, o ...ListAuthNMappingsOptionalParameters) (AuthNMappingsResponse, *_nethttp.Response, error)
ListAuthNMappings List all AuthN Mappings. List all AuthN Mappings in the org.
func (a *AuthNMappingsApi) UpdateAuthNMapping(ctx _context.Context, authnMappingId string, body AuthNMappingUpdateRequest) (AuthNMappingResponse, *_nethttp.Response, error)
UpdateAuthNMapping Edit an AuthN Mapping. Edit an AuthN Mapping.
AuthNMappingsResponse Array of AuthN Mappings response.
type AuthNMappingsResponse struct {
// Array of returned AuthN Mappings.
Data []AuthNMapping `json:"data,omitempty"`
// Included data in the AuthN Mapping response.
Included []AuthNMappingIncluded `json:"included,omitempty"`
// Object describing meta attributes of response.
Meta *ResponseMetaAttributes `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingsResponse() *AuthNMappingsResponse
NewAuthNMappingsResponse instantiates a new AuthNMappingsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingsResponseWithDefaults() *AuthNMappingsResponse
NewAuthNMappingsResponseWithDefaults instantiates a new AuthNMappingsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingsResponse) GetData() []AuthNMapping
GetData returns the Data field value if set, zero value otherwise.
func (o *AuthNMappingsResponse) GetDataOk() (*[]AuthNMapping, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingsResponse) GetIncluded() []AuthNMappingIncluded
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *AuthNMappingsResponse) GetIncludedOk() (*[]AuthNMappingIncluded, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingsResponse) GetMeta() ResponseMetaAttributes
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *AuthNMappingsResponse) GetMetaOk() (*ResponseMetaAttributes, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *AuthNMappingsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *AuthNMappingsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o AuthNMappingsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingsResponse) SetData(v []AuthNMapping)
SetData gets a reference to the given []AuthNMapping and assigns it to the Data field.
func (o *AuthNMappingsResponse) SetIncluded(v []AuthNMappingIncluded)
SetIncluded gets a reference to the given []AuthNMappingIncluded and assigns it to the Included field.
func (o *AuthNMappingsResponse) SetMeta(v ResponseMetaAttributes)
SetMeta gets a reference to the given ResponseMetaAttributes and assigns it to the Meta field.
func (o *AuthNMappingsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingsSort Sorting options for AuthN Mappings.
type AuthNMappingsSort string
List of AuthNMappingsSort.
const (
AUTHNMAPPINGSSORT_CREATED_AT_ASCENDING AuthNMappingsSort = "created_at"
AUTHNMAPPINGSSORT_CREATED_AT_DESCENDING AuthNMappingsSort = "-created_at"
AUTHNMAPPINGSSORT_ROLE_ID_ASCENDING AuthNMappingsSort = "role_id"
AUTHNMAPPINGSSORT_ROLE_ID_DESCENDING AuthNMappingsSort = "-role_id"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_ID_ASCENDING AuthNMappingsSort = "saml_assertion_attribute_id"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_ID_DESCENDING AuthNMappingsSort = "-saml_assertion_attribute_id"
AUTHNMAPPINGSSORT_ROLE_NAME_ASCENDING AuthNMappingsSort = "role.name"
AUTHNMAPPINGSSORT_ROLE_NAME_DESCENDING AuthNMappingsSort = "-role.name"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_KEY_ASCENDING AuthNMappingsSort = "saml_assertion_attribute.attribute_key"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_KEY_DESCENDING AuthNMappingsSort = "-saml_assertion_attribute.attribute_key"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_VALUE_ASCENDING AuthNMappingsSort = "saml_assertion_attribute.attribute_value"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_VALUE_DESCENDING AuthNMappingsSort = "-saml_assertion_attribute.attribute_value"
)
func NewAuthNMappingsSortFromValue(v string) (*AuthNMappingsSort, error)
NewAuthNMappingsSortFromValue returns a pointer to a valid AuthNMappingsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuthNMappingsSort) GetAllowedValues() []AuthNMappingsSort
GetAllowedValues reeturns the list of possible values.
func (v AuthNMappingsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuthNMappingsSort) Ptr() *AuthNMappingsSort
Ptr returns reference to AuthNMappingsSort value.
func (v *AuthNMappingsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuthNMappingsType AuthN Mappings resource type.
type AuthNMappingsType string
List of AuthNMappingsType.
const (
AUTHNMAPPINGSTYPE_AUTHN_MAPPINGS AuthNMappingsType = "authn_mappings"
)
func NewAuthNMappingsTypeFromValue(v string) (*AuthNMappingsType, error)
NewAuthNMappingsTypeFromValue returns a pointer to a valid AuthNMappingsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuthNMappingsType) GetAllowedValues() []AuthNMappingsType
GetAllowedValues reeturns the list of possible values.
func (v AuthNMappingsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuthNMappingsType) Ptr() *AuthNMappingsType
Ptr returns reference to AuthNMappingsType value.
func (v *AuthNMappingsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppAggregateBucketValue - A bucket value, can either be a timeseries or a single value.
type CIAppAggregateBucketValue struct {
CIAppAggregateBucketValueSingleString *string
CIAppAggregateBucketValueSingleNumber *float64
CIAppAggregateBucketValueTimeseries *CIAppAggregateBucketValueTimeseries
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func CIAppAggregateBucketValueSingleNumberAsCIAppAggregateBucketValue(v *float64) CIAppAggregateBucketValue
CIAppAggregateBucketValueSingleNumberAsCIAppAggregateBucketValue is a convenience function that returns float64 wrapped in CIAppAggregateBucketValue.
func CIAppAggregateBucketValueSingleStringAsCIAppAggregateBucketValue(v *string) CIAppAggregateBucketValue
CIAppAggregateBucketValueSingleStringAsCIAppAggregateBucketValue is a convenience function that returns string wrapped in CIAppAggregateBucketValue.
func CIAppAggregateBucketValueTimeseriesAsCIAppAggregateBucketValue(v *CIAppAggregateBucketValueTimeseries) CIAppAggregateBucketValue
CIAppAggregateBucketValueTimeseriesAsCIAppAggregateBucketValue is a convenience function that returns CIAppAggregateBucketValueTimeseries wrapped in CIAppAggregateBucketValue.
func (obj *CIAppAggregateBucketValue) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj CIAppAggregateBucketValue) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *CIAppAggregateBucketValue) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
CIAppAggregateBucketValueTimeseries A timeseries array.
type CIAppAggregateBucketValueTimeseries struct {
Items []CIAppAggregateBucketValueTimeseriesPoint
// UnparsedObject contains the raw value of the array if there was an error when deserializing into the struct
UnparsedObject []interface{} `json:"-"`
}
func NewCIAppAggregateBucketValueTimeseries() *CIAppAggregateBucketValueTimeseries
NewCIAppAggregateBucketValueTimeseries instantiates a new CIAppAggregateBucketValueTimeseries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppAggregateBucketValueTimeseriesWithDefaults() *CIAppAggregateBucketValueTimeseries
NewCIAppAggregateBucketValueTimeseriesWithDefaults instantiates a new CIAppAggregateBucketValueTimeseries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o CIAppAggregateBucketValueTimeseries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppAggregateBucketValueTimeseries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppAggregateBucketValueTimeseriesPoint A timeseries point.
type CIAppAggregateBucketValueTimeseriesPoint struct {
// The time value for this point.
Time *time.Time `json:"time,omitempty"`
// The value for this point.
Value *float64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppAggregateBucketValueTimeseriesPoint() *CIAppAggregateBucketValueTimeseriesPoint
NewCIAppAggregateBucketValueTimeseriesPoint instantiates a new CIAppAggregateBucketValueTimeseriesPoint object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppAggregateBucketValueTimeseriesPointWithDefaults() *CIAppAggregateBucketValueTimeseriesPoint
NewCIAppAggregateBucketValueTimeseriesPointWithDefaults instantiates a new CIAppAggregateBucketValueTimeseriesPoint object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppAggregateBucketValueTimeseriesPoint) GetTime() time.Time
GetTime returns the Time field value if set, zero value otherwise.
func (o *CIAppAggregateBucketValueTimeseriesPoint) GetTimeOk() (*time.Time, bool)
GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppAggregateBucketValueTimeseriesPoint) GetValue() float64
GetValue returns the Value field value if set, zero value otherwise.
func (o *CIAppAggregateBucketValueTimeseriesPoint) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppAggregateBucketValueTimeseriesPoint) HasTime() bool
HasTime returns a boolean if a field has been set.
func (o *CIAppAggregateBucketValueTimeseriesPoint) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o CIAppAggregateBucketValueTimeseriesPoint) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppAggregateBucketValueTimeseriesPoint) SetTime(v time.Time)
SetTime gets a reference to the given time.Time and assigns it to the Time field.
func (o *CIAppAggregateBucketValueTimeseriesPoint) SetValue(v float64)
SetValue gets a reference to the given float64 and assigns it to the Value field.
func (o *CIAppAggregateBucketValueTimeseriesPoint) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppAggregateSort A sort rule.
type CIAppAggregateSort struct {
// An aggregation function.
Aggregation *CIAppAggregationFunction `json:"aggregation,omitempty"`
// The metric to sort by (only used for `type=measure`).
Metric *string `json:"metric,omitempty"`
// The order to use, ascending or descending.
Order *CIAppSortOrder `json:"order,omitempty"`
// The type of sorting algorithm.
Type *CIAppAggregateSortType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppAggregateSort() *CIAppAggregateSort
NewCIAppAggregateSort instantiates a new CIAppAggregateSort object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppAggregateSortWithDefaults() *CIAppAggregateSort
NewCIAppAggregateSortWithDefaults instantiates a new CIAppAggregateSort object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppAggregateSort) GetAggregation() CIAppAggregationFunction
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *CIAppAggregateSort) GetAggregationOk() (*CIAppAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppAggregateSort) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *CIAppAggregateSort) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppAggregateSort) GetOrder() CIAppSortOrder
GetOrder returns the Order field value if set, zero value otherwise.
func (o *CIAppAggregateSort) GetOrderOk() (*CIAppSortOrder, bool)
GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppAggregateSort) GetType() CIAppAggregateSortType
GetType returns the Type field value if set, zero value otherwise.
func (o *CIAppAggregateSort) GetTypeOk() (*CIAppAggregateSortType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppAggregateSort) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *CIAppAggregateSort) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *CIAppAggregateSort) HasOrder() bool
HasOrder returns a boolean if a field has been set.
func (o *CIAppAggregateSort) HasType() bool
HasType returns a boolean if a field has been set.
func (o CIAppAggregateSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppAggregateSort) SetAggregation(v CIAppAggregationFunction)
SetAggregation gets a reference to the given CIAppAggregationFunction and assigns it to the Aggregation field.
func (o *CIAppAggregateSort) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *CIAppAggregateSort) SetOrder(v CIAppSortOrder)
SetOrder gets a reference to the given CIAppSortOrder and assigns it to the Order field.
func (o *CIAppAggregateSort) SetType(v CIAppAggregateSortType)
SetType gets a reference to the given CIAppAggregateSortType and assigns it to the Type field.
func (o *CIAppAggregateSort) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppAggregateSortType The type of sorting algorithm.
type CIAppAggregateSortType string
List of CIAppAggregateSortType.
const (
CIAPPAGGREGATESORTTYPE_ALPHABETICAL CIAppAggregateSortType = "alphabetical"
CIAPPAGGREGATESORTTYPE_MEASURE CIAppAggregateSortType = "measure"
)
func NewCIAppAggregateSortTypeFromValue(v string) (*CIAppAggregateSortType, error)
NewCIAppAggregateSortTypeFromValue returns a pointer to a valid CIAppAggregateSortType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppAggregateSortType) GetAllowedValues() []CIAppAggregateSortType
GetAllowedValues reeturns the list of possible values.
func (v CIAppAggregateSortType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppAggregateSortType) Ptr() *CIAppAggregateSortType
Ptr returns reference to CIAppAggregateSortType value.
func (v *CIAppAggregateSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppAggregationFunction An aggregation function.
type CIAppAggregationFunction string
List of CIAppAggregationFunction.
const (
CIAPPAGGREGATIONFUNCTION_COUNT CIAppAggregationFunction = "count"
CIAPPAGGREGATIONFUNCTION_CARDINALITY CIAppAggregationFunction = "cardinality"
CIAPPAGGREGATIONFUNCTION_PERCENTILE_75 CIAppAggregationFunction = "pc75"
CIAPPAGGREGATIONFUNCTION_PERCENTILE_90 CIAppAggregationFunction = "pc90"
CIAPPAGGREGATIONFUNCTION_PERCENTILE_95 CIAppAggregationFunction = "pc95"
CIAPPAGGREGATIONFUNCTION_PERCENTILE_98 CIAppAggregationFunction = "pc98"
CIAPPAGGREGATIONFUNCTION_PERCENTILE_99 CIAppAggregationFunction = "pc99"
CIAPPAGGREGATIONFUNCTION_SUM CIAppAggregationFunction = "sum"
CIAPPAGGREGATIONFUNCTION_MIN CIAppAggregationFunction = "min"
CIAPPAGGREGATIONFUNCTION_MAX CIAppAggregationFunction = "max"
CIAPPAGGREGATIONFUNCTION_AVG CIAppAggregationFunction = "avg"
CIAPPAGGREGATIONFUNCTION_MEDIAN CIAppAggregationFunction = "median"
CIAPPAGGREGATIONFUNCTION_LATEST CIAppAggregationFunction = "latest"
CIAPPAGGREGATIONFUNCTION_EARLIEST CIAppAggregationFunction = "earliest"
CIAPPAGGREGATIONFUNCTION_MOST_FREQUENT CIAppAggregationFunction = "most_frequent"
CIAPPAGGREGATIONFUNCTION_DELTA CIAppAggregationFunction = "delta"
)
func NewCIAppAggregationFunctionFromValue(v string) (*CIAppAggregationFunction, error)
NewCIAppAggregationFunctionFromValue returns a pointer to a valid CIAppAggregationFunction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppAggregationFunction) GetAllowedValues() []CIAppAggregationFunction
GetAllowedValues reeturns the list of possible values.
func (v CIAppAggregationFunction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppAggregationFunction) Ptr() *CIAppAggregationFunction
Ptr returns reference to CIAppAggregationFunction value.
func (v *CIAppAggregationFunction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppCIError Contains information of the CI error.
type CIAppCIError struct {
// Error category used to differentiate between issues related to the developer or provider environments.
Domain *CIAppCIErrorDomain `json:"domain,omitempty"`
// Error message.
Message datadog.NullableString `json:"message,omitempty"`
// The stack trace of the reported errors.
Stack datadog.NullableString `json:"stack,omitempty"`
// Short description of the error type.
Type datadog.NullableString `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppCIError() *CIAppCIError
NewCIAppCIError instantiates a new CIAppCIError object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppCIErrorWithDefaults() *CIAppCIError
NewCIAppCIErrorWithDefaults instantiates a new CIAppCIError object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppCIError) GetDomain() CIAppCIErrorDomain
GetDomain returns the Domain field value if set, zero value otherwise.
func (o *CIAppCIError) GetDomainOk() (*CIAppCIErrorDomain, bool)
GetDomainOk returns a tuple with the Domain field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCIError) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppCIError) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppCIError) GetStack() string
GetStack returns the Stack field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppCIError) GetStackOk() (*string, bool)
GetStackOk returns a tuple with the Stack field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppCIError) GetType() string
GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppCIError) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppCIError) HasDomain() bool
HasDomain returns a boolean if a field has been set.
func (o *CIAppCIError) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *CIAppCIError) HasStack() bool
HasStack returns a boolean if a field has been set.
func (o *CIAppCIError) HasType() bool
HasType returns a boolean if a field has been set.
func (o CIAppCIError) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppCIError) SetDomain(v CIAppCIErrorDomain)
SetDomain gets a reference to the given CIAppCIErrorDomain and assigns it to the Domain field.
func (o *CIAppCIError) SetMessage(v string)
SetMessage gets a reference to the given datadog.NullableString and assigns it to the Message field.
func (o *CIAppCIError) SetMessageNil()
SetMessageNil sets the value for Message to be an explicit nil.
func (o *CIAppCIError) SetStack(v string)
SetStack gets a reference to the given datadog.NullableString and assigns it to the Stack field.
func (o *CIAppCIError) SetStackNil()
SetStackNil sets the value for Stack to be an explicit nil.
func (o *CIAppCIError) SetType(v string)
SetType gets a reference to the given datadog.NullableString and assigns it to the Type field.
func (o *CIAppCIError) SetTypeNil()
SetTypeNil sets the value for Type to be an explicit nil.
func (o *CIAppCIError) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CIAppCIError) UnsetMessage()
UnsetMessage ensures that no value is present for Message, not even an explicit nil.
func (o *CIAppCIError) UnsetStack()
UnsetStack ensures that no value is present for Stack, not even an explicit nil.
func (o *CIAppCIError) UnsetType()
UnsetType ensures that no value is present for Type, not even an explicit nil.
CIAppCIErrorDomain Error category used to differentiate between issues related to the developer or provider environments.
type CIAppCIErrorDomain string
List of CIAppCIErrorDomain.
const (
CIAPPCIERRORDOMAIN_PROVIDER CIAppCIErrorDomain = "provider"
CIAPPCIERRORDOMAIN_USER CIAppCIErrorDomain = "user"
CIAPPCIERRORDOMAIN_UNKNOWN CIAppCIErrorDomain = "unknown"
)
func NewCIAppCIErrorDomainFromValue(v string) (*CIAppCIErrorDomain, error)
NewCIAppCIErrorDomainFromValue returns a pointer to a valid CIAppCIErrorDomain for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppCIErrorDomain) GetAllowedValues() []CIAppCIErrorDomain
GetAllowedValues reeturns the list of possible values.
func (v CIAppCIErrorDomain) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppCIErrorDomain) Ptr() *CIAppCIErrorDomain
Ptr returns reference to CIAppCIErrorDomain value.
func (v *CIAppCIErrorDomain) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppCompute A compute rule to compute metrics or timeseries.
type CIAppCompute struct {
// An aggregation function.
Aggregation CIAppAggregationFunction `json:"aggregation"`
// The time buckets' size (only used for type=timeseries)
// Defaults to a resolution of 150 points.
Interval *string `json:"interval,omitempty"`
// The metric to use.
Metric *string `json:"metric,omitempty"`
// The type of compute.
Type *CIAppComputeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppCompute(aggregation CIAppAggregationFunction) *CIAppCompute
NewCIAppCompute instantiates a new CIAppCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppComputeWithDefaults() *CIAppCompute
NewCIAppComputeWithDefaults instantiates a new CIAppCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppCompute) GetAggregation() CIAppAggregationFunction
GetAggregation returns the Aggregation field value.
func (o *CIAppCompute) GetAggregationOk() (*CIAppAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value and a boolean to check if the value has been set.
func (o *CIAppCompute) GetInterval() string
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *CIAppCompute) GetIntervalOk() (*string, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCompute) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *CIAppCompute) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCompute) GetType() CIAppComputeType
GetType returns the Type field value if set, zero value otherwise.
func (o *CIAppCompute) GetTypeOk() (*CIAppComputeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCompute) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *CIAppCompute) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *CIAppCompute) HasType() bool
HasType returns a boolean if a field has been set.
func (o CIAppCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppCompute) SetAggregation(v CIAppAggregationFunction)
SetAggregation sets field value.
func (o *CIAppCompute) SetInterval(v string)
SetInterval gets a reference to the given string and assigns it to the Interval field.
func (o *CIAppCompute) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *CIAppCompute) SetType(v CIAppComputeType)
SetType gets a reference to the given CIAppComputeType and assigns it to the Type field.
func (o *CIAppCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppComputeType The type of compute.
type CIAppComputeType string
List of CIAppComputeType.
const (
CIAPPCOMPUTETYPE_TIMESERIES CIAppComputeType = "timeseries"
CIAPPCOMPUTETYPE_TOTAL CIAppComputeType = "total"
)
func NewCIAppComputeTypeFromValue(v string) (*CIAppComputeType, error)
NewCIAppComputeTypeFromValue returns a pointer to a valid CIAppComputeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppComputeType) GetAllowedValues() []CIAppComputeType
GetAllowedValues reeturns the list of possible values.
func (v CIAppComputeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppComputeType) Ptr() *CIAppComputeType
Ptr returns reference to CIAppComputeType value.
func (v *CIAppComputeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppCreatePipelineEventRequest Request object.
type CIAppCreatePipelineEventRequest struct {
// Data of the pipeline event to create.
Data *CIAppCreatePipelineEventRequestData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppCreatePipelineEventRequest() *CIAppCreatePipelineEventRequest
NewCIAppCreatePipelineEventRequest instantiates a new CIAppCreatePipelineEventRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppCreatePipelineEventRequestWithDefaults() *CIAppCreatePipelineEventRequest
NewCIAppCreatePipelineEventRequestWithDefaults instantiates a new CIAppCreatePipelineEventRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppCreatePipelineEventRequest) GetData() CIAppCreatePipelineEventRequestData
GetData returns the Data field value if set, zero value otherwise.
func (o *CIAppCreatePipelineEventRequest) GetDataOk() (*CIAppCreatePipelineEventRequestData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCreatePipelineEventRequest) HasData() bool
HasData returns a boolean if a field has been set.
func (o CIAppCreatePipelineEventRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppCreatePipelineEventRequest) SetData(v CIAppCreatePipelineEventRequestData)
SetData gets a reference to the given CIAppCreatePipelineEventRequestData and assigns it to the Data field.
func (o *CIAppCreatePipelineEventRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppCreatePipelineEventRequestAttributes Attributes of the pipeline event to create.
type CIAppCreatePipelineEventRequestAttributes struct {
// The Datadog environment.
Env *string `json:"env,omitempty"`
// Details of the CI pipeline event.
Resource CIAppCreatePipelineEventRequestAttributesResource `json:"resource"`
// If the CI provider is SaaS, use this to differentiate between instances.
Service *string `json:"service,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppCreatePipelineEventRequestAttributes(resource CIAppCreatePipelineEventRequestAttributesResource) *CIAppCreatePipelineEventRequestAttributes
NewCIAppCreatePipelineEventRequestAttributes instantiates a new CIAppCreatePipelineEventRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppCreatePipelineEventRequestAttributesWithDefaults() *CIAppCreatePipelineEventRequestAttributes
NewCIAppCreatePipelineEventRequestAttributesWithDefaults instantiates a new CIAppCreatePipelineEventRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppCreatePipelineEventRequestAttributes) GetEnv() string
GetEnv returns the Env field value if set, zero value otherwise.
func (o *CIAppCreatePipelineEventRequestAttributes) GetEnvOk() (*string, bool)
GetEnvOk returns a tuple with the Env field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCreatePipelineEventRequestAttributes) GetResource() CIAppCreatePipelineEventRequestAttributesResource
GetResource returns the Resource field value.
func (o *CIAppCreatePipelineEventRequestAttributes) GetResourceOk() (*CIAppCreatePipelineEventRequestAttributesResource, bool)
GetResourceOk returns a tuple with the Resource field value and a boolean to check if the value has been set.
func (o *CIAppCreatePipelineEventRequestAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *CIAppCreatePipelineEventRequestAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCreatePipelineEventRequestAttributes) HasEnv() bool
HasEnv returns a boolean if a field has been set.
func (o *CIAppCreatePipelineEventRequestAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o CIAppCreatePipelineEventRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppCreatePipelineEventRequestAttributes) SetEnv(v string)
SetEnv gets a reference to the given string and assigns it to the Env field.
func (o *CIAppCreatePipelineEventRequestAttributes) SetResource(v CIAppCreatePipelineEventRequestAttributesResource)
SetResource sets field value.
func (o *CIAppCreatePipelineEventRequestAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *CIAppCreatePipelineEventRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppCreatePipelineEventRequestAttributesResource - Details of the CI pipeline event.
type CIAppCreatePipelineEventRequestAttributesResource struct {
CIAppPipelineEventPipeline *CIAppPipelineEventPipeline
CIAppPipelineEventStage *CIAppPipelineEventStage
CIAppPipelineEventJob *CIAppPipelineEventJob
CIAppPipelineEventStep *CIAppPipelineEventStep
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func CIAppPipelineEventJobAsCIAppCreatePipelineEventRequestAttributesResource(v *CIAppPipelineEventJob) CIAppCreatePipelineEventRequestAttributesResource
CIAppPipelineEventJobAsCIAppCreatePipelineEventRequestAttributesResource is a convenience function that returns CIAppPipelineEventJob wrapped in CIAppCreatePipelineEventRequestAttributesResource.
func CIAppPipelineEventPipelineAsCIAppCreatePipelineEventRequestAttributesResource(v *CIAppPipelineEventPipeline) CIAppCreatePipelineEventRequestAttributesResource
CIAppPipelineEventPipelineAsCIAppCreatePipelineEventRequestAttributesResource is a convenience function that returns CIAppPipelineEventPipeline wrapped in CIAppCreatePipelineEventRequestAttributesResource.
func CIAppPipelineEventStageAsCIAppCreatePipelineEventRequestAttributesResource(v *CIAppPipelineEventStage) CIAppCreatePipelineEventRequestAttributesResource
CIAppPipelineEventStageAsCIAppCreatePipelineEventRequestAttributesResource is a convenience function that returns CIAppPipelineEventStage wrapped in CIAppCreatePipelineEventRequestAttributesResource.
func CIAppPipelineEventStepAsCIAppCreatePipelineEventRequestAttributesResource(v *CIAppPipelineEventStep) CIAppCreatePipelineEventRequestAttributesResource
CIAppPipelineEventStepAsCIAppCreatePipelineEventRequestAttributesResource is a convenience function that returns CIAppPipelineEventStep wrapped in CIAppCreatePipelineEventRequestAttributesResource.
func (obj *CIAppCreatePipelineEventRequestAttributesResource) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj CIAppCreatePipelineEventRequestAttributesResource) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *CIAppCreatePipelineEventRequestAttributesResource) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
CIAppCreatePipelineEventRequestData Data of the pipeline event to create.
type CIAppCreatePipelineEventRequestData struct {
// Attributes of the pipeline event to create.
Attributes *CIAppCreatePipelineEventRequestAttributes `json:"attributes,omitempty"`
// Type of the event.
Type *CIAppCreatePipelineEventRequestDataType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppCreatePipelineEventRequestData() *CIAppCreatePipelineEventRequestData
NewCIAppCreatePipelineEventRequestData instantiates a new CIAppCreatePipelineEventRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppCreatePipelineEventRequestDataWithDefaults() *CIAppCreatePipelineEventRequestData
NewCIAppCreatePipelineEventRequestDataWithDefaults instantiates a new CIAppCreatePipelineEventRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppCreatePipelineEventRequestData) GetAttributes() CIAppCreatePipelineEventRequestAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CIAppCreatePipelineEventRequestData) GetAttributesOk() (*CIAppCreatePipelineEventRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCreatePipelineEventRequestData) GetType() CIAppCreatePipelineEventRequestDataType
GetType returns the Type field value if set, zero value otherwise.
func (o *CIAppCreatePipelineEventRequestData) GetTypeOk() (*CIAppCreatePipelineEventRequestDataType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppCreatePipelineEventRequestData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CIAppCreatePipelineEventRequestData) HasType() bool
HasType returns a boolean if a field has been set.
func (o CIAppCreatePipelineEventRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppCreatePipelineEventRequestData) SetAttributes(v CIAppCreatePipelineEventRequestAttributes)
SetAttributes gets a reference to the given CIAppCreatePipelineEventRequestAttributes and assigns it to the Attributes field.
func (o *CIAppCreatePipelineEventRequestData) SetType(v CIAppCreatePipelineEventRequestDataType)
SetType gets a reference to the given CIAppCreatePipelineEventRequestDataType and assigns it to the Type field.
func (o *CIAppCreatePipelineEventRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppCreatePipelineEventRequestDataType Type of the event.
type CIAppCreatePipelineEventRequestDataType string
List of CIAppCreatePipelineEventRequestDataType.
const (
CIAPPCREATEPIPELINEEVENTREQUESTDATATYPE_CIPIPELINE_RESOURCE_REQUEST CIAppCreatePipelineEventRequestDataType = "cipipeline_resource_request"
)
func NewCIAppCreatePipelineEventRequestDataTypeFromValue(v string) (*CIAppCreatePipelineEventRequestDataType, error)
NewCIAppCreatePipelineEventRequestDataTypeFromValue returns a pointer to a valid CIAppCreatePipelineEventRequestDataType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppCreatePipelineEventRequestDataType) GetAllowedValues() []CIAppCreatePipelineEventRequestDataType
GetAllowedValues reeturns the list of possible values.
func (v CIAppCreatePipelineEventRequestDataType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppCreatePipelineEventRequestDataType) Ptr() *CIAppCreatePipelineEventRequestDataType
Ptr returns reference to CIAppCreatePipelineEventRequestDataType value.
func (v *CIAppCreatePipelineEventRequestDataType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppEventAttributes JSON object containing all event attributes and their associated values.
type CIAppEventAttributes struct {
// JSON object of attributes from CI Visibility events.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// The name of the application or service generating CI Visibility events.
// It is used to switch from CI Visibility to APM, so make sure you define the same
// value when you use both products.
Service *string `json:"service,omitempty"`
// Array of tags associated with your event.
Tags []string `json:"tags,omitempty"`
// Timestamp of your event.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppEventAttributes() *CIAppEventAttributes
NewCIAppEventAttributes instantiates a new CIAppEventAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppEventAttributesWithDefaults() *CIAppEventAttributes
NewCIAppEventAttributesWithDefaults instantiates a new CIAppEventAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppEventAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CIAppEventAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppEventAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *CIAppEventAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppEventAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *CIAppEventAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppEventAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *CIAppEventAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppEventAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CIAppEventAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *CIAppEventAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *CIAppEventAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o CIAppEventAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppEventAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *CIAppEventAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *CIAppEventAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *CIAppEventAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *CIAppEventAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppGitInfo If pipelines are triggered due to actions to a Git repository, then all payloads must contain this. Note that either `tag` or `branch` has to be provided, but not both.
type CIAppGitInfo struct {
// The commit author email.
AuthorEmail string `json:"author_email"`
// The commit author name.
AuthorName datadog.NullableString `json:"author_name,omitempty"`
// The commit author timestamp in RFC3339 format.
AuthorTime datadog.NullableString `json:"author_time,omitempty"`
// The branch name (if a tag use the tag parameter).
Branch datadog.NullableString `json:"branch,omitempty"`
// The commit timestamp in RFC3339 format.
CommitTime datadog.NullableString `json:"commit_time,omitempty"`
// The committer email.
CommitterEmail datadog.NullableString `json:"committer_email,omitempty"`
// The committer name.
CommitterName datadog.NullableString `json:"committer_name,omitempty"`
// The Git repository's default branch.
DefaultBranch datadog.NullableString `json:"default_branch,omitempty"`
// The commit message.
Message datadog.NullableString `json:"message,omitempty"`
// The URL of the repository.
RepositoryUrl string `json:"repository_url"`
// The git commit SHA.
Sha string `json:"sha"`
// The tag name (if a branch use the branch parameter).
Tag datadog.NullableString `json:"tag,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppGitInfo(authorEmail string, repositoryUrl string, sha string) *CIAppGitInfo
NewCIAppGitInfo instantiates a new CIAppGitInfo object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppGitInfoWithDefaults() *CIAppGitInfo
NewCIAppGitInfoWithDefaults instantiates a new CIAppGitInfo object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppGitInfo) GetAuthorEmail() string
GetAuthorEmail returns the AuthorEmail field value.
func (o *CIAppGitInfo) GetAuthorEmailOk() (*string, bool)
GetAuthorEmailOk returns a tuple with the AuthorEmail field value and a boolean to check if the value has been set.
func (o *CIAppGitInfo) GetAuthorName() string
GetAuthorName returns the AuthorName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetAuthorNameOk() (*string, bool)
GetAuthorNameOk returns a tuple with the AuthorName field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) GetAuthorTime() string
GetAuthorTime returns the AuthorTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetAuthorTimeOk() (*string, bool)
GetAuthorTimeOk returns a tuple with the AuthorTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) GetBranch() string
GetBranch returns the Branch field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetBranchOk() (*string, bool)
GetBranchOk returns a tuple with the Branch field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) GetCommitTime() string
GetCommitTime returns the CommitTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetCommitTimeOk() (*string, bool)
GetCommitTimeOk returns a tuple with the CommitTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) GetCommitterEmail() string
GetCommitterEmail returns the CommitterEmail field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetCommitterEmailOk() (*string, bool)
GetCommitterEmailOk returns a tuple with the CommitterEmail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) GetCommitterName() string
GetCommitterName returns the CommitterName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetCommitterNameOk() (*string, bool)
GetCommitterNameOk returns a tuple with the CommitterName field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) GetDefaultBranch() string
GetDefaultBranch returns the DefaultBranch field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetDefaultBranchOk() (*string, bool)
GetDefaultBranchOk returns a tuple with the DefaultBranch field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) GetRepositoryUrl() string
GetRepositoryUrl returns the RepositoryUrl field value.
func (o *CIAppGitInfo) GetRepositoryUrlOk() (*string, bool)
GetRepositoryUrlOk returns a tuple with the RepositoryUrl field value and a boolean to check if the value has been set.
func (o *CIAppGitInfo) GetSha() string
GetSha returns the Sha field value.
func (o *CIAppGitInfo) GetShaOk() (*string, bool)
GetShaOk returns a tuple with the Sha field value and a boolean to check if the value has been set.
func (o *CIAppGitInfo) GetTag() string
GetTag returns the Tag field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppGitInfo) GetTagOk() (*string, bool)
GetTagOk returns a tuple with the Tag field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppGitInfo) HasAuthorName() bool
HasAuthorName returns a boolean if a field has been set.
func (o *CIAppGitInfo) HasAuthorTime() bool
HasAuthorTime returns a boolean if a field has been set.
func (o *CIAppGitInfo) HasBranch() bool
HasBranch returns a boolean if a field has been set.
func (o *CIAppGitInfo) HasCommitTime() bool
HasCommitTime returns a boolean if a field has been set.
func (o *CIAppGitInfo) HasCommitterEmail() bool
HasCommitterEmail returns a boolean if a field has been set.
func (o *CIAppGitInfo) HasCommitterName() bool
HasCommitterName returns a boolean if a field has been set.
func (o *CIAppGitInfo) HasDefaultBranch() bool
HasDefaultBranch returns a boolean if a field has been set.
func (o *CIAppGitInfo) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *CIAppGitInfo) HasTag() bool
HasTag returns a boolean if a field has been set.
func (o CIAppGitInfo) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppGitInfo) SetAuthorEmail(v string)
SetAuthorEmail sets field value.
func (o *CIAppGitInfo) SetAuthorName(v string)
SetAuthorName gets a reference to the given datadog.NullableString and assigns it to the AuthorName field.
func (o *CIAppGitInfo) SetAuthorNameNil()
SetAuthorNameNil sets the value for AuthorName to be an explicit nil.
func (o *CIAppGitInfo) SetAuthorTime(v string)
SetAuthorTime gets a reference to the given datadog.NullableString and assigns it to the AuthorTime field.
func (o *CIAppGitInfo) SetAuthorTimeNil()
SetAuthorTimeNil sets the value for AuthorTime to be an explicit nil.
func (o *CIAppGitInfo) SetBranch(v string)
SetBranch gets a reference to the given datadog.NullableString and assigns it to the Branch field.
func (o *CIAppGitInfo) SetBranchNil()
SetBranchNil sets the value for Branch to be an explicit nil.
func (o *CIAppGitInfo) SetCommitTime(v string)
SetCommitTime gets a reference to the given datadog.NullableString and assigns it to the CommitTime field.
func (o *CIAppGitInfo) SetCommitTimeNil()
SetCommitTimeNil sets the value for CommitTime to be an explicit nil.
func (o *CIAppGitInfo) SetCommitterEmail(v string)
SetCommitterEmail gets a reference to the given datadog.NullableString and assigns it to the CommitterEmail field.
func (o *CIAppGitInfo) SetCommitterEmailNil()
SetCommitterEmailNil sets the value for CommitterEmail to be an explicit nil.
func (o *CIAppGitInfo) SetCommitterName(v string)
SetCommitterName gets a reference to the given datadog.NullableString and assigns it to the CommitterName field.
func (o *CIAppGitInfo) SetCommitterNameNil()
SetCommitterNameNil sets the value for CommitterName to be an explicit nil.
func (o *CIAppGitInfo) SetDefaultBranch(v string)
SetDefaultBranch gets a reference to the given datadog.NullableString and assigns it to the DefaultBranch field.
func (o *CIAppGitInfo) SetDefaultBranchNil()
SetDefaultBranchNil sets the value for DefaultBranch to be an explicit nil.
func (o *CIAppGitInfo) SetMessage(v string)
SetMessage gets a reference to the given datadog.NullableString and assigns it to the Message field.
func (o *CIAppGitInfo) SetMessageNil()
SetMessageNil sets the value for Message to be an explicit nil.
func (o *CIAppGitInfo) SetRepositoryUrl(v string)
SetRepositoryUrl sets field value.
func (o *CIAppGitInfo) SetSha(v string)
SetSha sets field value.
func (o *CIAppGitInfo) SetTag(v string)
SetTag gets a reference to the given datadog.NullableString and assigns it to the Tag field.
func (o *CIAppGitInfo) SetTagNil()
SetTagNil sets the value for Tag to be an explicit nil.
func (o *CIAppGitInfo) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CIAppGitInfo) UnsetAuthorName()
UnsetAuthorName ensures that no value is present for AuthorName, not even an explicit nil.
func (o *CIAppGitInfo) UnsetAuthorTime()
UnsetAuthorTime ensures that no value is present for AuthorTime, not even an explicit nil.
func (o *CIAppGitInfo) UnsetBranch()
UnsetBranch ensures that no value is present for Branch, not even an explicit nil.
func (o *CIAppGitInfo) UnsetCommitTime()
UnsetCommitTime ensures that no value is present for CommitTime, not even an explicit nil.
func (o *CIAppGitInfo) UnsetCommitterEmail()
UnsetCommitterEmail ensures that no value is present for CommitterEmail, not even an explicit nil.
func (o *CIAppGitInfo) UnsetCommitterName()
UnsetCommitterName ensures that no value is present for CommitterName, not even an explicit nil.
func (o *CIAppGitInfo) UnsetDefaultBranch()
UnsetDefaultBranch ensures that no value is present for DefaultBranch, not even an explicit nil.
func (o *CIAppGitInfo) UnsetMessage()
UnsetMessage ensures that no value is present for Message, not even an explicit nil.
func (o *CIAppGitInfo) UnsetTag()
UnsetTag ensures that no value is present for Tag, not even an explicit nil.
CIAppGroupByHistogram Used to perform a histogram computation (only for measure facets). At most, 100 buckets are allowed, the number of buckets is `(max - min)/interval`.
type CIAppGroupByHistogram struct {
// The bin size of the histogram buckets.
Interval float64 `json:"interval"`
// The maximum value for the measure used in the histogram
// (values greater than this one are filtered out).
Max float64 `json:"max"`
// The minimum value for the measure used in the histogram
// (values smaller than this one are filtered out).
Min float64 `json:"min"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppGroupByHistogram(interval float64, max float64, min float64) *CIAppGroupByHistogram
NewCIAppGroupByHistogram instantiates a new CIAppGroupByHistogram object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppGroupByHistogramWithDefaults() *CIAppGroupByHistogram
NewCIAppGroupByHistogramWithDefaults instantiates a new CIAppGroupByHistogram object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppGroupByHistogram) GetInterval() float64
GetInterval returns the Interval field value.
func (o *CIAppGroupByHistogram) GetIntervalOk() (*float64, bool)
GetIntervalOk returns a tuple with the Interval field value and a boolean to check if the value has been set.
func (o *CIAppGroupByHistogram) GetMax() float64
GetMax returns the Max field value.
func (o *CIAppGroupByHistogram) GetMaxOk() (*float64, bool)
GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.
func (o *CIAppGroupByHistogram) GetMin() float64
GetMin returns the Min field value.
func (o *CIAppGroupByHistogram) GetMinOk() (*float64, bool)
GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.
func (o CIAppGroupByHistogram) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppGroupByHistogram) SetInterval(v float64)
SetInterval sets field value.
func (o *CIAppGroupByHistogram) SetMax(v float64)
SetMax sets field value.
func (o *CIAppGroupByHistogram) SetMin(v float64)
SetMin sets field value.
func (o *CIAppGroupByHistogram) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppGroupByMissing - The value to use for logs that don't have the facet used to group-by.
type CIAppGroupByMissing struct {
CIAppGroupByMissingString *string
CIAppGroupByMissingNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func CIAppGroupByMissingNumberAsCIAppGroupByMissing(v *float64) CIAppGroupByMissing
CIAppGroupByMissingNumberAsCIAppGroupByMissing is a convenience function that returns float64 wrapped in CIAppGroupByMissing.
func CIAppGroupByMissingStringAsCIAppGroupByMissing(v *string) CIAppGroupByMissing
CIAppGroupByMissingStringAsCIAppGroupByMissing is a convenience function that returns string wrapped in CIAppGroupByMissing.
func (obj *CIAppGroupByMissing) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj CIAppGroupByMissing) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *CIAppGroupByMissing) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
CIAppGroupByTotal - A resulting object to put the given computes in over all the matching records.
type CIAppGroupByTotal struct {
CIAppGroupByTotalBoolean *bool
CIAppGroupByTotalString *string
CIAppGroupByTotalNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func CIAppGroupByTotalBooleanAsCIAppGroupByTotal(v *bool) CIAppGroupByTotal
CIAppGroupByTotalBooleanAsCIAppGroupByTotal is a convenience function that returns bool wrapped in CIAppGroupByTotal.
func CIAppGroupByTotalNumberAsCIAppGroupByTotal(v *float64) CIAppGroupByTotal
CIAppGroupByTotalNumberAsCIAppGroupByTotal is a convenience function that returns float64 wrapped in CIAppGroupByTotal.
func CIAppGroupByTotalStringAsCIAppGroupByTotal(v *string) CIAppGroupByTotal
CIAppGroupByTotalStringAsCIAppGroupByTotal is a convenience function that returns string wrapped in CIAppGroupByTotal.
func (obj *CIAppGroupByTotal) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj CIAppGroupByTotal) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *CIAppGroupByTotal) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
CIAppHostInfo Contains information of the host running the pipeline, stage, job, or step.
type CIAppHostInfo struct {
// FQDN of the host.
Hostname *string `json:"hostname,omitempty"`
// A list of labels used to select or identify the node.
Labels []string `json:"labels,omitempty"`
// Name for the host.
Name *string `json:"name,omitempty"`
// The path where the code is checked out.
Workspace *string `json:"workspace,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppHostInfo() *CIAppHostInfo
NewCIAppHostInfo instantiates a new CIAppHostInfo object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppHostInfoWithDefaults() *CIAppHostInfo
NewCIAppHostInfoWithDefaults instantiates a new CIAppHostInfo object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppHostInfo) GetHostname() string
GetHostname returns the Hostname field value if set, zero value otherwise.
func (o *CIAppHostInfo) GetHostnameOk() (*string, bool)
GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppHostInfo) GetLabels() []string
GetLabels returns the Labels field value if set, zero value otherwise.
func (o *CIAppHostInfo) GetLabelsOk() (*[]string, bool)
GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppHostInfo) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *CIAppHostInfo) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppHostInfo) GetWorkspace() string
GetWorkspace returns the Workspace field value if set, zero value otherwise.
func (o *CIAppHostInfo) GetWorkspaceOk() (*string, bool)
GetWorkspaceOk returns a tuple with the Workspace field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppHostInfo) HasHostname() bool
HasHostname returns a boolean if a field has been set.
func (o *CIAppHostInfo) HasLabels() bool
HasLabels returns a boolean if a field has been set.
func (o *CIAppHostInfo) HasName() bool
HasName returns a boolean if a field has been set.
func (o *CIAppHostInfo) HasWorkspace() bool
HasWorkspace returns a boolean if a field has been set.
func (o CIAppHostInfo) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppHostInfo) SetHostname(v string)
SetHostname gets a reference to the given string and assigns it to the Hostname field.
func (o *CIAppHostInfo) SetLabels(v []string)
SetLabels gets a reference to the given []string and assigns it to the Labels field.
func (o *CIAppHostInfo) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *CIAppHostInfo) SetWorkspace(v string)
SetWorkspace gets a reference to the given string and assigns it to the Workspace field.
func (o *CIAppHostInfo) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelineEvent Object description of a pipeline event after being processed and stored by Datadog.
type CIAppPipelineEvent struct {
// JSON object containing all event attributes and their associated values.
Attributes *CIAppEventAttributes `json:"attributes,omitempty"`
// Unique ID of the event.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *CIAppPipelineEventTypeName `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEvent() *CIAppPipelineEvent
NewCIAppPipelineEvent instantiates a new CIAppPipelineEvent object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventWithDefaults() *CIAppPipelineEvent
NewCIAppPipelineEventWithDefaults instantiates a new CIAppPipelineEvent object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEvent) GetAttributes() CIAppEventAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CIAppPipelineEvent) GetAttributesOk() (*CIAppEventAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEvent) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *CIAppPipelineEvent) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEvent) GetType() CIAppPipelineEventTypeName
GetType returns the Type field value if set, zero value otherwise.
func (o *CIAppPipelineEvent) GetTypeOk() (*CIAppPipelineEventTypeName, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEvent) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CIAppPipelineEvent) HasId() bool
HasId returns a boolean if a field has been set.
func (o *CIAppPipelineEvent) HasType() bool
HasType returns a boolean if a field has been set.
func (o CIAppPipelineEvent) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEvent) SetAttributes(v CIAppEventAttributes)
SetAttributes gets a reference to the given CIAppEventAttributes and assigns it to the Attributes field.
func (o *CIAppPipelineEvent) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *CIAppPipelineEvent) SetType(v CIAppPipelineEventTypeName)
SetType gets a reference to the given CIAppPipelineEventTypeName and assigns it to the Type field.
func (o *CIAppPipelineEvent) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventJob Details of a CI job.
type CIAppPipelineEventJob struct {
// A list of job IDs that this job depends on.
Dependencies datadog.NullableList[string] `json:"dependencies,omitempty"`
// Time when the job run finished. The time format must be RFC3339.
End time.Time `json:"end"`
// Contains information of the CI error.
Error NullableCIAppCIError `json:"error,omitempty"`
// If pipelines are triggered due to actions to a Git repository, then all payloads must contain this.
// Note that either `tag` or `branch` has to be provided, but not both.
Git NullableCIAppGitInfo `json:"git"`
// The UUID for the job. It has to be unique within each pipeline execution.
Id string `json:"id"`
// Used to distinguish between pipelines, stages, jobs, and steps.
Level CIAppPipelineEventJobLevel `json:"level"`
// A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric.
Metrics datadog.NullableList[string] `json:"metrics,omitempty"`
// The name for the job.
Name string `json:"name"`
// Contains information of the host running the pipeline, stage, job, or step.
Node NullableCIAppHostInfo `json:"node,omitempty"`
// A map of key-value parameters or environment variables that were defined for the pipeline.
Parameters map[string]string `json:"parameters,omitempty"`
// The parent pipeline name.
PipelineName string `json:"pipeline_name"`
// The parent pipeline UUID.
PipelineUniqueId string `json:"pipeline_unique_id"`
// The queue time in milliseconds, if applicable.
QueueTime datadog.NullableInt64 `json:"queue_time,omitempty"`
// The parent stage UUID (if applicable).
StageId datadog.NullableString `json:"stage_id,omitempty"`
// The parent stage name (if applicable).
StageName datadog.NullableString `json:"stage_name,omitempty"`
// Time when the job run instance started (it should not include any queue time). The time format must be RFC3339.
Start time.Time `json:"start"`
// The final status of the job.
Status CIAppPipelineEventJobStatus `json:"status"`
// A list of user-defined tags. The tags must follow the `key:value` pattern.
Tags datadog.NullableList[string] `json:"tags,omitempty"`
// The URL to look at the job in the CI provider UI.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEventJob(end time.Time, git NullableCIAppGitInfo, id string, level CIAppPipelineEventJobLevel, name string, pipelineName string, pipelineUniqueId string, start time.Time, status CIAppPipelineEventJobStatus, url string) *CIAppPipelineEventJob
NewCIAppPipelineEventJob instantiates a new CIAppPipelineEventJob object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventJobWithDefaults() *CIAppPipelineEventJob
NewCIAppPipelineEventJobWithDefaults instantiates a new CIAppPipelineEventJob object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEventJob) GetDependencies() []string
GetDependencies returns the Dependencies field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetDependenciesOk() (*[]string, bool)
GetDependenciesOk returns a tuple with the Dependencies field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetEnd() time.Time
GetEnd returns the End field value.
func (o *CIAppPipelineEventJob) GetEndOk() (*time.Time, bool)
GetEndOk returns a tuple with the End field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) GetError() CIAppCIError
GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetErrorOk() (*CIAppCIError, bool)
GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetGit() CIAppGitInfo
GetGit returns the Git field value. If the value is explicit nil, the zero value for CIAppGitInfo will be returned.
func (o *CIAppPipelineEventJob) GetGitOk() (*CIAppGitInfo, bool)
GetGitOk returns a tuple with the Git field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetId() string
GetId returns the Id field value.
func (o *CIAppPipelineEventJob) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) GetLevel() CIAppPipelineEventJobLevel
GetLevel returns the Level field value.
func (o *CIAppPipelineEventJob) GetLevelOk() (*CIAppPipelineEventJobLevel, bool)
GetLevelOk returns a tuple with the Level field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetName() string
GetName returns the Name field value.
func (o *CIAppPipelineEventJob) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) GetNode() CIAppHostInfo
GetNode returns the Node field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetNodeOk() (*CIAppHostInfo, bool)
GetNodeOk returns a tuple with the Node field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetParameters() map[string]string
GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetParametersOk() (*map[string]string, bool)
GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetPipelineName() string
GetPipelineName returns the PipelineName field value.
func (o *CIAppPipelineEventJob) GetPipelineNameOk() (*string, bool)
GetPipelineNameOk returns a tuple with the PipelineName field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) GetPipelineUniqueId() string
GetPipelineUniqueId returns the PipelineUniqueId field value.
func (o *CIAppPipelineEventJob) GetPipelineUniqueIdOk() (*string, bool)
GetPipelineUniqueIdOk returns a tuple with the PipelineUniqueId field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) GetQueueTime() int64
GetQueueTime returns the QueueTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetQueueTimeOk() (*int64, bool)
GetQueueTimeOk returns a tuple with the QueueTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetStageId() string
GetStageId returns the StageId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetStageIdOk() (*string, bool)
GetStageIdOk returns a tuple with the StageId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetStageName() string
GetStageName returns the StageName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetStageNameOk() (*string, bool)
GetStageNameOk returns a tuple with the StageName field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetStart() time.Time
GetStart returns the Start field value.
func (o *CIAppPipelineEventJob) GetStartOk() (*time.Time, bool)
GetStartOk returns a tuple with the Start field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) GetStatus() CIAppPipelineEventJobStatus
GetStatus returns the Status field value.
func (o *CIAppPipelineEventJob) GetStatusOk() (*CIAppPipelineEventJobStatus, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventJob) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventJob) GetUrl() string
GetUrl returns the Url field value.
func (o *CIAppPipelineEventJob) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventJob) HasDependencies() bool
HasDependencies returns a boolean if a field has been set.
func (o *CIAppPipelineEventJob) HasError() bool
HasError returns a boolean if a field has been set.
func (o *CIAppPipelineEventJob) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *CIAppPipelineEventJob) HasNode() bool
HasNode returns a boolean if a field has been set.
func (o *CIAppPipelineEventJob) HasParameters() bool
HasParameters returns a boolean if a field has been set.
func (o *CIAppPipelineEventJob) HasQueueTime() bool
HasQueueTime returns a boolean if a field has been set.
func (o *CIAppPipelineEventJob) HasStageId() bool
HasStageId returns a boolean if a field has been set.
func (o *CIAppPipelineEventJob) HasStageName() bool
HasStageName returns a boolean if a field has been set.
func (o *CIAppPipelineEventJob) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o CIAppPipelineEventJob) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEventJob) SetDependencies(v []string)
SetDependencies gets a reference to the given datadog.NullableList[string] and assigns it to the Dependencies field.
func (o *CIAppPipelineEventJob) SetDependenciesNil()
SetDependenciesNil sets the value for Dependencies to be an explicit nil.
func (o *CIAppPipelineEventJob) SetEnd(v time.Time)
SetEnd sets field value.
func (o *CIAppPipelineEventJob) SetError(v CIAppCIError)
SetError gets a reference to the given NullableCIAppCIError and assigns it to the Error field.
func (o *CIAppPipelineEventJob) SetErrorNil()
SetErrorNil sets the value for Error to be an explicit nil.
func (o *CIAppPipelineEventJob) SetGit(v CIAppGitInfo)
SetGit sets field value.
func (o *CIAppPipelineEventJob) SetId(v string)
SetId sets field value.
func (o *CIAppPipelineEventJob) SetLevel(v CIAppPipelineEventJobLevel)
SetLevel sets field value.
func (o *CIAppPipelineEventJob) SetMetrics(v []string)
SetMetrics gets a reference to the given datadog.NullableList[string] and assigns it to the Metrics field.
func (o *CIAppPipelineEventJob) SetMetricsNil()
SetMetricsNil sets the value for Metrics to be an explicit nil.
func (o *CIAppPipelineEventJob) SetName(v string)
SetName sets field value.
func (o *CIAppPipelineEventJob) SetNode(v CIAppHostInfo)
SetNode gets a reference to the given NullableCIAppHostInfo and assigns it to the Node field.
func (o *CIAppPipelineEventJob) SetNodeNil()
SetNodeNil sets the value for Node to be an explicit nil.
func (o *CIAppPipelineEventJob) SetParameters(v map[string]string)
SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field.
func (o *CIAppPipelineEventJob) SetPipelineName(v string)
SetPipelineName sets field value.
func (o *CIAppPipelineEventJob) SetPipelineUniqueId(v string)
SetPipelineUniqueId sets field value.
func (o *CIAppPipelineEventJob) SetQueueTime(v int64)
SetQueueTime gets a reference to the given datadog.NullableInt64 and assigns it to the QueueTime field.
func (o *CIAppPipelineEventJob) SetQueueTimeNil()
SetQueueTimeNil sets the value for QueueTime to be an explicit nil.
func (o *CIAppPipelineEventJob) SetStageId(v string)
SetStageId gets a reference to the given datadog.NullableString and assigns it to the StageId field.
func (o *CIAppPipelineEventJob) SetStageIdNil()
SetStageIdNil sets the value for StageId to be an explicit nil.
func (o *CIAppPipelineEventJob) SetStageName(v string)
SetStageName gets a reference to the given datadog.NullableString and assigns it to the StageName field.
func (o *CIAppPipelineEventJob) SetStageNameNil()
SetStageNameNil sets the value for StageName to be an explicit nil.
func (o *CIAppPipelineEventJob) SetStart(v time.Time)
SetStart sets field value.
func (o *CIAppPipelineEventJob) SetStatus(v CIAppPipelineEventJobStatus)
SetStatus sets field value.
func (o *CIAppPipelineEventJob) SetTags(v []string)
SetTags gets a reference to the given datadog.NullableList[string] and assigns it to the Tags field.
func (o *CIAppPipelineEventJob) SetTagsNil()
SetTagsNil sets the value for Tags to be an explicit nil.
func (o *CIAppPipelineEventJob) SetUrl(v string)
SetUrl sets field value.
func (o *CIAppPipelineEventJob) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CIAppPipelineEventJob) UnsetDependencies()
UnsetDependencies ensures that no value is present for Dependencies, not even an explicit nil.
func (o *CIAppPipelineEventJob) UnsetError()
UnsetError ensures that no value is present for Error, not even an explicit nil.
func (o *CIAppPipelineEventJob) UnsetMetrics()
UnsetMetrics ensures that no value is present for Metrics, not even an explicit nil.
func (o *CIAppPipelineEventJob) UnsetNode()
UnsetNode ensures that no value is present for Node, not even an explicit nil.
func (o *CIAppPipelineEventJob) UnsetQueueTime()
UnsetQueueTime ensures that no value is present for QueueTime, not even an explicit nil.
func (o *CIAppPipelineEventJob) UnsetStageId()
UnsetStageId ensures that no value is present for StageId, not even an explicit nil.
func (o *CIAppPipelineEventJob) UnsetStageName()
UnsetStageName ensures that no value is present for StageName, not even an explicit nil.
func (o *CIAppPipelineEventJob) UnsetTags()
UnsetTags ensures that no value is present for Tags, not even an explicit nil.
CIAppPipelineEventJobLevel Used to distinguish between pipelines, stages, jobs, and steps.
type CIAppPipelineEventJobLevel string
List of CIAppPipelineEventJobLevel.
const (
CIAPPPIPELINEEVENTJOBLEVEL_JOB CIAppPipelineEventJobLevel = "job"
)
func NewCIAppPipelineEventJobLevelFromValue(v string) (*CIAppPipelineEventJobLevel, error)
NewCIAppPipelineEventJobLevelFromValue returns a pointer to a valid CIAppPipelineEventJobLevel for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventJobLevel) GetAllowedValues() []CIAppPipelineEventJobLevel
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventJobLevel) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventJobLevel) Ptr() *CIAppPipelineEventJobLevel
Ptr returns reference to CIAppPipelineEventJobLevel value.
func (v *CIAppPipelineEventJobLevel) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventJobStatus The final status of the job.
type CIAppPipelineEventJobStatus string
List of CIAppPipelineEventJobStatus.
const (
CIAPPPIPELINEEVENTJOBSTATUS_SUCCESS CIAppPipelineEventJobStatus = "success"
CIAPPPIPELINEEVENTJOBSTATUS_ERROR CIAppPipelineEventJobStatus = "error"
CIAPPPIPELINEEVENTJOBSTATUS_CANCELED CIAppPipelineEventJobStatus = "canceled"
CIAPPPIPELINEEVENTJOBSTATUS_SKIPPED CIAppPipelineEventJobStatus = "skipped"
)
func NewCIAppPipelineEventJobStatusFromValue(v string) (*CIAppPipelineEventJobStatus, error)
NewCIAppPipelineEventJobStatusFromValue returns a pointer to a valid CIAppPipelineEventJobStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventJobStatus) GetAllowedValues() []CIAppPipelineEventJobStatus
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventJobStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventJobStatus) Ptr() *CIAppPipelineEventJobStatus
Ptr returns reference to CIAppPipelineEventJobStatus value.
func (v *CIAppPipelineEventJobStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventParentPipeline If the pipeline is triggered as child of another pipeline, this should contain the details of the parent pipeline.
type CIAppPipelineEventParentPipeline struct {
// UUID of a pipeline.
Id string `json:"id"`
// The URL to look at the pipeline in the CI provider UI.
Url *string `json:"url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEventParentPipeline(id string) *CIAppPipelineEventParentPipeline
NewCIAppPipelineEventParentPipeline instantiates a new CIAppPipelineEventParentPipeline object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventParentPipelineWithDefaults() *CIAppPipelineEventParentPipeline
NewCIAppPipelineEventParentPipelineWithDefaults instantiates a new CIAppPipelineEventParentPipeline object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEventParentPipeline) GetId() string
GetId returns the Id field value.
func (o *CIAppPipelineEventParentPipeline) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventParentPipeline) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise.
func (o *CIAppPipelineEventParentPipeline) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventParentPipeline) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (o CIAppPipelineEventParentPipeline) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEventParentPipeline) SetId(v string)
SetId sets field value.
func (o *CIAppPipelineEventParentPipeline) SetUrl(v string)
SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *CIAppPipelineEventParentPipeline) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventPipeline Details of the top level pipeline, build, or workflow of your CI.
type CIAppPipelineEventPipeline struct {
// Time when the pipeline run finished. It cannot be older than 18 hours in the past from the current time. The time format must be RFC3339.
End time.Time `json:"end"`
// Contains information of the CI error.
Error NullableCIAppCIError `json:"error,omitempty"`
// If pipelines are triggered due to actions to a Git repository, then all payloads must contain this.
// Note that either `tag` or `branch` has to be provided, but not both.
Git NullableCIAppGitInfo `json:"git"`
// Whether or not the pipeline was triggered manually by the user.
IsManual datadog.NullableBool `json:"is_manual,omitempty"`
// Whether or not the pipeline was resumed after being blocked.
IsResumed datadog.NullableBool `json:"is_resumed,omitempty"`
// Used to distinguish between pipelines, stages, jobs, and steps.
Level CIAppPipelineEventPipelineLevel `json:"level"`
// A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric.
Metrics datadog.NullableList[string] `json:"metrics,omitempty"`
// Name of the pipeline. All pipeline runs for the builds should have the same name.
Name string `json:"name"`
// Contains information of the host running the pipeline, stage, job, or step.
Node NullableCIAppHostInfo `json:"node,omitempty"`
// A map of key-value parameters or environment variables that were defined for the pipeline.
Parameters map[string]string `json:"parameters,omitempty"`
// If the pipeline is triggered as child of another pipeline, this should contain the details of the parent pipeline.
ParentPipeline NullableCIAppPipelineEventParentPipeline `json:"parent_pipeline,omitempty"`
// Whether or not the pipeline was a partial retry of a previous attempt. A partial retry is one
// which only runs a subset of the original jobs.
PartialRetry bool `json:"partial_retry"`
// Any ID used in the provider to identify the pipeline run even if it is not unique across retries.
// If the `pipeline_id` is unique, then both `unique_id` and `pipeline_id` can be set to the same value.
PipelineId *string `json:"pipeline_id,omitempty"`
// If the pipeline is a retry, this should contain the details of the previous attempt.
PreviousAttempt NullableCIAppPipelineEventPreviousPipeline `json:"previous_attempt,omitempty"`
// The queue time in milliseconds, if applicable.
QueueTime datadog.NullableInt64 `json:"queue_time,omitempty"`
// Time when the pipeline run started (it should not include any queue time). The time format must be RFC3339.
Start time.Time `json:"start"`
// The final status of the pipeline.
Status CIAppPipelineEventPipelineStatus `json:"status"`
// A list of user-defined tags. The tags must follow the `key:value` pattern.
Tags datadog.NullableList[string] `json:"tags,omitempty"`
// UUID of the pipeline run. The ID has to be unique across retries and pipelines,
// including partial retries.
UniqueId string `json:"unique_id"`
// The URL to look at the pipeline in the CI provider UI.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEventPipeline(end time.Time, git NullableCIAppGitInfo, level CIAppPipelineEventPipelineLevel, name string, partialRetry bool, start time.Time, status CIAppPipelineEventPipelineStatus, uniqueId string, url string) *CIAppPipelineEventPipeline
NewCIAppPipelineEventPipeline instantiates a new CIAppPipelineEventPipeline object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventPipelineWithDefaults() *CIAppPipelineEventPipeline
NewCIAppPipelineEventPipelineWithDefaults instantiates a new CIAppPipelineEventPipeline object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEventPipeline) GetEnd() time.Time
GetEnd returns the End field value.
func (o *CIAppPipelineEventPipeline) GetEndOk() (*time.Time, bool)
GetEndOk returns a tuple with the End field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) GetError() CIAppCIError
GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetErrorOk() (*CIAppCIError, bool)
GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetGit() CIAppGitInfo
GetGit returns the Git field value. If the value is explicit nil, the zero value for CIAppGitInfo will be returned.
func (o *CIAppPipelineEventPipeline) GetGitOk() (*CIAppGitInfo, bool)
GetGitOk returns a tuple with the Git field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetIsManual() bool
GetIsManual returns the IsManual field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetIsManualOk() (*bool, bool)
GetIsManualOk returns a tuple with the IsManual field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetIsResumed() bool
GetIsResumed returns the IsResumed field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetIsResumedOk() (*bool, bool)
GetIsResumedOk returns a tuple with the IsResumed field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetLevel() CIAppPipelineEventPipelineLevel
GetLevel returns the Level field value.
func (o *CIAppPipelineEventPipeline) GetLevelOk() (*CIAppPipelineEventPipelineLevel, bool)
GetLevelOk returns a tuple with the Level field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetName() string
GetName returns the Name field value.
func (o *CIAppPipelineEventPipeline) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) GetNode() CIAppHostInfo
GetNode returns the Node field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetNodeOk() (*CIAppHostInfo, bool)
GetNodeOk returns a tuple with the Node field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetParameters() map[string]string
GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetParametersOk() (*map[string]string, bool)
GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetParentPipeline() CIAppPipelineEventParentPipeline
GetParentPipeline returns the ParentPipeline field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetParentPipelineOk() (*CIAppPipelineEventParentPipeline, bool)
GetParentPipelineOk returns a tuple with the ParentPipeline field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetPartialRetry() bool
GetPartialRetry returns the PartialRetry field value.
func (o *CIAppPipelineEventPipeline) GetPartialRetryOk() (*bool, bool)
GetPartialRetryOk returns a tuple with the PartialRetry field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) GetPipelineId() string
GetPipelineId returns the PipelineId field value if set, zero value otherwise.
func (o *CIAppPipelineEventPipeline) GetPipelineIdOk() (*string, bool)
GetPipelineIdOk returns a tuple with the PipelineId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) GetPreviousAttempt() CIAppPipelineEventPreviousPipeline
GetPreviousAttempt returns the PreviousAttempt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetPreviousAttemptOk() (*CIAppPipelineEventPreviousPipeline, bool)
GetPreviousAttemptOk returns a tuple with the PreviousAttempt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetQueueTime() int64
GetQueueTime returns the QueueTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetQueueTimeOk() (*int64, bool)
GetQueueTimeOk returns a tuple with the QueueTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetStart() time.Time
GetStart returns the Start field value.
func (o *CIAppPipelineEventPipeline) GetStartOk() (*time.Time, bool)
GetStartOk returns a tuple with the Start field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) GetStatus() CIAppPipelineEventPipelineStatus
GetStatus returns the Status field value.
func (o *CIAppPipelineEventPipeline) GetStatusOk() (*CIAppPipelineEventPipelineStatus, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventPipeline) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventPipeline) GetUniqueId() string
GetUniqueId returns the UniqueId field value.
func (o *CIAppPipelineEventPipeline) GetUniqueIdOk() (*string, bool)
GetUniqueIdOk returns a tuple with the UniqueId field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) GetUrl() string
GetUrl returns the Url field value.
func (o *CIAppPipelineEventPipeline) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPipeline) HasError() bool
HasError returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasIsManual() bool
HasIsManual returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasIsResumed() bool
HasIsResumed returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasNode() bool
HasNode returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasParameters() bool
HasParameters returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasParentPipeline() bool
HasParentPipeline returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasPipelineId() bool
HasPipelineId returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasPreviousAttempt() bool
HasPreviousAttempt returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasQueueTime() bool
HasQueueTime returns a boolean if a field has been set.
func (o *CIAppPipelineEventPipeline) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o CIAppPipelineEventPipeline) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEventPipeline) SetEnd(v time.Time)
SetEnd sets field value.
func (o *CIAppPipelineEventPipeline) SetError(v CIAppCIError)
SetError gets a reference to the given NullableCIAppCIError and assigns it to the Error field.
func (o *CIAppPipelineEventPipeline) SetErrorNil()
SetErrorNil sets the value for Error to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetGit(v CIAppGitInfo)
SetGit sets field value.
func (o *CIAppPipelineEventPipeline) SetIsManual(v bool)
SetIsManual gets a reference to the given datadog.NullableBool and assigns it to the IsManual field.
func (o *CIAppPipelineEventPipeline) SetIsManualNil()
SetIsManualNil sets the value for IsManual to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetIsResumed(v bool)
SetIsResumed gets a reference to the given datadog.NullableBool and assigns it to the IsResumed field.
func (o *CIAppPipelineEventPipeline) SetIsResumedNil()
SetIsResumedNil sets the value for IsResumed to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetLevel(v CIAppPipelineEventPipelineLevel)
SetLevel sets field value.
func (o *CIAppPipelineEventPipeline) SetMetrics(v []string)
SetMetrics gets a reference to the given datadog.NullableList[string] and assigns it to the Metrics field.
func (o *CIAppPipelineEventPipeline) SetMetricsNil()
SetMetricsNil sets the value for Metrics to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetName(v string)
SetName sets field value.
func (o *CIAppPipelineEventPipeline) SetNode(v CIAppHostInfo)
SetNode gets a reference to the given NullableCIAppHostInfo and assigns it to the Node field.
func (o *CIAppPipelineEventPipeline) SetNodeNil()
SetNodeNil sets the value for Node to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetParameters(v map[string]string)
SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field.
func (o *CIAppPipelineEventPipeline) SetParentPipeline(v CIAppPipelineEventParentPipeline)
SetParentPipeline gets a reference to the given NullableCIAppPipelineEventParentPipeline and assigns it to the ParentPipeline field.
func (o *CIAppPipelineEventPipeline) SetParentPipelineNil()
SetParentPipelineNil sets the value for ParentPipeline to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetPartialRetry(v bool)
SetPartialRetry sets field value.
func (o *CIAppPipelineEventPipeline) SetPipelineId(v string)
SetPipelineId gets a reference to the given string and assigns it to the PipelineId field.
func (o *CIAppPipelineEventPipeline) SetPreviousAttempt(v CIAppPipelineEventPreviousPipeline)
SetPreviousAttempt gets a reference to the given NullableCIAppPipelineEventPreviousPipeline and assigns it to the PreviousAttempt field.
func (o *CIAppPipelineEventPipeline) SetPreviousAttemptNil()
SetPreviousAttemptNil sets the value for PreviousAttempt to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetQueueTime(v int64)
SetQueueTime gets a reference to the given datadog.NullableInt64 and assigns it to the QueueTime field.
func (o *CIAppPipelineEventPipeline) SetQueueTimeNil()
SetQueueTimeNil sets the value for QueueTime to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetStart(v time.Time)
SetStart sets field value.
func (o *CIAppPipelineEventPipeline) SetStatus(v CIAppPipelineEventPipelineStatus)
SetStatus sets field value.
func (o *CIAppPipelineEventPipeline) SetTags(v []string)
SetTags gets a reference to the given datadog.NullableList[string] and assigns it to the Tags field.
func (o *CIAppPipelineEventPipeline) SetTagsNil()
SetTagsNil sets the value for Tags to be an explicit nil.
func (o *CIAppPipelineEventPipeline) SetUniqueId(v string)
SetUniqueId sets field value.
func (o *CIAppPipelineEventPipeline) SetUrl(v string)
SetUrl sets field value.
func (o *CIAppPipelineEventPipeline) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CIAppPipelineEventPipeline) UnsetError()
UnsetError ensures that no value is present for Error, not even an explicit nil.
func (o *CIAppPipelineEventPipeline) UnsetIsManual()
UnsetIsManual ensures that no value is present for IsManual, not even an explicit nil.
func (o *CIAppPipelineEventPipeline) UnsetIsResumed()
UnsetIsResumed ensures that no value is present for IsResumed, not even an explicit nil.
func (o *CIAppPipelineEventPipeline) UnsetMetrics()
UnsetMetrics ensures that no value is present for Metrics, not even an explicit nil.
func (o *CIAppPipelineEventPipeline) UnsetNode()
UnsetNode ensures that no value is present for Node, not even an explicit nil.
func (o *CIAppPipelineEventPipeline) UnsetParentPipeline()
UnsetParentPipeline ensures that no value is present for ParentPipeline, not even an explicit nil.
func (o *CIAppPipelineEventPipeline) UnsetPreviousAttempt()
UnsetPreviousAttempt ensures that no value is present for PreviousAttempt, not even an explicit nil.
func (o *CIAppPipelineEventPipeline) UnsetQueueTime()
UnsetQueueTime ensures that no value is present for QueueTime, not even an explicit nil.
func (o *CIAppPipelineEventPipeline) UnsetTags()
UnsetTags ensures that no value is present for Tags, not even an explicit nil.
CIAppPipelineEventPipelineLevel Used to distinguish between pipelines, stages, jobs, and steps.
type CIAppPipelineEventPipelineLevel string
List of CIAppPipelineEventPipelineLevel.
const (
CIAPPPIPELINEEVENTPIPELINELEVEL_PIPELINE CIAppPipelineEventPipelineLevel = "pipeline"
)
func NewCIAppPipelineEventPipelineLevelFromValue(v string) (*CIAppPipelineEventPipelineLevel, error)
NewCIAppPipelineEventPipelineLevelFromValue returns a pointer to a valid CIAppPipelineEventPipelineLevel for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventPipelineLevel) GetAllowedValues() []CIAppPipelineEventPipelineLevel
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventPipelineLevel) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventPipelineLevel) Ptr() *CIAppPipelineEventPipelineLevel
Ptr returns reference to CIAppPipelineEventPipelineLevel value.
func (v *CIAppPipelineEventPipelineLevel) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventPipelineStatus The final status of the pipeline.
type CIAppPipelineEventPipelineStatus string
List of CIAppPipelineEventPipelineStatus.
const (
CIAPPPIPELINEEVENTPIPELINESTATUS_SUCCESS CIAppPipelineEventPipelineStatus = "success"
CIAPPPIPELINEEVENTPIPELINESTATUS_ERROR CIAppPipelineEventPipelineStatus = "error"
CIAPPPIPELINEEVENTPIPELINESTATUS_CANCELED CIAppPipelineEventPipelineStatus = "canceled"
CIAPPPIPELINEEVENTPIPELINESTATUS_SKIPPED CIAppPipelineEventPipelineStatus = "skipped"
CIAPPPIPELINEEVENTPIPELINESTATUS_BLOCKED CIAppPipelineEventPipelineStatus = "blocked"
)
func NewCIAppPipelineEventPipelineStatusFromValue(v string) (*CIAppPipelineEventPipelineStatus, error)
NewCIAppPipelineEventPipelineStatusFromValue returns a pointer to a valid CIAppPipelineEventPipelineStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventPipelineStatus) GetAllowedValues() []CIAppPipelineEventPipelineStatus
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventPipelineStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventPipelineStatus) Ptr() *CIAppPipelineEventPipelineStatus
Ptr returns reference to CIAppPipelineEventPipelineStatus value.
func (v *CIAppPipelineEventPipelineStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventPreviousPipeline If the pipeline is a retry, this should contain the details of the previous attempt.
type CIAppPipelineEventPreviousPipeline struct {
// UUID of a pipeline.
Id string `json:"id"`
// The URL to look at the pipeline in the CI provider UI.
Url *string `json:"url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEventPreviousPipeline(id string) *CIAppPipelineEventPreviousPipeline
NewCIAppPipelineEventPreviousPipeline instantiates a new CIAppPipelineEventPreviousPipeline object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventPreviousPipelineWithDefaults() *CIAppPipelineEventPreviousPipeline
NewCIAppPipelineEventPreviousPipelineWithDefaults instantiates a new CIAppPipelineEventPreviousPipeline object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEventPreviousPipeline) GetId() string
GetId returns the Id field value.
func (o *CIAppPipelineEventPreviousPipeline) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPreviousPipeline) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise.
func (o *CIAppPipelineEventPreviousPipeline) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventPreviousPipeline) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (o CIAppPipelineEventPreviousPipeline) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEventPreviousPipeline) SetId(v string)
SetId sets field value.
func (o *CIAppPipelineEventPreviousPipeline) SetUrl(v string)
SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *CIAppPipelineEventPreviousPipeline) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventStage Details of a CI stage.
type CIAppPipelineEventStage struct {
// A list of stage IDs that this stage depends on.
Dependencies datadog.NullableList[string] `json:"dependencies,omitempty"`
// Time when the stage run finished. The time format must be RFC3339.
End time.Time `json:"end"`
// Contains information of the CI error.
Error NullableCIAppCIError `json:"error,omitempty"`
// If pipelines are triggered due to actions to a Git repository, then all payloads must contain this.
// Note that either `tag` or `branch` has to be provided, but not both.
Git NullableCIAppGitInfo `json:"git"`
// UUID for the stage. It has to be unique at least in the pipeline scope.
Id string `json:"id"`
// Used to distinguish between pipelines, stages, jobs and steps.
Level CIAppPipelineEventStageLevel `json:"level"`
// A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric.
Metrics datadog.NullableList[string] `json:"metrics,omitempty"`
// The name for the stage.
Name string `json:"name"`
// Contains information of the host running the pipeline, stage, job, or step.
Node NullableCIAppHostInfo `json:"node,omitempty"`
// A map of key-value parameters or environment variables that were defined for the pipeline.
Parameters map[string]string `json:"parameters,omitempty"`
// The parent pipeline name.
PipelineName string `json:"pipeline_name"`
// The parent pipeline UUID.
PipelineUniqueId string `json:"pipeline_unique_id"`
// The queue time in milliseconds, if applicable.
QueueTime datadog.NullableInt64 `json:"queue_time,omitempty"`
// Time when the stage run started (it should not include any queue time). The time format must be RFC3339.
Start time.Time `json:"start"`
// The final status of the stage.
Status CIAppPipelineEventStageStatus `json:"status"`
// A list of user-defined tags. The tags must follow the `key:value` pattern.
Tags datadog.NullableList[string] `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEventStage(end time.Time, git NullableCIAppGitInfo, id string, level CIAppPipelineEventStageLevel, name string, pipelineName string, pipelineUniqueId string, start time.Time, status CIAppPipelineEventStageStatus) *CIAppPipelineEventStage
NewCIAppPipelineEventStage instantiates a new CIAppPipelineEventStage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventStageWithDefaults() *CIAppPipelineEventStage
NewCIAppPipelineEventStageWithDefaults instantiates a new CIAppPipelineEventStage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEventStage) GetDependencies() []string
GetDependencies returns the Dependencies field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStage) GetDependenciesOk() (*[]string, bool)
GetDependenciesOk returns a tuple with the Dependencies field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStage) GetEnd() time.Time
GetEnd returns the End field value.
func (o *CIAppPipelineEventStage) GetEndOk() (*time.Time, bool)
GetEndOk returns a tuple with the End field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStage) GetError() CIAppCIError
GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStage) GetErrorOk() (*CIAppCIError, bool)
GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStage) GetGit() CIAppGitInfo
GetGit returns the Git field value. If the value is explicit nil, the zero value for CIAppGitInfo will be returned.
func (o *CIAppPipelineEventStage) GetGitOk() (*CIAppGitInfo, bool)
GetGitOk returns a tuple with the Git field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStage) GetId() string
GetId returns the Id field value.
func (o *CIAppPipelineEventStage) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStage) GetLevel() CIAppPipelineEventStageLevel
GetLevel returns the Level field value.
func (o *CIAppPipelineEventStage) GetLevelOk() (*CIAppPipelineEventStageLevel, bool)
GetLevelOk returns a tuple with the Level field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStage) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStage) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStage) GetName() string
GetName returns the Name field value.
func (o *CIAppPipelineEventStage) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStage) GetNode() CIAppHostInfo
GetNode returns the Node field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStage) GetNodeOk() (*CIAppHostInfo, bool)
GetNodeOk returns a tuple with the Node field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStage) GetParameters() map[string]string
GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStage) GetParametersOk() (*map[string]string, bool)
GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStage) GetPipelineName() string
GetPipelineName returns the PipelineName field value.
func (o *CIAppPipelineEventStage) GetPipelineNameOk() (*string, bool)
GetPipelineNameOk returns a tuple with the PipelineName field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStage) GetPipelineUniqueId() string
GetPipelineUniqueId returns the PipelineUniqueId field value.
func (o *CIAppPipelineEventStage) GetPipelineUniqueIdOk() (*string, bool)
GetPipelineUniqueIdOk returns a tuple with the PipelineUniqueId field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStage) GetQueueTime() int64
GetQueueTime returns the QueueTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStage) GetQueueTimeOk() (*int64, bool)
GetQueueTimeOk returns a tuple with the QueueTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStage) GetStart() time.Time
GetStart returns the Start field value.
func (o *CIAppPipelineEventStage) GetStartOk() (*time.Time, bool)
GetStartOk returns a tuple with the Start field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStage) GetStatus() CIAppPipelineEventStageStatus
GetStatus returns the Status field value.
func (o *CIAppPipelineEventStage) GetStatusOk() (*CIAppPipelineEventStageStatus, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStage) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStage) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStage) HasDependencies() bool
HasDependencies returns a boolean if a field has been set.
func (o *CIAppPipelineEventStage) HasError() bool
HasError returns a boolean if a field has been set.
func (o *CIAppPipelineEventStage) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *CIAppPipelineEventStage) HasNode() bool
HasNode returns a boolean if a field has been set.
func (o *CIAppPipelineEventStage) HasParameters() bool
HasParameters returns a boolean if a field has been set.
func (o *CIAppPipelineEventStage) HasQueueTime() bool
HasQueueTime returns a boolean if a field has been set.
func (o *CIAppPipelineEventStage) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o CIAppPipelineEventStage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEventStage) SetDependencies(v []string)
SetDependencies gets a reference to the given datadog.NullableList[string] and assigns it to the Dependencies field.
func (o *CIAppPipelineEventStage) SetDependenciesNil()
SetDependenciesNil sets the value for Dependencies to be an explicit nil.
func (o *CIAppPipelineEventStage) SetEnd(v time.Time)
SetEnd sets field value.
func (o *CIAppPipelineEventStage) SetError(v CIAppCIError)
SetError gets a reference to the given NullableCIAppCIError and assigns it to the Error field.
func (o *CIAppPipelineEventStage) SetErrorNil()
SetErrorNil sets the value for Error to be an explicit nil.
func (o *CIAppPipelineEventStage) SetGit(v CIAppGitInfo)
SetGit sets field value.
func (o *CIAppPipelineEventStage) SetId(v string)
SetId sets field value.
func (o *CIAppPipelineEventStage) SetLevel(v CIAppPipelineEventStageLevel)
SetLevel sets field value.
func (o *CIAppPipelineEventStage) SetMetrics(v []string)
SetMetrics gets a reference to the given datadog.NullableList[string] and assigns it to the Metrics field.
func (o *CIAppPipelineEventStage) SetMetricsNil()
SetMetricsNil sets the value for Metrics to be an explicit nil.
func (o *CIAppPipelineEventStage) SetName(v string)
SetName sets field value.
func (o *CIAppPipelineEventStage) SetNode(v CIAppHostInfo)
SetNode gets a reference to the given NullableCIAppHostInfo and assigns it to the Node field.
func (o *CIAppPipelineEventStage) SetNodeNil()
SetNodeNil sets the value for Node to be an explicit nil.
func (o *CIAppPipelineEventStage) SetParameters(v map[string]string)
SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field.
func (o *CIAppPipelineEventStage) SetPipelineName(v string)
SetPipelineName sets field value.
func (o *CIAppPipelineEventStage) SetPipelineUniqueId(v string)
SetPipelineUniqueId sets field value.
func (o *CIAppPipelineEventStage) SetQueueTime(v int64)
SetQueueTime gets a reference to the given datadog.NullableInt64 and assigns it to the QueueTime field.
func (o *CIAppPipelineEventStage) SetQueueTimeNil()
SetQueueTimeNil sets the value for QueueTime to be an explicit nil.
func (o *CIAppPipelineEventStage) SetStart(v time.Time)
SetStart sets field value.
func (o *CIAppPipelineEventStage) SetStatus(v CIAppPipelineEventStageStatus)
SetStatus sets field value.
func (o *CIAppPipelineEventStage) SetTags(v []string)
SetTags gets a reference to the given datadog.NullableList[string] and assigns it to the Tags field.
func (o *CIAppPipelineEventStage) SetTagsNil()
SetTagsNil sets the value for Tags to be an explicit nil.
func (o *CIAppPipelineEventStage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CIAppPipelineEventStage) UnsetDependencies()
UnsetDependencies ensures that no value is present for Dependencies, not even an explicit nil.
func (o *CIAppPipelineEventStage) UnsetError()
UnsetError ensures that no value is present for Error, not even an explicit nil.
func (o *CIAppPipelineEventStage) UnsetMetrics()
UnsetMetrics ensures that no value is present for Metrics, not even an explicit nil.
func (o *CIAppPipelineEventStage) UnsetNode()
UnsetNode ensures that no value is present for Node, not even an explicit nil.
func (o *CIAppPipelineEventStage) UnsetQueueTime()
UnsetQueueTime ensures that no value is present for QueueTime, not even an explicit nil.
func (o *CIAppPipelineEventStage) UnsetTags()
UnsetTags ensures that no value is present for Tags, not even an explicit nil.
CIAppPipelineEventStageLevel Used to distinguish between pipelines, stages, jobs and steps.
type CIAppPipelineEventStageLevel string
List of CIAppPipelineEventStageLevel.
const (
CIAPPPIPELINEEVENTSTAGELEVEL_STAGE CIAppPipelineEventStageLevel = "stage"
)
func NewCIAppPipelineEventStageLevelFromValue(v string) (*CIAppPipelineEventStageLevel, error)
NewCIAppPipelineEventStageLevelFromValue returns a pointer to a valid CIAppPipelineEventStageLevel for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventStageLevel) GetAllowedValues() []CIAppPipelineEventStageLevel
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventStageLevel) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventStageLevel) Ptr() *CIAppPipelineEventStageLevel
Ptr returns reference to CIAppPipelineEventStageLevel value.
func (v *CIAppPipelineEventStageLevel) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventStageStatus The final status of the stage.
type CIAppPipelineEventStageStatus string
List of CIAppPipelineEventStageStatus.
const (
CIAPPPIPELINEEVENTSTAGESTATUS_SUCCESS CIAppPipelineEventStageStatus = "success"
CIAPPPIPELINEEVENTSTAGESTATUS_ERROR CIAppPipelineEventStageStatus = "error"
CIAPPPIPELINEEVENTSTAGESTATUS_CANCELED CIAppPipelineEventStageStatus = "canceled"
CIAPPPIPELINEEVENTSTAGESTATUS_SKIPPED CIAppPipelineEventStageStatus = "skipped"
)
func NewCIAppPipelineEventStageStatusFromValue(v string) (*CIAppPipelineEventStageStatus, error)
NewCIAppPipelineEventStageStatusFromValue returns a pointer to a valid CIAppPipelineEventStageStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventStageStatus) GetAllowedValues() []CIAppPipelineEventStageStatus
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventStageStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventStageStatus) Ptr() *CIAppPipelineEventStageStatus
Ptr returns reference to CIAppPipelineEventStageStatus value.
func (v *CIAppPipelineEventStageStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventStep Details of a CI step.
type CIAppPipelineEventStep struct {
// Time when the step run finished. The time format must be RFC3339.
End time.Time `json:"end"`
// Contains information of the CI error.
Error NullableCIAppCIError `json:"error,omitempty"`
// If pipelines are triggered due to actions to a Git repository, then all payloads must contain this.
// Note that either `tag` or `branch` has to be provided, but not both.
Git NullableCIAppGitInfo `json:"git"`
// UUID for the step. It has to be unique within each pipeline execution.
Id string `json:"id"`
// The parent job UUID (if applicable).
JobId datadog.NullableString `json:"job_id,omitempty"`
// The parent job name (if applicable).
JobName datadog.NullableString `json:"job_name,omitempty"`
// Used to distinguish between pipelines, stages, jobs and steps.
Level CIAppPipelineEventStepLevel `json:"level"`
// A list of user-defined metrics. The metrics must follow the `key:value` pattern and the value must be numeric.
Metrics datadog.NullableList[string] `json:"metrics,omitempty"`
// The name for the step.
Name string `json:"name"`
// Contains information of the host running the pipeline, stage, job, or step.
Node NullableCIAppHostInfo `json:"node,omitempty"`
// A map of key-value parameters or environment variables that were defined for the pipeline.
Parameters map[string]string `json:"parameters,omitempty"`
// The parent pipeline name.
PipelineName string `json:"pipeline_name"`
// The parent pipeline UUID.
PipelineUniqueId string `json:"pipeline_unique_id"`
// The parent stage UUID (if applicable).
StageId datadog.NullableString `json:"stage_id,omitempty"`
// The parent stage name (if applicable).
StageName datadog.NullableString `json:"stage_name,omitempty"`
// Time when the step run started. The time format must be RFC3339.
Start time.Time `json:"start"`
// The final status of the step.
Status CIAppPipelineEventStepStatus `json:"status"`
// A list of user-defined tags. The tags must follow the `key:value` pattern.
Tags datadog.NullableList[string] `json:"tags,omitempty"`
// The URL to look at the step in the CI provider UI.
Url datadog.NullableString `json:"url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEventStep(end time.Time, git NullableCIAppGitInfo, id string, level CIAppPipelineEventStepLevel, name string, pipelineName string, pipelineUniqueId string, start time.Time, status CIAppPipelineEventStepStatus) *CIAppPipelineEventStep
NewCIAppPipelineEventStep instantiates a new CIAppPipelineEventStep object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventStepWithDefaults() *CIAppPipelineEventStep
NewCIAppPipelineEventStepWithDefaults instantiates a new CIAppPipelineEventStep object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEventStep) GetEnd() time.Time
GetEnd returns the End field value.
func (o *CIAppPipelineEventStep) GetEndOk() (*time.Time, bool)
GetEndOk returns a tuple with the End field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStep) GetError() CIAppCIError
GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetErrorOk() (*CIAppCIError, bool)
GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetGit() CIAppGitInfo
GetGit returns the Git field value. If the value is explicit nil, the zero value for CIAppGitInfo will be returned.
func (o *CIAppPipelineEventStep) GetGitOk() (*CIAppGitInfo, bool)
GetGitOk returns a tuple with the Git field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetId() string
GetId returns the Id field value.
func (o *CIAppPipelineEventStep) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStep) GetJobId() string
GetJobId returns the JobId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetJobIdOk() (*string, bool)
GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetJobName() string
GetJobName returns the JobName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetJobNameOk() (*string, bool)
GetJobNameOk returns a tuple with the JobName field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetLevel() CIAppPipelineEventStepLevel
GetLevel returns the Level field value.
func (o *CIAppPipelineEventStep) GetLevelOk() (*CIAppPipelineEventStepLevel, bool)
GetLevelOk returns a tuple with the Level field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStep) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetName() string
GetName returns the Name field value.
func (o *CIAppPipelineEventStep) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStep) GetNode() CIAppHostInfo
GetNode returns the Node field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetNodeOk() (*CIAppHostInfo, bool)
GetNodeOk returns a tuple with the Node field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetParameters() map[string]string
GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetParametersOk() (*map[string]string, bool)
GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetPipelineName() string
GetPipelineName returns the PipelineName field value.
func (o *CIAppPipelineEventStep) GetPipelineNameOk() (*string, bool)
GetPipelineNameOk returns a tuple with the PipelineName field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStep) GetPipelineUniqueId() string
GetPipelineUniqueId returns the PipelineUniqueId field value.
func (o *CIAppPipelineEventStep) GetPipelineUniqueIdOk() (*string, bool)
GetPipelineUniqueIdOk returns a tuple with the PipelineUniqueId field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStep) GetStageId() string
GetStageId returns the StageId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetStageIdOk() (*string, bool)
GetStageIdOk returns a tuple with the StageId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetStageName() string
GetStageName returns the StageName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetStageNameOk() (*string, bool)
GetStageNameOk returns a tuple with the StageName field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetStart() time.Time
GetStart returns the Start field value.
func (o *CIAppPipelineEventStep) GetStartOk() (*time.Time, bool)
GetStartOk returns a tuple with the Start field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStep) GetStatus() CIAppPipelineEventStepStatus
GetStatus returns the Status field value.
func (o *CIAppPipelineEventStep) GetStatusOk() (*CIAppPipelineEventStepStatus, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (o *CIAppPipelineEventStep) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CIAppPipelineEventStep) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CIAppPipelineEventStep) HasError() bool
HasError returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasJobId() bool
HasJobId returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasJobName() bool
HasJobName returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasNode() bool
HasNode returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasParameters() bool
HasParameters returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasStageId() bool
HasStageId returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasStageName() bool
HasStageName returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *CIAppPipelineEventStep) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (o CIAppPipelineEventStep) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEventStep) SetEnd(v time.Time)
SetEnd sets field value.
func (o *CIAppPipelineEventStep) SetError(v CIAppCIError)
SetError gets a reference to the given NullableCIAppCIError and assigns it to the Error field.
func (o *CIAppPipelineEventStep) SetErrorNil()
SetErrorNil sets the value for Error to be an explicit nil.
func (o *CIAppPipelineEventStep) SetGit(v CIAppGitInfo)
SetGit sets field value.
func (o *CIAppPipelineEventStep) SetId(v string)
SetId sets field value.
func (o *CIAppPipelineEventStep) SetJobId(v string)
SetJobId gets a reference to the given datadog.NullableString and assigns it to the JobId field.
func (o *CIAppPipelineEventStep) SetJobIdNil()
SetJobIdNil sets the value for JobId to be an explicit nil.
func (o *CIAppPipelineEventStep) SetJobName(v string)
SetJobName gets a reference to the given datadog.NullableString and assigns it to the JobName field.
func (o *CIAppPipelineEventStep) SetJobNameNil()
SetJobNameNil sets the value for JobName to be an explicit nil.
func (o *CIAppPipelineEventStep) SetLevel(v CIAppPipelineEventStepLevel)
SetLevel sets field value.
func (o *CIAppPipelineEventStep) SetMetrics(v []string)
SetMetrics gets a reference to the given datadog.NullableList[string] and assigns it to the Metrics field.
func (o *CIAppPipelineEventStep) SetMetricsNil()
SetMetricsNil sets the value for Metrics to be an explicit nil.
func (o *CIAppPipelineEventStep) SetName(v string)
SetName sets field value.
func (o *CIAppPipelineEventStep) SetNode(v CIAppHostInfo)
SetNode gets a reference to the given NullableCIAppHostInfo and assigns it to the Node field.
func (o *CIAppPipelineEventStep) SetNodeNil()
SetNodeNil sets the value for Node to be an explicit nil.
func (o *CIAppPipelineEventStep) SetParameters(v map[string]string)
SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field.
func (o *CIAppPipelineEventStep) SetPipelineName(v string)
SetPipelineName sets field value.
func (o *CIAppPipelineEventStep) SetPipelineUniqueId(v string)
SetPipelineUniqueId sets field value.
func (o *CIAppPipelineEventStep) SetStageId(v string)
SetStageId gets a reference to the given datadog.NullableString and assigns it to the StageId field.
func (o *CIAppPipelineEventStep) SetStageIdNil()
SetStageIdNil sets the value for StageId to be an explicit nil.
func (o *CIAppPipelineEventStep) SetStageName(v string)
SetStageName gets a reference to the given datadog.NullableString and assigns it to the StageName field.
func (o *CIAppPipelineEventStep) SetStageNameNil()
SetStageNameNil sets the value for StageName to be an explicit nil.
func (o *CIAppPipelineEventStep) SetStart(v time.Time)
SetStart sets field value.
func (o *CIAppPipelineEventStep) SetStatus(v CIAppPipelineEventStepStatus)
SetStatus sets field value.
func (o *CIAppPipelineEventStep) SetTags(v []string)
SetTags gets a reference to the given datadog.NullableList[string] and assigns it to the Tags field.
func (o *CIAppPipelineEventStep) SetTagsNil()
SetTagsNil sets the value for Tags to be an explicit nil.
func (o *CIAppPipelineEventStep) SetUrl(v string)
SetUrl gets a reference to the given datadog.NullableString and assigns it to the Url field.
func (o *CIAppPipelineEventStep) SetUrlNil()
SetUrlNil sets the value for Url to be an explicit nil.
func (o *CIAppPipelineEventStep) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CIAppPipelineEventStep) UnsetError()
UnsetError ensures that no value is present for Error, not even an explicit nil.
func (o *CIAppPipelineEventStep) UnsetJobId()
UnsetJobId ensures that no value is present for JobId, not even an explicit nil.
func (o *CIAppPipelineEventStep) UnsetJobName()
UnsetJobName ensures that no value is present for JobName, not even an explicit nil.
func (o *CIAppPipelineEventStep) UnsetMetrics()
UnsetMetrics ensures that no value is present for Metrics, not even an explicit nil.
func (o *CIAppPipelineEventStep) UnsetNode()
UnsetNode ensures that no value is present for Node, not even an explicit nil.
func (o *CIAppPipelineEventStep) UnsetStageId()
UnsetStageId ensures that no value is present for StageId, not even an explicit nil.
func (o *CIAppPipelineEventStep) UnsetStageName()
UnsetStageName ensures that no value is present for StageName, not even an explicit nil.
func (o *CIAppPipelineEventStep) UnsetTags()
UnsetTags ensures that no value is present for Tags, not even an explicit nil.
func (o *CIAppPipelineEventStep) UnsetUrl()
UnsetUrl ensures that no value is present for Url, not even an explicit nil.
CIAppPipelineEventStepLevel Used to distinguish between pipelines, stages, jobs and steps.
type CIAppPipelineEventStepLevel string
List of CIAppPipelineEventStepLevel.
const (
CIAPPPIPELINEEVENTSTEPLEVEL_STEP CIAppPipelineEventStepLevel = "step"
)
func NewCIAppPipelineEventStepLevelFromValue(v string) (*CIAppPipelineEventStepLevel, error)
NewCIAppPipelineEventStepLevelFromValue returns a pointer to a valid CIAppPipelineEventStepLevel for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventStepLevel) GetAllowedValues() []CIAppPipelineEventStepLevel
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventStepLevel) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventStepLevel) Ptr() *CIAppPipelineEventStepLevel
Ptr returns reference to CIAppPipelineEventStepLevel value.
func (v *CIAppPipelineEventStepLevel) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventStepStatus The final status of the step.
type CIAppPipelineEventStepStatus string
List of CIAppPipelineEventStepStatus.
const (
CIAPPPIPELINEEVENTSTEPSTATUS_SUCCESS CIAppPipelineEventStepStatus = "success"
CIAPPPIPELINEEVENTSTEPSTATUS_ERROR CIAppPipelineEventStepStatus = "error"
)
func NewCIAppPipelineEventStepStatusFromValue(v string) (*CIAppPipelineEventStepStatus, error)
NewCIAppPipelineEventStepStatusFromValue returns a pointer to a valid CIAppPipelineEventStepStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventStepStatus) GetAllowedValues() []CIAppPipelineEventStepStatus
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventStepStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventStepStatus) Ptr() *CIAppPipelineEventStepStatus
Ptr returns reference to CIAppPipelineEventStepStatus value.
func (v *CIAppPipelineEventStepStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventTypeName Type of the event.
type CIAppPipelineEventTypeName string
List of CIAppPipelineEventTypeName.
const (
CIAPPPIPELINEEVENTTYPENAME_CIPIPELINE CIAppPipelineEventTypeName = "cipipeline"
)
func NewCIAppPipelineEventTypeNameFromValue(v string) (*CIAppPipelineEventTypeName, error)
NewCIAppPipelineEventTypeNameFromValue returns a pointer to a valid CIAppPipelineEventTypeName for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppPipelineEventTypeName) GetAllowedValues() []CIAppPipelineEventTypeName
GetAllowedValues reeturns the list of possible values.
func (v CIAppPipelineEventTypeName) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppPipelineEventTypeName) Ptr() *CIAppPipelineEventTypeName
Ptr returns reference to CIAppPipelineEventTypeName value.
func (v *CIAppPipelineEventTypeName) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventsRequest The request for a pipelines search.
type CIAppPipelineEventsRequest struct {
// The search and filter query settings.
Filter *CIAppPipelinesQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Only supply timezone or time offset, not both. Otherwise, the query fails.
Options *CIAppQueryOptions `json:"options,omitempty"`
// Paging attributes for listing events.
Page *CIAppQueryPageOptions `json:"page,omitempty"`
// Sort parameters when querying events.
Sort *CIAppSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEventsRequest() *CIAppPipelineEventsRequest
NewCIAppPipelineEventsRequest instantiates a new CIAppPipelineEventsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventsRequestWithDefaults() *CIAppPipelineEventsRequest
NewCIAppPipelineEventsRequestWithDefaults instantiates a new CIAppPipelineEventsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEventsRequest) GetFilter() CIAppPipelinesQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *CIAppPipelineEventsRequest) GetFilterOk() (*CIAppPipelinesQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventsRequest) GetOptions() CIAppQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *CIAppPipelineEventsRequest) GetOptionsOk() (*CIAppQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventsRequest) GetPage() CIAppQueryPageOptions
GetPage returns the Page field value if set, zero value otherwise.
func (o *CIAppPipelineEventsRequest) GetPageOk() (*CIAppQueryPageOptions, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventsRequest) GetSort() CIAppSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *CIAppPipelineEventsRequest) GetSortOk() (*CIAppSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventsRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *CIAppPipelineEventsRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *CIAppPipelineEventsRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *CIAppPipelineEventsRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o CIAppPipelineEventsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEventsRequest) SetFilter(v CIAppPipelinesQueryFilter)
SetFilter gets a reference to the given CIAppPipelinesQueryFilter and assigns it to the Filter field.
func (o *CIAppPipelineEventsRequest) SetOptions(v CIAppQueryOptions)
SetOptions gets a reference to the given CIAppQueryOptions and assigns it to the Options field.
func (o *CIAppPipelineEventsRequest) SetPage(v CIAppQueryPageOptions)
SetPage gets a reference to the given CIAppQueryPageOptions and assigns it to the Page field.
func (o *CIAppPipelineEventsRequest) SetSort(v CIAppSort)
SetSort gets a reference to the given CIAppSort and assigns it to the Sort field.
func (o *CIAppPipelineEventsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelineEventsResponse Response object with all pipeline events matching the request and pagination information.
type CIAppPipelineEventsResponse struct {
// Array of events matching the request.
Data []CIAppPipelineEvent `json:"data,omitempty"`
// Links attributes.
Links *CIAppResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *CIAppResponseMetadataWithPagination `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelineEventsResponse() *CIAppPipelineEventsResponse
NewCIAppPipelineEventsResponse instantiates a new CIAppPipelineEventsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelineEventsResponseWithDefaults() *CIAppPipelineEventsResponse
NewCIAppPipelineEventsResponseWithDefaults instantiates a new CIAppPipelineEventsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelineEventsResponse) GetData() []CIAppPipelineEvent
GetData returns the Data field value if set, zero value otherwise.
func (o *CIAppPipelineEventsResponse) GetDataOk() (*[]CIAppPipelineEvent, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventsResponse) GetLinks() CIAppResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *CIAppPipelineEventsResponse) GetLinksOk() (*CIAppResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventsResponse) GetMeta() CIAppResponseMetadataWithPagination
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *CIAppPipelineEventsResponse) GetMetaOk() (*CIAppResponseMetadataWithPagination, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelineEventsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *CIAppPipelineEventsResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *CIAppPipelineEventsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o CIAppPipelineEventsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelineEventsResponse) SetData(v []CIAppPipelineEvent)
SetData gets a reference to the given []CIAppPipelineEvent and assigns it to the Data field.
func (o *CIAppPipelineEventsResponse) SetLinks(v CIAppResponseLinks)
SetLinks gets a reference to the given CIAppResponseLinks and assigns it to the Links field.
func (o *CIAppPipelineEventsResponse) SetMeta(v CIAppResponseMetadataWithPagination)
SetMeta gets a reference to the given CIAppResponseMetadataWithPagination and assigns it to the Meta field.
func (o *CIAppPipelineEventsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelinesAggregateRequest The object sent with the request to retrieve aggregation buckets of pipeline events from your organization.
type CIAppPipelinesAggregateRequest struct {
// The list of metrics or timeseries to compute for the retrieved buckets.
Compute []CIAppCompute `json:"compute,omitempty"`
// The search and filter query settings.
Filter *CIAppPipelinesQueryFilter `json:"filter,omitempty"`
// The rules for the group-by.
GroupBy []CIAppPipelinesGroupBy `json:"group_by,omitempty"`
// Global query options that are used during the query.
// Only supply timezone or time offset, not both. Otherwise, the query fails.
Options *CIAppQueryOptions `json:"options,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelinesAggregateRequest() *CIAppPipelinesAggregateRequest
NewCIAppPipelinesAggregateRequest instantiates a new CIAppPipelinesAggregateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelinesAggregateRequestWithDefaults() *CIAppPipelinesAggregateRequest
NewCIAppPipelinesAggregateRequestWithDefaults instantiates a new CIAppPipelinesAggregateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelinesAggregateRequest) GetCompute() []CIAppCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *CIAppPipelinesAggregateRequest) GetComputeOk() (*[]CIAppCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesAggregateRequest) GetFilter() CIAppPipelinesQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *CIAppPipelinesAggregateRequest) GetFilterOk() (*CIAppPipelinesQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesAggregateRequest) GetGroupBy() []CIAppPipelinesGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *CIAppPipelinesAggregateRequest) GetGroupByOk() (*[]CIAppPipelinesGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesAggregateRequest) GetOptions() CIAppQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *CIAppPipelinesAggregateRequest) GetOptionsOk() (*CIAppQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesAggregateRequest) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *CIAppPipelinesAggregateRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *CIAppPipelinesAggregateRequest) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *CIAppPipelinesAggregateRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o CIAppPipelinesAggregateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelinesAggregateRequest) SetCompute(v []CIAppCompute)
SetCompute gets a reference to the given []CIAppCompute and assigns it to the Compute field.
func (o *CIAppPipelinesAggregateRequest) SetFilter(v CIAppPipelinesQueryFilter)
SetFilter gets a reference to the given CIAppPipelinesQueryFilter and assigns it to the Filter field.
func (o *CIAppPipelinesAggregateRequest) SetGroupBy(v []CIAppPipelinesGroupBy)
SetGroupBy gets a reference to the given []CIAppPipelinesGroupBy and assigns it to the GroupBy field.
func (o *CIAppPipelinesAggregateRequest) SetOptions(v CIAppQueryOptions)
SetOptions gets a reference to the given CIAppQueryOptions and assigns it to the Options field.
func (o *CIAppPipelinesAggregateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelinesAggregationBucketsResponse The query results.
type CIAppPipelinesAggregationBucketsResponse struct {
// The list of matching buckets, one item per bucket.
Buckets []CIAppPipelinesBucketResponse `json:"buckets,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelinesAggregationBucketsResponse() *CIAppPipelinesAggregationBucketsResponse
NewCIAppPipelinesAggregationBucketsResponse instantiates a new CIAppPipelinesAggregationBucketsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelinesAggregationBucketsResponseWithDefaults() *CIAppPipelinesAggregationBucketsResponse
NewCIAppPipelinesAggregationBucketsResponseWithDefaults instantiates a new CIAppPipelinesAggregationBucketsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelinesAggregationBucketsResponse) GetBuckets() []CIAppPipelinesBucketResponse
GetBuckets returns the Buckets field value if set, zero value otherwise.
func (o *CIAppPipelinesAggregationBucketsResponse) GetBucketsOk() (*[]CIAppPipelinesBucketResponse, bool)
GetBucketsOk returns a tuple with the Buckets field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesAggregationBucketsResponse) HasBuckets() bool
HasBuckets returns a boolean if a field has been set.
func (o CIAppPipelinesAggregationBucketsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelinesAggregationBucketsResponse) SetBuckets(v []CIAppPipelinesBucketResponse)
SetBuckets gets a reference to the given []CIAppPipelinesBucketResponse and assigns it to the Buckets field.
func (o *CIAppPipelinesAggregationBucketsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelinesAnalyticsAggregateResponse The response object for the pipeline events aggregate API endpoint.
type CIAppPipelinesAnalyticsAggregateResponse struct {
// The query results.
Data *CIAppPipelinesAggregationBucketsResponse `json:"data,omitempty"`
// Links attributes.
Links *CIAppResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *CIAppResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelinesAnalyticsAggregateResponse() *CIAppPipelinesAnalyticsAggregateResponse
NewCIAppPipelinesAnalyticsAggregateResponse instantiates a new CIAppPipelinesAnalyticsAggregateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelinesAnalyticsAggregateResponseWithDefaults() *CIAppPipelinesAnalyticsAggregateResponse
NewCIAppPipelinesAnalyticsAggregateResponseWithDefaults instantiates a new CIAppPipelinesAnalyticsAggregateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelinesAnalyticsAggregateResponse) GetData() CIAppPipelinesAggregationBucketsResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *CIAppPipelinesAnalyticsAggregateResponse) GetDataOk() (*CIAppPipelinesAggregationBucketsResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesAnalyticsAggregateResponse) GetLinks() CIAppResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *CIAppPipelinesAnalyticsAggregateResponse) GetLinksOk() (*CIAppResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesAnalyticsAggregateResponse) GetMeta() CIAppResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *CIAppPipelinesAnalyticsAggregateResponse) GetMetaOk() (*CIAppResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesAnalyticsAggregateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *CIAppPipelinesAnalyticsAggregateResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *CIAppPipelinesAnalyticsAggregateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o CIAppPipelinesAnalyticsAggregateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelinesAnalyticsAggregateResponse) SetData(v CIAppPipelinesAggregationBucketsResponse)
SetData gets a reference to the given CIAppPipelinesAggregationBucketsResponse and assigns it to the Data field.
func (o *CIAppPipelinesAnalyticsAggregateResponse) SetLinks(v CIAppResponseLinks)
SetLinks gets a reference to the given CIAppResponseLinks and assigns it to the Links field.
func (o *CIAppPipelinesAnalyticsAggregateResponse) SetMeta(v CIAppResponseMetadata)
SetMeta gets a reference to the given CIAppResponseMetadata and assigns it to the Meta field.
func (o *CIAppPipelinesAnalyticsAggregateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelinesBucketResponse Bucket values.
type CIAppPipelinesBucketResponse struct {
// The key-value pairs for each group-by.
By map[string]interface{} `json:"by,omitempty"`
// A map of the metric name to value for regular compute, or a list of values for a timeseries.
Computes map[string]CIAppAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelinesBucketResponse() *CIAppPipelinesBucketResponse
NewCIAppPipelinesBucketResponse instantiates a new CIAppPipelinesBucketResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelinesBucketResponseWithDefaults() *CIAppPipelinesBucketResponse
NewCIAppPipelinesBucketResponseWithDefaults instantiates a new CIAppPipelinesBucketResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelinesBucketResponse) GetBy() map[string]interface{}
GetBy returns the By field value if set, zero value otherwise.
func (o *CIAppPipelinesBucketResponse) GetByOk() (*map[string]interface{}, bool)
GetByOk returns a tuple with the By field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesBucketResponse) GetComputes() map[string]CIAppAggregateBucketValue
GetComputes returns the Computes field value if set, zero value otherwise.
func (o *CIAppPipelinesBucketResponse) GetComputesOk() (*map[string]CIAppAggregateBucketValue, bool)
GetComputesOk returns a tuple with the Computes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesBucketResponse) HasBy() bool
HasBy returns a boolean if a field has been set.
func (o *CIAppPipelinesBucketResponse) HasComputes() bool
HasComputes returns a boolean if a field has been set.
func (o CIAppPipelinesBucketResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelinesBucketResponse) SetBy(v map[string]interface{})
SetBy gets a reference to the given map[string]interface{} and assigns it to the By field.
func (o *CIAppPipelinesBucketResponse) SetComputes(v map[string]CIAppAggregateBucketValue)
SetComputes gets a reference to the given map[string]CIAppAggregateBucketValue and assigns it to the Computes field.
func (o *CIAppPipelinesBucketResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelinesGroupBy A group-by rule.
type CIAppPipelinesGroupBy struct {
// The name of the facet to use (required).
Facet string `json:"facet"`
// Used to perform a histogram computation (only for measure facets).
// At most, 100 buckets are allowed, the number of buckets is `(max - min)/interval`.
Histogram *CIAppGroupByHistogram `json:"histogram,omitempty"`
// The maximum buckets to return for this group-by.
Limit *int64 `json:"limit,omitempty"`
// The value to use for logs that don't have the facet used to group-by.
Missing *CIAppGroupByMissing `json:"missing,omitempty"`
// A sort rule.
Sort *CIAppAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *CIAppGroupByTotal `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelinesGroupBy(facet string) *CIAppPipelinesGroupBy
NewCIAppPipelinesGroupBy instantiates a new CIAppPipelinesGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelinesGroupByWithDefaults() *CIAppPipelinesGroupBy
NewCIAppPipelinesGroupByWithDefaults instantiates a new CIAppPipelinesGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelinesGroupBy) GetFacet() string
GetFacet returns the Facet field value.
func (o *CIAppPipelinesGroupBy) GetFacetOk() (*string, bool)
GetFacetOk returns a tuple with the Facet field value and a boolean to check if the value has been set.
func (o *CIAppPipelinesGroupBy) GetHistogram() CIAppGroupByHistogram
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (o *CIAppPipelinesGroupBy) GetHistogramOk() (*CIAppGroupByHistogram, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesGroupBy) GetLimit() int64
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *CIAppPipelinesGroupBy) GetLimitOk() (*int64, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesGroupBy) GetMissing() CIAppGroupByMissing
GetMissing returns the Missing field value if set, zero value otherwise.
func (o *CIAppPipelinesGroupBy) GetMissingOk() (*CIAppGroupByMissing, bool)
GetMissingOk returns a tuple with the Missing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesGroupBy) GetSort() CIAppAggregateSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *CIAppPipelinesGroupBy) GetSortOk() (*CIAppAggregateSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesGroupBy) GetTotal() CIAppGroupByTotal
GetTotal returns the Total field value if set, zero value otherwise.
func (o *CIAppPipelinesGroupBy) GetTotalOk() (*CIAppGroupByTotal, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesGroupBy) HasHistogram() bool
HasHistogram returns a boolean if a field has been set.
func (o *CIAppPipelinesGroupBy) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *CIAppPipelinesGroupBy) HasMissing() bool
HasMissing returns a boolean if a field has been set.
func (o *CIAppPipelinesGroupBy) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o *CIAppPipelinesGroupBy) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o CIAppPipelinesGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelinesGroupBy) SetFacet(v string)
SetFacet sets field value.
func (o *CIAppPipelinesGroupBy) SetHistogram(v CIAppGroupByHistogram)
SetHistogram gets a reference to the given CIAppGroupByHistogram and assigns it to the Histogram field.
func (o *CIAppPipelinesGroupBy) SetLimit(v int64)
SetLimit gets a reference to the given int64 and assigns it to the Limit field.
func (o *CIAppPipelinesGroupBy) SetMissing(v CIAppGroupByMissing)
SetMissing gets a reference to the given CIAppGroupByMissing and assigns it to the Missing field.
func (o *CIAppPipelinesGroupBy) SetSort(v CIAppAggregateSort)
SetSort gets a reference to the given CIAppAggregateSort and assigns it to the Sort field.
func (o *CIAppPipelinesGroupBy) SetTotal(v CIAppGroupByTotal)
SetTotal gets a reference to the given CIAppGroupByTotal and assigns it to the Total field.
func (o *CIAppPipelinesGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppPipelinesQueryFilter The search and filter query settings.
type CIAppPipelinesQueryFilter struct {
// The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds).
From *string `json:"from,omitempty"`
// The search query following the Log search syntax.
Query *string `json:"query,omitempty"`
// The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppPipelinesQueryFilter() *CIAppPipelinesQueryFilter
NewCIAppPipelinesQueryFilter instantiates a new CIAppPipelinesQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppPipelinesQueryFilterWithDefaults() *CIAppPipelinesQueryFilter
NewCIAppPipelinesQueryFilterWithDefaults instantiates a new CIAppPipelinesQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppPipelinesQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *CIAppPipelinesQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *CIAppPipelinesQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *CIAppPipelinesQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppPipelinesQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *CIAppPipelinesQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *CIAppPipelinesQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o CIAppPipelinesQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppPipelinesQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *CIAppPipelinesQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *CIAppPipelinesQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *CIAppPipelinesQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppQueryOptions Global query options that are used during the query. Only supply timezone or time offset, not both. Otherwise, the query fails.
type CIAppQueryOptions struct {
// The time offset (in seconds) to apply to the query.
TimeOffset *int64 `json:"time_offset,omitempty"`
// The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York).
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppQueryOptions() *CIAppQueryOptions
NewCIAppQueryOptions instantiates a new CIAppQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppQueryOptionsWithDefaults() *CIAppQueryOptions
NewCIAppQueryOptionsWithDefaults instantiates a new CIAppQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *CIAppQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *CIAppQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *CIAppQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o CIAppQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *CIAppQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *CIAppQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppQueryPageOptions Paging attributes for listing events.
type CIAppQueryPageOptions struct {
// List following results with a cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// Maximum number of events in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppQueryPageOptions() *CIAppQueryPageOptions
NewCIAppQueryPageOptions instantiates a new CIAppQueryPageOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppQueryPageOptionsWithDefaults() *CIAppQueryPageOptions
NewCIAppQueryPageOptionsWithDefaults instantiates a new CIAppQueryPageOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppQueryPageOptions) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *CIAppQueryPageOptions) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppQueryPageOptions) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *CIAppQueryPageOptions) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppQueryPageOptions) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *CIAppQueryPageOptions) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o CIAppQueryPageOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppQueryPageOptions) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *CIAppQueryPageOptions) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *CIAppQueryPageOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppResponseLinks Links attributes.
type CIAppResponseLinks struct {
// Link for the next set of results. The request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppResponseLinks() *CIAppResponseLinks
NewCIAppResponseLinks instantiates a new CIAppResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppResponseLinksWithDefaults() *CIAppResponseLinks
NewCIAppResponseLinksWithDefaults instantiates a new CIAppResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *CIAppResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o CIAppResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *CIAppResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppResponseMetadata The metadata associated with a request.
type CIAppResponseMetadata struct {
// The time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The status of the response.
Status *CIAppResponseStatus `json:"status,omitempty"`
// A list of warnings (non-fatal errors) encountered. Partial results may return if
// warnings are present in the response.
Warnings []CIAppWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppResponseMetadata() *CIAppResponseMetadata
NewCIAppResponseMetadata instantiates a new CIAppResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppResponseMetadataWithDefaults() *CIAppResponseMetadata
NewCIAppResponseMetadataWithDefaults instantiates a new CIAppResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *CIAppResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *CIAppResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadata) GetStatus() CIAppResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *CIAppResponseMetadata) GetStatusOk() (*CIAppResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadata) GetWarnings() []CIAppWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *CIAppResponseMetadata) GetWarningsOk() (*[]CIAppWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *CIAppResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *CIAppResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *CIAppResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o CIAppResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *CIAppResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *CIAppResponseMetadata) SetStatus(v CIAppResponseStatus)
SetStatus gets a reference to the given CIAppResponseStatus and assigns it to the Status field.
func (o *CIAppResponseMetadata) SetWarnings(v []CIAppWarning)
SetWarnings gets a reference to the given []CIAppWarning and assigns it to the Warnings field.
func (o *CIAppResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppResponseMetadataWithPagination The metadata associated with a request.
type CIAppResponseMetadataWithPagination struct {
// The time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// Paging attributes.
Page *CIAppResponsePage `json:"page,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The status of the response.
Status *CIAppResponseStatus `json:"status,omitempty"`
// A list of warnings (non-fatal errors) encountered. Partial results may return if
// warnings are present in the response.
Warnings []CIAppWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppResponseMetadataWithPagination() *CIAppResponseMetadataWithPagination
NewCIAppResponseMetadataWithPagination instantiates a new CIAppResponseMetadataWithPagination object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppResponseMetadataWithPaginationWithDefaults() *CIAppResponseMetadataWithPagination
NewCIAppResponseMetadataWithPaginationWithDefaults instantiates a new CIAppResponseMetadataWithPagination object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppResponseMetadataWithPagination) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *CIAppResponseMetadataWithPagination) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadataWithPagination) GetPage() CIAppResponsePage
GetPage returns the Page field value if set, zero value otherwise.
func (o *CIAppResponseMetadataWithPagination) GetPageOk() (*CIAppResponsePage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadataWithPagination) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *CIAppResponseMetadataWithPagination) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadataWithPagination) GetStatus() CIAppResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *CIAppResponseMetadataWithPagination) GetStatusOk() (*CIAppResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadataWithPagination) GetWarnings() []CIAppWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *CIAppResponseMetadataWithPagination) GetWarningsOk() (*[]CIAppWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponseMetadataWithPagination) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *CIAppResponseMetadataWithPagination) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *CIAppResponseMetadataWithPagination) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *CIAppResponseMetadataWithPagination) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *CIAppResponseMetadataWithPagination) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o CIAppResponseMetadataWithPagination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppResponseMetadataWithPagination) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *CIAppResponseMetadataWithPagination) SetPage(v CIAppResponsePage)
SetPage gets a reference to the given CIAppResponsePage and assigns it to the Page field.
func (o *CIAppResponseMetadataWithPagination) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *CIAppResponseMetadataWithPagination) SetStatus(v CIAppResponseStatus)
SetStatus gets a reference to the given CIAppResponseStatus and assigns it to the Status field.
func (o *CIAppResponseMetadataWithPagination) SetWarnings(v []CIAppWarning)
SetWarnings gets a reference to the given []CIAppWarning and assigns it to the Warnings field.
func (o *CIAppResponseMetadataWithPagination) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppResponsePage Paging attributes.
type CIAppResponsePage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppResponsePage() *CIAppResponsePage
NewCIAppResponsePage instantiates a new CIAppResponsePage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppResponsePageWithDefaults() *CIAppResponsePage
NewCIAppResponsePageWithDefaults instantiates a new CIAppResponsePage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppResponsePage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *CIAppResponsePage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppResponsePage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o CIAppResponsePage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppResponsePage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *CIAppResponsePage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppResponseStatus The status of the response.
type CIAppResponseStatus string
List of CIAppResponseStatus.
const (
CIAPPRESPONSESTATUS_DONE CIAppResponseStatus = "done"
CIAPPRESPONSESTATUS_TIMEOUT CIAppResponseStatus = "timeout"
)
func NewCIAppResponseStatusFromValue(v string) (*CIAppResponseStatus, error)
NewCIAppResponseStatusFromValue returns a pointer to a valid CIAppResponseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppResponseStatus) GetAllowedValues() []CIAppResponseStatus
GetAllowedValues reeturns the list of possible values.
func (v CIAppResponseStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppResponseStatus) Ptr() *CIAppResponseStatus
Ptr returns reference to CIAppResponseStatus value.
func (v *CIAppResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppSort Sort parameters when querying events.
type CIAppSort string
List of CIAppSort.
const (
CIAPPSORT_TIMESTAMP_ASCENDING CIAppSort = "timestamp"
CIAPPSORT_TIMESTAMP_DESCENDING CIAppSort = "-timestamp"
)
func NewCIAppSortFromValue(v string) (*CIAppSort, error)
NewCIAppSortFromValue returns a pointer to a valid CIAppSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppSort) GetAllowedValues() []CIAppSort
GetAllowedValues reeturns the list of possible values.
func (v CIAppSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppSort) Ptr() *CIAppSort
Ptr returns reference to CIAppSort value.
func (v *CIAppSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppSortOrder The order to use, ascending or descending.
type CIAppSortOrder string
List of CIAppSortOrder.
const (
CIAPPSORTORDER_ASCENDING CIAppSortOrder = "asc"
CIAPPSORTORDER_DESCENDING CIAppSortOrder = "desc"
)
func NewCIAppSortOrderFromValue(v string) (*CIAppSortOrder, error)
NewCIAppSortOrderFromValue returns a pointer to a valid CIAppSortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppSortOrder) GetAllowedValues() []CIAppSortOrder
GetAllowedValues reeturns the list of possible values.
func (v CIAppSortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppSortOrder) Ptr() *CIAppSortOrder
Ptr returns reference to CIAppSortOrder value.
func (v *CIAppSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppTestEvent Object description of test event after being processed and stored by Datadog.
type CIAppTestEvent struct {
// JSON object containing all event attributes and their associated values.
Attributes *CIAppEventAttributes `json:"attributes,omitempty"`
// Unique ID of the event.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *CIAppTestEventTypeName `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestEvent() *CIAppTestEvent
NewCIAppTestEvent instantiates a new CIAppTestEvent object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestEventWithDefaults() *CIAppTestEvent
NewCIAppTestEventWithDefaults instantiates a new CIAppTestEvent object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestEvent) GetAttributes() CIAppEventAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CIAppTestEvent) GetAttributesOk() (*CIAppEventAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEvent) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *CIAppTestEvent) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEvent) GetType() CIAppTestEventTypeName
GetType returns the Type field value if set, zero value otherwise.
func (o *CIAppTestEvent) GetTypeOk() (*CIAppTestEventTypeName, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEvent) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CIAppTestEvent) HasId() bool
HasId returns a boolean if a field has been set.
func (o *CIAppTestEvent) HasType() bool
HasType returns a boolean if a field has been set.
func (o CIAppTestEvent) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestEvent) SetAttributes(v CIAppEventAttributes)
SetAttributes gets a reference to the given CIAppEventAttributes and assigns it to the Attributes field.
func (o *CIAppTestEvent) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *CIAppTestEvent) SetType(v CIAppTestEventTypeName)
SetType gets a reference to the given CIAppTestEventTypeName and assigns it to the Type field.
func (o *CIAppTestEvent) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppTestEventTypeName Type of the event.
type CIAppTestEventTypeName string
List of CIAppTestEventTypeName.
const (
CIAPPTESTEVENTTYPENAME_CITEST CIAppTestEventTypeName = "citest"
)
func NewCIAppTestEventTypeNameFromValue(v string) (*CIAppTestEventTypeName, error)
NewCIAppTestEventTypeNameFromValue returns a pointer to a valid CIAppTestEventTypeName for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CIAppTestEventTypeName) GetAllowedValues() []CIAppTestEventTypeName
GetAllowedValues reeturns the list of possible values.
func (v CIAppTestEventTypeName) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CIAppTestEventTypeName) Ptr() *CIAppTestEventTypeName
Ptr returns reference to CIAppTestEventTypeName value.
func (v *CIAppTestEventTypeName) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CIAppTestEventsRequest The request for a tests search.
type CIAppTestEventsRequest struct {
// The search and filter query settings.
Filter *CIAppTestsQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Only supply timezone or time offset, not both. Otherwise, the query fails.
Options *CIAppQueryOptions `json:"options,omitempty"`
// Paging attributes for listing events.
Page *CIAppQueryPageOptions `json:"page,omitempty"`
// Sort parameters when querying events.
Sort *CIAppSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestEventsRequest() *CIAppTestEventsRequest
NewCIAppTestEventsRequest instantiates a new CIAppTestEventsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestEventsRequestWithDefaults() *CIAppTestEventsRequest
NewCIAppTestEventsRequestWithDefaults instantiates a new CIAppTestEventsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestEventsRequest) GetFilter() CIAppTestsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *CIAppTestEventsRequest) GetFilterOk() (*CIAppTestsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEventsRequest) GetOptions() CIAppQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *CIAppTestEventsRequest) GetOptionsOk() (*CIAppQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEventsRequest) GetPage() CIAppQueryPageOptions
GetPage returns the Page field value if set, zero value otherwise.
func (o *CIAppTestEventsRequest) GetPageOk() (*CIAppQueryPageOptions, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEventsRequest) GetSort() CIAppSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *CIAppTestEventsRequest) GetSortOk() (*CIAppSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEventsRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *CIAppTestEventsRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *CIAppTestEventsRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *CIAppTestEventsRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o CIAppTestEventsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestEventsRequest) SetFilter(v CIAppTestsQueryFilter)
SetFilter gets a reference to the given CIAppTestsQueryFilter and assigns it to the Filter field.
func (o *CIAppTestEventsRequest) SetOptions(v CIAppQueryOptions)
SetOptions gets a reference to the given CIAppQueryOptions and assigns it to the Options field.
func (o *CIAppTestEventsRequest) SetPage(v CIAppQueryPageOptions)
SetPage gets a reference to the given CIAppQueryPageOptions and assigns it to the Page field.
func (o *CIAppTestEventsRequest) SetSort(v CIAppSort)
SetSort gets a reference to the given CIAppSort and assigns it to the Sort field.
func (o *CIAppTestEventsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppTestEventsResponse Response object with all test events matching the request and pagination information.
type CIAppTestEventsResponse struct {
// Array of events matching the request.
Data []CIAppTestEvent `json:"data,omitempty"`
// Links attributes.
Links *CIAppResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *CIAppResponseMetadataWithPagination `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestEventsResponse() *CIAppTestEventsResponse
NewCIAppTestEventsResponse instantiates a new CIAppTestEventsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestEventsResponseWithDefaults() *CIAppTestEventsResponse
NewCIAppTestEventsResponseWithDefaults instantiates a new CIAppTestEventsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestEventsResponse) GetData() []CIAppTestEvent
GetData returns the Data field value if set, zero value otherwise.
func (o *CIAppTestEventsResponse) GetDataOk() (*[]CIAppTestEvent, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEventsResponse) GetLinks() CIAppResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *CIAppTestEventsResponse) GetLinksOk() (*CIAppResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEventsResponse) GetMeta() CIAppResponseMetadataWithPagination
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *CIAppTestEventsResponse) GetMetaOk() (*CIAppResponseMetadataWithPagination, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestEventsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *CIAppTestEventsResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *CIAppTestEventsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o CIAppTestEventsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestEventsResponse) SetData(v []CIAppTestEvent)
SetData gets a reference to the given []CIAppTestEvent and assigns it to the Data field.
func (o *CIAppTestEventsResponse) SetLinks(v CIAppResponseLinks)
SetLinks gets a reference to the given CIAppResponseLinks and assigns it to the Links field.
func (o *CIAppTestEventsResponse) SetMeta(v CIAppResponseMetadataWithPagination)
SetMeta gets a reference to the given CIAppResponseMetadataWithPagination and assigns it to the Meta field.
func (o *CIAppTestEventsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppTestsAggregateRequest The object sent with the request to retrieve aggregation buckets of test events from your organization.
type CIAppTestsAggregateRequest struct {
// The list of metrics or timeseries to compute for the retrieved buckets.
Compute []CIAppCompute `json:"compute,omitempty"`
// The search and filter query settings.
Filter *CIAppTestsQueryFilter `json:"filter,omitempty"`
// The rules for the group-by.
GroupBy []CIAppTestsGroupBy `json:"group_by,omitempty"`
// Global query options that are used during the query.
// Only supply timezone or time offset, not both. Otherwise, the query fails.
Options *CIAppQueryOptions `json:"options,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestsAggregateRequest() *CIAppTestsAggregateRequest
NewCIAppTestsAggregateRequest instantiates a new CIAppTestsAggregateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestsAggregateRequestWithDefaults() *CIAppTestsAggregateRequest
NewCIAppTestsAggregateRequestWithDefaults instantiates a new CIAppTestsAggregateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestsAggregateRequest) GetCompute() []CIAppCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *CIAppTestsAggregateRequest) GetComputeOk() (*[]CIAppCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsAggregateRequest) GetFilter() CIAppTestsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *CIAppTestsAggregateRequest) GetFilterOk() (*CIAppTestsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsAggregateRequest) GetGroupBy() []CIAppTestsGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *CIAppTestsAggregateRequest) GetGroupByOk() (*[]CIAppTestsGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsAggregateRequest) GetOptions() CIAppQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *CIAppTestsAggregateRequest) GetOptionsOk() (*CIAppQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsAggregateRequest) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *CIAppTestsAggregateRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *CIAppTestsAggregateRequest) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *CIAppTestsAggregateRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o CIAppTestsAggregateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestsAggregateRequest) SetCompute(v []CIAppCompute)
SetCompute gets a reference to the given []CIAppCompute and assigns it to the Compute field.
func (o *CIAppTestsAggregateRequest) SetFilter(v CIAppTestsQueryFilter)
SetFilter gets a reference to the given CIAppTestsQueryFilter and assigns it to the Filter field.
func (o *CIAppTestsAggregateRequest) SetGroupBy(v []CIAppTestsGroupBy)
SetGroupBy gets a reference to the given []CIAppTestsGroupBy and assigns it to the GroupBy field.
func (o *CIAppTestsAggregateRequest) SetOptions(v CIAppQueryOptions)
SetOptions gets a reference to the given CIAppQueryOptions and assigns it to the Options field.
func (o *CIAppTestsAggregateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppTestsAggregationBucketsResponse The query results.
type CIAppTestsAggregationBucketsResponse struct {
// The list of matching buckets, one item per bucket.
Buckets []CIAppTestsBucketResponse `json:"buckets,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestsAggregationBucketsResponse() *CIAppTestsAggregationBucketsResponse
NewCIAppTestsAggregationBucketsResponse instantiates a new CIAppTestsAggregationBucketsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestsAggregationBucketsResponseWithDefaults() *CIAppTestsAggregationBucketsResponse
NewCIAppTestsAggregationBucketsResponseWithDefaults instantiates a new CIAppTestsAggregationBucketsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestsAggregationBucketsResponse) GetBuckets() []CIAppTestsBucketResponse
GetBuckets returns the Buckets field value if set, zero value otherwise.
func (o *CIAppTestsAggregationBucketsResponse) GetBucketsOk() (*[]CIAppTestsBucketResponse, bool)
GetBucketsOk returns a tuple with the Buckets field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsAggregationBucketsResponse) HasBuckets() bool
HasBuckets returns a boolean if a field has been set.
func (o CIAppTestsAggregationBucketsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestsAggregationBucketsResponse) SetBuckets(v []CIAppTestsBucketResponse)
SetBuckets gets a reference to the given []CIAppTestsBucketResponse and assigns it to the Buckets field.
func (o *CIAppTestsAggregationBucketsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppTestsAnalyticsAggregateResponse The response object for the test events aggregate API endpoint.
type CIAppTestsAnalyticsAggregateResponse struct {
// The query results.
Data *CIAppTestsAggregationBucketsResponse `json:"data,omitempty"`
// Links attributes.
Links *CIAppResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *CIAppResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestsAnalyticsAggregateResponse() *CIAppTestsAnalyticsAggregateResponse
NewCIAppTestsAnalyticsAggregateResponse instantiates a new CIAppTestsAnalyticsAggregateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestsAnalyticsAggregateResponseWithDefaults() *CIAppTestsAnalyticsAggregateResponse
NewCIAppTestsAnalyticsAggregateResponseWithDefaults instantiates a new CIAppTestsAnalyticsAggregateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestsAnalyticsAggregateResponse) GetData() CIAppTestsAggregationBucketsResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *CIAppTestsAnalyticsAggregateResponse) GetDataOk() (*CIAppTestsAggregationBucketsResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsAnalyticsAggregateResponse) GetLinks() CIAppResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *CIAppTestsAnalyticsAggregateResponse) GetLinksOk() (*CIAppResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsAnalyticsAggregateResponse) GetMeta() CIAppResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *CIAppTestsAnalyticsAggregateResponse) GetMetaOk() (*CIAppResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsAnalyticsAggregateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *CIAppTestsAnalyticsAggregateResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *CIAppTestsAnalyticsAggregateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o CIAppTestsAnalyticsAggregateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestsAnalyticsAggregateResponse) SetData(v CIAppTestsAggregationBucketsResponse)
SetData gets a reference to the given CIAppTestsAggregationBucketsResponse and assigns it to the Data field.
func (o *CIAppTestsAnalyticsAggregateResponse) SetLinks(v CIAppResponseLinks)
SetLinks gets a reference to the given CIAppResponseLinks and assigns it to the Links field.
func (o *CIAppTestsAnalyticsAggregateResponse) SetMeta(v CIAppResponseMetadata)
SetMeta gets a reference to the given CIAppResponseMetadata and assigns it to the Meta field.
func (o *CIAppTestsAnalyticsAggregateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppTestsBucketResponse Bucket values.
type CIAppTestsBucketResponse struct {
// The key-value pairs for each group-by.
By map[string]interface{} `json:"by,omitempty"`
// A map of the metric name to value for regular compute, or a list of values for a timeseries.
Computes map[string]CIAppAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestsBucketResponse() *CIAppTestsBucketResponse
NewCIAppTestsBucketResponse instantiates a new CIAppTestsBucketResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestsBucketResponseWithDefaults() *CIAppTestsBucketResponse
NewCIAppTestsBucketResponseWithDefaults instantiates a new CIAppTestsBucketResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestsBucketResponse) GetBy() map[string]interface{}
GetBy returns the By field value if set, zero value otherwise.
func (o *CIAppTestsBucketResponse) GetByOk() (*map[string]interface{}, bool)
GetByOk returns a tuple with the By field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsBucketResponse) GetComputes() map[string]CIAppAggregateBucketValue
GetComputes returns the Computes field value if set, zero value otherwise.
func (o *CIAppTestsBucketResponse) GetComputesOk() (*map[string]CIAppAggregateBucketValue, bool)
GetComputesOk returns a tuple with the Computes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsBucketResponse) HasBy() bool
HasBy returns a boolean if a field has been set.
func (o *CIAppTestsBucketResponse) HasComputes() bool
HasComputes returns a boolean if a field has been set.
func (o CIAppTestsBucketResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestsBucketResponse) SetBy(v map[string]interface{})
SetBy gets a reference to the given map[string]interface{} and assigns it to the By field.
func (o *CIAppTestsBucketResponse) SetComputes(v map[string]CIAppAggregateBucketValue)
SetComputes gets a reference to the given map[string]CIAppAggregateBucketValue and assigns it to the Computes field.
func (o *CIAppTestsBucketResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppTestsGroupBy A group-by rule.
type CIAppTestsGroupBy struct {
// The name of the facet to use (required).
Facet string `json:"facet"`
// Used to perform a histogram computation (only for measure facets).
// At most, 100 buckets are allowed, the number of buckets is `(max - min)/interval`.
Histogram *CIAppGroupByHistogram `json:"histogram,omitempty"`
// The maximum buckets to return for this group-by.
Limit *int64 `json:"limit,omitempty"`
// The value to use for logs that don't have the facet used to group-by.
Missing *CIAppGroupByMissing `json:"missing,omitempty"`
// A sort rule.
Sort *CIAppAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *CIAppGroupByTotal `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestsGroupBy(facet string) *CIAppTestsGroupBy
NewCIAppTestsGroupBy instantiates a new CIAppTestsGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestsGroupByWithDefaults() *CIAppTestsGroupBy
NewCIAppTestsGroupByWithDefaults instantiates a new CIAppTestsGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestsGroupBy) GetFacet() string
GetFacet returns the Facet field value.
func (o *CIAppTestsGroupBy) GetFacetOk() (*string, bool)
GetFacetOk returns a tuple with the Facet field value and a boolean to check if the value has been set.
func (o *CIAppTestsGroupBy) GetHistogram() CIAppGroupByHistogram
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (o *CIAppTestsGroupBy) GetHistogramOk() (*CIAppGroupByHistogram, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsGroupBy) GetLimit() int64
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *CIAppTestsGroupBy) GetLimitOk() (*int64, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsGroupBy) GetMissing() CIAppGroupByMissing
GetMissing returns the Missing field value if set, zero value otherwise.
func (o *CIAppTestsGroupBy) GetMissingOk() (*CIAppGroupByMissing, bool)
GetMissingOk returns a tuple with the Missing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsGroupBy) GetSort() CIAppAggregateSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *CIAppTestsGroupBy) GetSortOk() (*CIAppAggregateSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsGroupBy) GetTotal() CIAppGroupByTotal
GetTotal returns the Total field value if set, zero value otherwise.
func (o *CIAppTestsGroupBy) GetTotalOk() (*CIAppGroupByTotal, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsGroupBy) HasHistogram() bool
HasHistogram returns a boolean if a field has been set.
func (o *CIAppTestsGroupBy) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *CIAppTestsGroupBy) HasMissing() bool
HasMissing returns a boolean if a field has been set.
func (o *CIAppTestsGroupBy) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o *CIAppTestsGroupBy) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o CIAppTestsGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestsGroupBy) SetFacet(v string)
SetFacet sets field value.
func (o *CIAppTestsGroupBy) SetHistogram(v CIAppGroupByHistogram)
SetHistogram gets a reference to the given CIAppGroupByHistogram and assigns it to the Histogram field.
func (o *CIAppTestsGroupBy) SetLimit(v int64)
SetLimit gets a reference to the given int64 and assigns it to the Limit field.
func (o *CIAppTestsGroupBy) SetMissing(v CIAppGroupByMissing)
SetMissing gets a reference to the given CIAppGroupByMissing and assigns it to the Missing field.
func (o *CIAppTestsGroupBy) SetSort(v CIAppAggregateSort)
SetSort gets a reference to the given CIAppAggregateSort and assigns it to the Sort field.
func (o *CIAppTestsGroupBy) SetTotal(v CIAppGroupByTotal)
SetTotal gets a reference to the given CIAppGroupByTotal and assigns it to the Total field.
func (o *CIAppTestsGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppTestsQueryFilter The search and filter query settings.
type CIAppTestsQueryFilter struct {
// The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds).
From *string `json:"from,omitempty"`
// The search query following the Log search syntax.
Query *string `json:"query,omitempty"`
// The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppTestsQueryFilter() *CIAppTestsQueryFilter
NewCIAppTestsQueryFilter instantiates a new CIAppTestsQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppTestsQueryFilterWithDefaults() *CIAppTestsQueryFilter
NewCIAppTestsQueryFilterWithDefaults instantiates a new CIAppTestsQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppTestsQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *CIAppTestsQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *CIAppTestsQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *CIAppTestsQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppTestsQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *CIAppTestsQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *CIAppTestsQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o CIAppTestsQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppTestsQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *CIAppTestsQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *CIAppTestsQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *CIAppTestsQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIAppWarning A warning message indicating something that went wrong with the query.
type CIAppWarning struct {
// A unique code for this type of warning.
Code *string `json:"code,omitempty"`
// A detailed explanation of this specific warning.
Detail *string `json:"detail,omitempty"`
// A short human-readable summary of the warning.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCIAppWarning() *CIAppWarning
NewCIAppWarning instantiates a new CIAppWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCIAppWarningWithDefaults() *CIAppWarning
NewCIAppWarningWithDefaults instantiates a new CIAppWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CIAppWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *CIAppWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *CIAppWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *CIAppWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CIAppWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *CIAppWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *CIAppWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o CIAppWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CIAppWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *CIAppWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *CIAppWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *CIAppWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CIVisibilityPipelinesApi service type
type CIVisibilityPipelinesApi datadog.Service
func NewCIVisibilityPipelinesApi(client *datadog.APIClient) *CIVisibilityPipelinesApi
NewCIVisibilityPipelinesApi Returns NewCIVisibilityPipelinesApi.
func (a *CIVisibilityPipelinesApi) AggregateCIAppPipelineEvents(ctx _context.Context, body CIAppPipelinesAggregateRequest) (CIAppPipelinesAnalyticsAggregateResponse, *_nethttp.Response, error)
AggregateCIAppPipelineEvents Aggregate pipelines events. The API endpoint to aggregate CI Visibility pipeline events into buckets of computed metrics and timeseries.
func (a *CIVisibilityPipelinesApi) CreateCIAppPipelineEvent(ctx _context.Context, body CIAppCreatePipelineEventRequest) (interface{}, *_nethttp.Response, error)
CreateCIAppPipelineEvent Send pipeline event. Send your pipeline event to your Datadog platform over HTTP. For details about how pipeline executions are modeled and what execution types we support, see the [guide](https://docs.datadoghq.com/continuous_integration/guides/pipeline_data_model/).
Pipeline events can be submitted with a timestamp that is up to 18 hours in the past.
This API endpoint is in private beta.
func (a *CIVisibilityPipelinesApi) ListCIAppPipelineEvents(ctx _context.Context, o ...ListCIAppPipelineEventsOptionalParameters) (CIAppPipelineEventsResponse, *_nethttp.Response, error)
ListCIAppPipelineEvents Get a list of pipelines events. List endpoint returns CI Visibility pipeline events that match a [log search query](https://docs.datadoghq.com/logs/explorer/search_syntax/). [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
Use this endpoint to see your latest pipeline events.
func (a *CIVisibilityPipelinesApi) ListCIAppPipelineEventsWithPagination(ctx _context.Context, o ...ListCIAppPipelineEventsOptionalParameters) (<-chan datadog.PaginationResult[CIAppPipelineEvent], func())
ListCIAppPipelineEventsWithPagination provides a paginated version of ListCIAppPipelineEvents returning a channel with all items.
func (a *CIVisibilityPipelinesApi) SearchCIAppPipelineEvents(ctx _context.Context, o ...SearchCIAppPipelineEventsOptionalParameters) (CIAppPipelineEventsResponse, *_nethttp.Response, error)
SearchCIAppPipelineEvents Search pipelines events. List endpoint returns CI Visibility pipeline events that match a [log search query](https://docs.datadoghq.com/logs/explorer/search_syntax/). [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
Use this endpoint to build complex events filtering and search.
func (a *CIVisibilityPipelinesApi) SearchCIAppPipelineEventsWithPagination(ctx _context.Context, o ...SearchCIAppPipelineEventsOptionalParameters) (<-chan datadog.PaginationResult[CIAppPipelineEvent], func())
SearchCIAppPipelineEventsWithPagination provides a paginated version of SearchCIAppPipelineEvents returning a channel with all items.
CIVisibilityTestsApi service type
type CIVisibilityTestsApi datadog.Service
func NewCIVisibilityTestsApi(client *datadog.APIClient) *CIVisibilityTestsApi
NewCIVisibilityTestsApi Returns NewCIVisibilityTestsApi.
func (a *CIVisibilityTestsApi) AggregateCIAppTestEvents(ctx _context.Context, body CIAppTestsAggregateRequest) (CIAppTestsAnalyticsAggregateResponse, *_nethttp.Response, error)
AggregateCIAppTestEvents Aggregate tests events. The API endpoint to aggregate CI Visibility test events into buckets of computed metrics and timeseries.
func (a *CIVisibilityTestsApi) ListCIAppTestEvents(ctx _context.Context, o ...ListCIAppTestEventsOptionalParameters) (CIAppTestEventsResponse, *_nethttp.Response, error)
ListCIAppTestEvents Get a list of tests events. List endpoint returns CI Visibility test events that match a [log search query](https://docs.datadoghq.com/logs/explorer/search_syntax/). [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
Use this endpoint to see your latest test events.
func (a *CIVisibilityTestsApi) ListCIAppTestEventsWithPagination(ctx _context.Context, o ...ListCIAppTestEventsOptionalParameters) (<-chan datadog.PaginationResult[CIAppTestEvent], func())
ListCIAppTestEventsWithPagination provides a paginated version of ListCIAppTestEvents returning a channel with all items.
func (a *CIVisibilityTestsApi) SearchCIAppTestEvents(ctx _context.Context, o ...SearchCIAppTestEventsOptionalParameters) (CIAppTestEventsResponse, *_nethttp.Response, error)
SearchCIAppTestEvents Search tests events. List endpoint returns CI Visibility test events that match a [log search query](https://docs.datadoghq.com/logs/explorer/search_syntax/). [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
Use this endpoint to build complex events filtering and search.
func (a *CIVisibilityTestsApi) SearchCIAppTestEventsWithPagination(ctx _context.Context, o ...SearchCIAppTestEventsOptionalParameters) (<-chan datadog.PaginationResult[CIAppTestEvent], func())
SearchCIAppTestEventsWithPagination provides a paginated version of SearchCIAppTestEvents returning a channel with all items.
ChargebackBreakdown Charges breakdown.
type ChargebackBreakdown struct {
// The type of charge for a particular product.
ChargeType *string `json:"charge_type,omitempty"`
// The cost for a particular product and charge type during a given month.
Cost *float64 `json:"cost,omitempty"`
// The product for which cost is being reported.
ProductName *string `json:"product_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewChargebackBreakdown() *ChargebackBreakdown
NewChargebackBreakdown instantiates a new ChargebackBreakdown object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewChargebackBreakdownWithDefaults() *ChargebackBreakdown
NewChargebackBreakdownWithDefaults instantiates a new ChargebackBreakdown object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ChargebackBreakdown) GetChargeType() string
GetChargeType returns the ChargeType field value if set, zero value otherwise.
func (o *ChargebackBreakdown) GetChargeTypeOk() (*string, bool)
GetChargeTypeOk returns a tuple with the ChargeType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ChargebackBreakdown) GetCost() float64
GetCost returns the Cost field value if set, zero value otherwise.
func (o *ChargebackBreakdown) GetCostOk() (*float64, bool)
GetCostOk returns a tuple with the Cost field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ChargebackBreakdown) GetProductName() string
GetProductName returns the ProductName field value if set, zero value otherwise.
func (o *ChargebackBreakdown) GetProductNameOk() (*string, bool)
GetProductNameOk returns a tuple with the ProductName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ChargebackBreakdown) HasChargeType() bool
HasChargeType returns a boolean if a field has been set.
func (o *ChargebackBreakdown) HasCost() bool
HasCost returns a boolean if a field has been set.
func (o *ChargebackBreakdown) HasProductName() bool
HasProductName returns a boolean if a field has been set.
func (o ChargebackBreakdown) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ChargebackBreakdown) SetChargeType(v string)
SetChargeType gets a reference to the given string and assigns it to the ChargeType field.
func (o *ChargebackBreakdown) SetCost(v float64)
SetCost gets a reference to the given float64 and assigns it to the Cost field.
func (o *ChargebackBreakdown) SetProductName(v string)
SetProductName gets a reference to the given string and assigns it to the ProductName field.
func (o *ChargebackBreakdown) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudConfigurationComplianceRuleOptions Options for cloud_configuration rules. Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules.
type CloudConfigurationComplianceRuleOptions struct {
// Whether the rule is a complex one.
// Must be set to true if `regoRule.resourceTypes` contains more than one item. Defaults to false.
//
ComplexRule *bool `json:"complexRule,omitempty"`
// Rule details.
RegoRule *CloudConfigurationRegoRule `json:"regoRule,omitempty"`
// Main resource type to be checked by the rule. It should be specified again in `regoRule.resourceTypes`.
//
ResourceType *string `json:"resourceType,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudConfigurationComplianceRuleOptions() *CloudConfigurationComplianceRuleOptions
NewCloudConfigurationComplianceRuleOptions instantiates a new CloudConfigurationComplianceRuleOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudConfigurationComplianceRuleOptionsWithDefaults() *CloudConfigurationComplianceRuleOptions
NewCloudConfigurationComplianceRuleOptionsWithDefaults instantiates a new CloudConfigurationComplianceRuleOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudConfigurationComplianceRuleOptions) GetComplexRule() bool
GetComplexRule returns the ComplexRule field value if set, zero value otherwise.
func (o *CloudConfigurationComplianceRuleOptions) GetComplexRuleOk() (*bool, bool)
GetComplexRuleOk returns a tuple with the ComplexRule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudConfigurationComplianceRuleOptions) GetRegoRule() CloudConfigurationRegoRule
GetRegoRule returns the RegoRule field value if set, zero value otherwise.
func (o *CloudConfigurationComplianceRuleOptions) GetRegoRuleOk() (*CloudConfigurationRegoRule, bool)
GetRegoRuleOk returns a tuple with the RegoRule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudConfigurationComplianceRuleOptions) GetResourceType() string
GetResourceType returns the ResourceType field value if set, zero value otherwise.
func (o *CloudConfigurationComplianceRuleOptions) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudConfigurationComplianceRuleOptions) HasComplexRule() bool
HasComplexRule returns a boolean if a field has been set.
func (o *CloudConfigurationComplianceRuleOptions) HasRegoRule() bool
HasRegoRule returns a boolean if a field has been set.
func (o *CloudConfigurationComplianceRuleOptions) HasResourceType() bool
HasResourceType returns a boolean if a field has been set.
func (o CloudConfigurationComplianceRuleOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudConfigurationComplianceRuleOptions) SetComplexRule(v bool)
SetComplexRule gets a reference to the given bool and assigns it to the ComplexRule field.
func (o *CloudConfigurationComplianceRuleOptions) SetRegoRule(v CloudConfigurationRegoRule)
SetRegoRule gets a reference to the given CloudConfigurationRegoRule and assigns it to the RegoRule field.
func (o *CloudConfigurationComplianceRuleOptions) SetResourceType(v string)
SetResourceType gets a reference to the given string and assigns it to the ResourceType field.
func (o *CloudConfigurationComplianceRuleOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudConfigurationRegoRule Rule details.
type CloudConfigurationRegoRule struct {
// The policy written in `rego`, see: https://www.openpolicyagent.org/docs/latest/policy-language/
Policy string `json:"policy"`
// List of resource types that will be evaluated upon. Must have at least one element.
ResourceTypes []string `json:"resourceTypes"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudConfigurationRegoRule(policy string, resourceTypes []string) *CloudConfigurationRegoRule
NewCloudConfigurationRegoRule instantiates a new CloudConfigurationRegoRule object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudConfigurationRegoRuleWithDefaults() *CloudConfigurationRegoRule
NewCloudConfigurationRegoRuleWithDefaults instantiates a new CloudConfigurationRegoRule object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudConfigurationRegoRule) GetPolicy() string
GetPolicy returns the Policy field value.
func (o *CloudConfigurationRegoRule) GetPolicyOk() (*string, bool)
GetPolicyOk returns a tuple with the Policy field value and a boolean to check if the value has been set.
func (o *CloudConfigurationRegoRule) GetResourceTypes() []string
GetResourceTypes returns the ResourceTypes field value.
func (o *CloudConfigurationRegoRule) GetResourceTypesOk() (*[]string, bool)
GetResourceTypesOk returns a tuple with the ResourceTypes field value and a boolean to check if the value has been set.
func (o CloudConfigurationRegoRule) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudConfigurationRegoRule) SetPolicy(v string)
SetPolicy sets field value.
func (o *CloudConfigurationRegoRule) SetResourceTypes(v []string)
SetResourceTypes sets field value.
func (o *CloudConfigurationRegoRule) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudConfigurationRuleCaseCreate Description of signals.
type CloudConfigurationRuleCaseCreate struct {
// Notification targets for each rule case.
Notifications []string `json:"notifications,omitempty"`
// Severity of the Security Signal.
Status SecurityMonitoringRuleSeverity `json:"status"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudConfigurationRuleCaseCreate(status SecurityMonitoringRuleSeverity) *CloudConfigurationRuleCaseCreate
NewCloudConfigurationRuleCaseCreate instantiates a new CloudConfigurationRuleCaseCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudConfigurationRuleCaseCreateWithDefaults() *CloudConfigurationRuleCaseCreate
NewCloudConfigurationRuleCaseCreateWithDefaults instantiates a new CloudConfigurationRuleCaseCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudConfigurationRuleCaseCreate) GetNotifications() []string
GetNotifications returns the Notifications field value if set, zero value otherwise.
func (o *CloudConfigurationRuleCaseCreate) GetNotificationsOk() (*[]string, bool)
GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCaseCreate) GetStatus() SecurityMonitoringRuleSeverity
GetStatus returns the Status field value.
func (o *CloudConfigurationRuleCaseCreate) GetStatusOk() (*SecurityMonitoringRuleSeverity, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCaseCreate) HasNotifications() bool
HasNotifications returns a boolean if a field has been set.
func (o CloudConfigurationRuleCaseCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudConfigurationRuleCaseCreate) SetNotifications(v []string)
SetNotifications gets a reference to the given []string and assigns it to the Notifications field.
func (o *CloudConfigurationRuleCaseCreate) SetStatus(v SecurityMonitoringRuleSeverity)
SetStatus sets field value.
func (o *CloudConfigurationRuleCaseCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudConfigurationRuleComplianceSignalOptions How to generate compliance signals. Useful for cloud_configuration rules only.
type CloudConfigurationRuleComplianceSignalOptions struct {
// Whether signals will be sent.
UserActivationStatus datadog.NullableBool `json:"userActivationStatus,omitempty"`
// Fields to use to group findings by when sending signals.
UserGroupByFields datadog.NullableList[string] `json:"userGroupByFields,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudConfigurationRuleComplianceSignalOptions() *CloudConfigurationRuleComplianceSignalOptions
NewCloudConfigurationRuleComplianceSignalOptions instantiates a new CloudConfigurationRuleComplianceSignalOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudConfigurationRuleComplianceSignalOptionsWithDefaults() *CloudConfigurationRuleComplianceSignalOptions
NewCloudConfigurationRuleComplianceSignalOptionsWithDefaults instantiates a new CloudConfigurationRuleComplianceSignalOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudConfigurationRuleComplianceSignalOptions) GetUserActivationStatus() bool
GetUserActivationStatus returns the UserActivationStatus field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CloudConfigurationRuleComplianceSignalOptions) GetUserActivationStatusOk() (*bool, bool)
GetUserActivationStatusOk returns a tuple with the UserActivationStatus field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CloudConfigurationRuleComplianceSignalOptions) GetUserGroupByFields() []string
GetUserGroupByFields returns the UserGroupByFields field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CloudConfigurationRuleComplianceSignalOptions) GetUserGroupByFieldsOk() (*[]string, bool)
GetUserGroupByFieldsOk returns a tuple with the UserGroupByFields field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CloudConfigurationRuleComplianceSignalOptions) HasUserActivationStatus() bool
HasUserActivationStatus returns a boolean if a field has been set.
func (o *CloudConfigurationRuleComplianceSignalOptions) HasUserGroupByFields() bool
HasUserGroupByFields returns a boolean if a field has been set.
func (o CloudConfigurationRuleComplianceSignalOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudConfigurationRuleComplianceSignalOptions) SetUserActivationStatus(v bool)
SetUserActivationStatus gets a reference to the given datadog.NullableBool and assigns it to the UserActivationStatus field.
func (o *CloudConfigurationRuleComplianceSignalOptions) SetUserActivationStatusNil()
SetUserActivationStatusNil sets the value for UserActivationStatus to be an explicit nil.
func (o *CloudConfigurationRuleComplianceSignalOptions) SetUserGroupByFields(v []string)
SetUserGroupByFields gets a reference to the given datadog.NullableList[string] and assigns it to the UserGroupByFields field.
func (o *CloudConfigurationRuleComplianceSignalOptions) SetUserGroupByFieldsNil()
SetUserGroupByFieldsNil sets the value for UserGroupByFields to be an explicit nil.
func (o *CloudConfigurationRuleComplianceSignalOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CloudConfigurationRuleComplianceSignalOptions) UnsetUserActivationStatus()
UnsetUserActivationStatus ensures that no value is present for UserActivationStatus, not even an explicit nil.
func (o *CloudConfigurationRuleComplianceSignalOptions) UnsetUserGroupByFields()
UnsetUserGroupByFields ensures that no value is present for UserGroupByFields, not even an explicit nil.
CloudConfigurationRuleCreatePayload Create a new cloud configuration rule.
type CloudConfigurationRuleCreatePayload struct {
// Description of generated findings and signals (severity and channels to be notified in case of a signal). Must contain exactly one item.
//
Cases []CloudConfigurationRuleCaseCreate `json:"cases"`
// How to generate compliance signals. Useful for cloud_configuration rules only.
ComplianceSignalOptions CloudConfigurationRuleComplianceSignalOptions `json:"complianceSignalOptions"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the rule is enabled.
IsEnabled bool `json:"isEnabled"`
// Message in markdown format for generated findings and signals.
Message string `json:"message"`
// The name of the rule.
Name string `json:"name"`
// Options on cloud configuration rules.
Options CloudConfigurationRuleOptions `json:"options"`
// Tags for generated findings and signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *CloudConfigurationRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudConfigurationRuleCreatePayload(cases []CloudConfigurationRuleCaseCreate, complianceSignalOptions CloudConfigurationRuleComplianceSignalOptions, isEnabled bool, message string, name string, options CloudConfigurationRuleOptions) *CloudConfigurationRuleCreatePayload
NewCloudConfigurationRuleCreatePayload instantiates a new CloudConfigurationRuleCreatePayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudConfigurationRuleCreatePayloadWithDefaults() *CloudConfigurationRuleCreatePayload
NewCloudConfigurationRuleCreatePayloadWithDefaults instantiates a new CloudConfigurationRuleCreatePayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudConfigurationRuleCreatePayload) GetCases() []CloudConfigurationRuleCaseCreate
GetCases returns the Cases field value.
func (o *CloudConfigurationRuleCreatePayload) GetCasesOk() (*[]CloudConfigurationRuleCaseCreate, bool)
GetCasesOk returns a tuple with the Cases field value and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) GetComplianceSignalOptions() CloudConfigurationRuleComplianceSignalOptions
GetComplianceSignalOptions returns the ComplianceSignalOptions field value.
func (o *CloudConfigurationRuleCreatePayload) GetComplianceSignalOptionsOk() (*CloudConfigurationRuleComplianceSignalOptions, bool)
GetComplianceSignalOptionsOk returns a tuple with the ComplianceSignalOptions field value and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *CloudConfigurationRuleCreatePayload) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value.
func (o *CloudConfigurationRuleCreatePayload) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) GetMessage() string
GetMessage returns the Message field value.
func (o *CloudConfigurationRuleCreatePayload) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) GetName() string
GetName returns the Name field value.
func (o *CloudConfigurationRuleCreatePayload) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) GetOptions() CloudConfigurationRuleOptions
GetOptions returns the Options field value.
func (o *CloudConfigurationRuleCreatePayload) GetOptionsOk() (*CloudConfigurationRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *CloudConfigurationRuleCreatePayload) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) GetType() CloudConfigurationRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *CloudConfigurationRuleCreatePayload) GetTypeOk() (*CloudConfigurationRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudConfigurationRuleCreatePayload) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *CloudConfigurationRuleCreatePayload) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *CloudConfigurationRuleCreatePayload) HasType() bool
HasType returns a boolean if a field has been set.
func (o CloudConfigurationRuleCreatePayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudConfigurationRuleCreatePayload) SetCases(v []CloudConfigurationRuleCaseCreate)
SetCases sets field value.
func (o *CloudConfigurationRuleCreatePayload) SetComplianceSignalOptions(v CloudConfigurationRuleComplianceSignalOptions)
SetComplianceSignalOptions sets field value.
func (o *CloudConfigurationRuleCreatePayload) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *CloudConfigurationRuleCreatePayload) SetIsEnabled(v bool)
SetIsEnabled sets field value.
func (o *CloudConfigurationRuleCreatePayload) SetMessage(v string)
SetMessage sets field value.
func (o *CloudConfigurationRuleCreatePayload) SetName(v string)
SetName sets field value.
func (o *CloudConfigurationRuleCreatePayload) SetOptions(v CloudConfigurationRuleOptions)
SetOptions sets field value.
func (o *CloudConfigurationRuleCreatePayload) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *CloudConfigurationRuleCreatePayload) SetType(v CloudConfigurationRuleType)
SetType gets a reference to the given CloudConfigurationRuleType and assigns it to the Type field.
func (o *CloudConfigurationRuleCreatePayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudConfigurationRuleOptions Options on cloud configuration rules.
type CloudConfigurationRuleOptions struct {
// Options for cloud_configuration rules.
// Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules.
//
ComplianceRuleOptions CloudConfigurationComplianceRuleOptions `json:"complianceRuleOptions"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudConfigurationRuleOptions(complianceRuleOptions CloudConfigurationComplianceRuleOptions) *CloudConfigurationRuleOptions
NewCloudConfigurationRuleOptions instantiates a new CloudConfigurationRuleOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudConfigurationRuleOptionsWithDefaults() *CloudConfigurationRuleOptions
NewCloudConfigurationRuleOptionsWithDefaults instantiates a new CloudConfigurationRuleOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudConfigurationRuleOptions) GetComplianceRuleOptions() CloudConfigurationComplianceRuleOptions
GetComplianceRuleOptions returns the ComplianceRuleOptions field value.
func (o *CloudConfigurationRuleOptions) GetComplianceRuleOptionsOk() (*CloudConfigurationComplianceRuleOptions, bool)
GetComplianceRuleOptionsOk returns a tuple with the ComplianceRuleOptions field value and a boolean to check if the value has been set.
func (o CloudConfigurationRuleOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudConfigurationRuleOptions) SetComplianceRuleOptions(v CloudConfigurationComplianceRuleOptions)
SetComplianceRuleOptions sets field value.
func (o *CloudConfigurationRuleOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudConfigurationRuleType The rule type.
type CloudConfigurationRuleType string
List of CloudConfigurationRuleType.
const (
CLOUDCONFIGURATIONRULETYPE_CLOUD_CONFIGURATION CloudConfigurationRuleType = "cloud_configuration"
)
func NewCloudConfigurationRuleTypeFromValue(v string) (*CloudConfigurationRuleType, error)
NewCloudConfigurationRuleTypeFromValue returns a pointer to a valid CloudConfigurationRuleType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CloudConfigurationRuleType) GetAllowedValues() []CloudConfigurationRuleType
GetAllowedValues reeturns the list of possible values.
func (v CloudConfigurationRuleType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CloudConfigurationRuleType) Ptr() *CloudConfigurationRuleType
Ptr returns reference to CloudConfigurationRuleType value.
func (v *CloudConfigurationRuleType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleAttributes A Cloud Workload Security Agent rule returned by the API.
type CloudWorkloadSecurityAgentRuleAttributes struct {
// The version of the agent.
AgentConstraint *string `json:"agentConstraint,omitempty"`
// The category of the Agent rule.
Category *string `json:"category,omitempty"`
// The ID of the user who created the rule.
CreationAuthorUuId *string `json:"creationAuthorUuId,omitempty"`
// When the Agent rule was created, timestamp in milliseconds.
CreationDate *int64 `json:"creationDate,omitempty"`
// The attributes of the user who created the Agent rule.
Creator *CloudWorkloadSecurityAgentRuleCreatorAttributes `json:"creator,omitempty"`
// Whether the rule is included by default.
DefaultRule *bool `json:"defaultRule,omitempty"`
// The description of the Agent rule.
Description *string `json:"description,omitempty"`
// Whether the Agent rule is enabled.
Enabled *bool `json:"enabled,omitempty"`
// The SECL expression of the Agent rule.
Expression *string `json:"expression,omitempty"`
// The name of the Agent rule.
Name *string `json:"name,omitempty"`
// The ID of the user who updated the rule.
UpdateAuthorUuId *string `json:"updateAuthorUuId,omitempty"`
// Timestamp in milliseconds when the Agent rule was last updated.
UpdateDate *int64 `json:"updateDate,omitempty"`
// When the Agent rule was last updated, timestamp in milliseconds.
UpdatedAt *int64 `json:"updatedAt,omitempty"`
// The attributes of the user who last updated the Agent rule.
Updater *CloudWorkloadSecurityAgentRuleUpdaterAttributes `json:"updater,omitempty"`
// The version of the Agent rule.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleAttributes() *CloudWorkloadSecurityAgentRuleAttributes
NewCloudWorkloadSecurityAgentRuleAttributes instantiates a new CloudWorkloadSecurityAgentRuleAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleAttributes
NewCloudWorkloadSecurityAgentRuleAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetAgentConstraint() string
GetAgentConstraint returns the AgentConstraint field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetAgentConstraintOk() (*string, bool)
GetAgentConstraintOk returns a tuple with the AgentConstraint field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCategory() string
GetCategory returns the Category field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCategoryOk() (*string, bool)
GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreationAuthorUuId() string
GetCreationAuthorUuId returns the CreationAuthorUuId field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreationAuthorUuIdOk() (*string, bool)
GetCreationAuthorUuIdOk returns a tuple with the CreationAuthorUuId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreationDate() int64
GetCreationDate returns the CreationDate field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreationDateOk() (*int64, bool)
GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreator() CloudWorkloadSecurityAgentRuleCreatorAttributes
GetCreator returns the Creator field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreatorOk() (*CloudWorkloadSecurityAgentRuleCreatorAttributes, bool)
GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetDefaultRule() bool
GetDefaultRule returns the DefaultRule field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetDefaultRuleOk() (*bool, bool)
GetDefaultRuleOk returns a tuple with the DefaultRule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetEnabled() bool
GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetExpression() string
GetExpression returns the Expression field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetExpressionOk() (*string, bool)
GetExpressionOk returns a tuple with the Expression field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdateAuthorUuId() string
GetUpdateAuthorUuId returns the UpdateAuthorUuId field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdateAuthorUuIdOk() (*string, bool)
GetUpdateAuthorUuIdOk returns a tuple with the UpdateAuthorUuId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdateDate() int64
GetUpdateDate returns the UpdateDate field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdateDateOk() (*int64, bool)
GetUpdateDateOk returns a tuple with the UpdateDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdatedAt() int64
GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdatedAtOk() (*int64, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdater() CloudWorkloadSecurityAgentRuleUpdaterAttributes
GetUpdater returns the Updater field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdaterOk() (*CloudWorkloadSecurityAgentRuleUpdaterAttributes, bool)
GetUpdaterOk returns a tuple with the Updater field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasAgentConstraint() bool
HasAgentConstraint returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasCategory() bool
HasCategory returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasCreationAuthorUuId() bool
HasCreationAuthorUuId returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasCreationDate() bool
HasCreationDate returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasCreator() bool
HasCreator returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasDefaultRule() bool
HasDefaultRule returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasExpression() bool
HasExpression returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasUpdateAuthorUuId() bool
HasUpdateAuthorUuId returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasUpdateDate() bool
HasUpdateDate returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasUpdater() bool
HasUpdater returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetAgentConstraint(v string)
SetAgentConstraint gets a reference to the given string and assigns it to the AgentConstraint field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetCategory(v string)
SetCategory gets a reference to the given string and assigns it to the Category field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetCreationAuthorUuId(v string)
SetCreationAuthorUuId gets a reference to the given string and assigns it to the CreationAuthorUuId field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetCreationDate(v int64)
SetCreationDate gets a reference to the given int64 and assigns it to the CreationDate field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetCreator(v CloudWorkloadSecurityAgentRuleCreatorAttributes)
SetCreator gets a reference to the given CloudWorkloadSecurityAgentRuleCreatorAttributes and assigns it to the Creator field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetDefaultRule(v bool)
SetDefaultRule gets a reference to the given bool and assigns it to the DefaultRule field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetEnabled(v bool)
SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetExpression(v string)
SetExpression gets a reference to the given string and assigns it to the Expression field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetUpdateAuthorUuId(v string)
SetUpdateAuthorUuId gets a reference to the given string and assigns it to the UpdateAuthorUuId field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetUpdateDate(v int64)
SetUpdateDate gets a reference to the given int64 and assigns it to the UpdateDate field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetUpdatedAt(v int64)
SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetUpdater(v CloudWorkloadSecurityAgentRuleUpdaterAttributes)
SetUpdater gets a reference to the given CloudWorkloadSecurityAgentRuleUpdaterAttributes and assigns it to the Updater field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleCreateAttributes Create a new Cloud Workload Security Agent rule.
type CloudWorkloadSecurityAgentRuleCreateAttributes struct {
// The description of the Agent rule.
Description *string `json:"description,omitempty"`
// Whether the Agent rule is enabled.
Enabled *bool `json:"enabled,omitempty"`
// The SECL expression of the Agent rule.
Expression string `json:"expression"`
// The name of the Agent rule.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleCreateAttributes(expression string, name string) *CloudWorkloadSecurityAgentRuleCreateAttributes
NewCloudWorkloadSecurityAgentRuleCreateAttributes instantiates a new CloudWorkloadSecurityAgentRuleCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleCreateAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleCreateAttributes
NewCloudWorkloadSecurityAgentRuleCreateAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetEnabled() bool
GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetExpression() string
GetExpression returns the Expression field value.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetExpressionOk() (*string, bool)
GetExpressionOk returns a tuple with the Expression field value and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) SetEnabled(v bool)
SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) SetExpression(v string)
SetExpression sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) SetName(v string)
SetName sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleCreateData Object for a single Agent rule.
type CloudWorkloadSecurityAgentRuleCreateData struct {
// Create a new Cloud Workload Security Agent rule.
Attributes CloudWorkloadSecurityAgentRuleCreateAttributes `json:"attributes"`
// The type of the resource. The value should always be `agent_rule`.
Type CloudWorkloadSecurityAgentRuleType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleCreateData(attributes CloudWorkloadSecurityAgentRuleCreateAttributes, typeVar CloudWorkloadSecurityAgentRuleType) *CloudWorkloadSecurityAgentRuleCreateData
NewCloudWorkloadSecurityAgentRuleCreateData instantiates a new CloudWorkloadSecurityAgentRuleCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleCreateDataWithDefaults() *CloudWorkloadSecurityAgentRuleCreateData
NewCloudWorkloadSecurityAgentRuleCreateDataWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleCreateData) GetAttributes() CloudWorkloadSecurityAgentRuleCreateAttributes
GetAttributes returns the Attributes field value.
func (o *CloudWorkloadSecurityAgentRuleCreateData) GetAttributesOk() (*CloudWorkloadSecurityAgentRuleCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateData) GetType() CloudWorkloadSecurityAgentRuleType
GetType returns the Type field value.
func (o *CloudWorkloadSecurityAgentRuleCreateData) GetTypeOk() (*CloudWorkloadSecurityAgentRuleType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o CloudWorkloadSecurityAgentRuleCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleCreateData) SetAttributes(v CloudWorkloadSecurityAgentRuleCreateAttributes)
SetAttributes sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateData) SetType(v CloudWorkloadSecurityAgentRuleType)
SetType sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleCreateRequest Request object that includes the Agent rule to create.
type CloudWorkloadSecurityAgentRuleCreateRequest struct {
// Object for a single Agent rule.
Data CloudWorkloadSecurityAgentRuleCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleCreateRequest(data CloudWorkloadSecurityAgentRuleCreateData) *CloudWorkloadSecurityAgentRuleCreateRequest
NewCloudWorkloadSecurityAgentRuleCreateRequest instantiates a new CloudWorkloadSecurityAgentRuleCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleCreateRequestWithDefaults() *CloudWorkloadSecurityAgentRuleCreateRequest
NewCloudWorkloadSecurityAgentRuleCreateRequestWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleCreateRequest) GetData() CloudWorkloadSecurityAgentRuleCreateData
GetData returns the Data field value.
func (o *CloudWorkloadSecurityAgentRuleCreateRequest) GetDataOk() (*CloudWorkloadSecurityAgentRuleCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o CloudWorkloadSecurityAgentRuleCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleCreateRequest) SetData(v CloudWorkloadSecurityAgentRuleCreateData)
SetData sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleCreatorAttributes The attributes of the user who created the Agent rule.
type CloudWorkloadSecurityAgentRuleCreatorAttributes struct {
// The handle of the user.
Handle *string `json:"handle,omitempty"`
// The name of the user.
Name datadog.NullableString `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleCreatorAttributes() *CloudWorkloadSecurityAgentRuleCreatorAttributes
NewCloudWorkloadSecurityAgentRuleCreatorAttributes instantiates a new CloudWorkloadSecurityAgentRuleCreatorAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleCreatorAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleCreatorAttributes
NewCloudWorkloadSecurityAgentRuleCreatorAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleCreatorAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleCreatorAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) SetName(v string)
SetName gets a reference to the given datadog.NullableString and assigns it to the Name field.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil.
CloudWorkloadSecurityAgentRuleData Object for a single Agent rule.
type CloudWorkloadSecurityAgentRuleData struct {
// A Cloud Workload Security Agent rule returned by the API.
Attributes *CloudWorkloadSecurityAgentRuleAttributes `json:"attributes,omitempty"`
// The ID of the Agent rule.
Id *string `json:"id,omitempty"`
// The type of the resource. The value should always be `agent_rule`.
Type *CloudWorkloadSecurityAgentRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleData() *CloudWorkloadSecurityAgentRuleData
NewCloudWorkloadSecurityAgentRuleData instantiates a new CloudWorkloadSecurityAgentRuleData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleDataWithDefaults() *CloudWorkloadSecurityAgentRuleData
NewCloudWorkloadSecurityAgentRuleDataWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleData) GetAttributes() CloudWorkloadSecurityAgentRuleAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleData) GetAttributesOk() (*CloudWorkloadSecurityAgentRuleAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleData) GetType() CloudWorkloadSecurityAgentRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleData) GetTypeOk() (*CloudWorkloadSecurityAgentRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleData) HasType() bool
HasType returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleData) SetAttributes(v CloudWorkloadSecurityAgentRuleAttributes)
SetAttributes gets a reference to the given CloudWorkloadSecurityAgentRuleAttributes and assigns it to the Attributes field.
func (o *CloudWorkloadSecurityAgentRuleData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *CloudWorkloadSecurityAgentRuleData) SetType(v CloudWorkloadSecurityAgentRuleType)
SetType gets a reference to the given CloudWorkloadSecurityAgentRuleType and assigns it to the Type field.
func (o *CloudWorkloadSecurityAgentRuleData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleResponse Response object that includes an Agent rule.
type CloudWorkloadSecurityAgentRuleResponse struct {
// Object for a single Agent rule.
Data *CloudWorkloadSecurityAgentRuleData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleResponse() *CloudWorkloadSecurityAgentRuleResponse
NewCloudWorkloadSecurityAgentRuleResponse instantiates a new CloudWorkloadSecurityAgentRuleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleResponseWithDefaults() *CloudWorkloadSecurityAgentRuleResponse
NewCloudWorkloadSecurityAgentRuleResponseWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleResponse) GetData() CloudWorkloadSecurityAgentRuleData
GetData returns the Data field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleResponse) GetDataOk() (*CloudWorkloadSecurityAgentRuleData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleResponse) SetData(v CloudWorkloadSecurityAgentRuleData)
SetData gets a reference to the given CloudWorkloadSecurityAgentRuleData and assigns it to the Data field.
func (o *CloudWorkloadSecurityAgentRuleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleType The type of the resource. The value should always be `agent_rule`.
type CloudWorkloadSecurityAgentRuleType string
List of CloudWorkloadSecurityAgentRuleType.
const (
CLOUDWORKLOADSECURITYAGENTRULETYPE_AGENT_RULE CloudWorkloadSecurityAgentRuleType = "agent_rule"
)
func NewCloudWorkloadSecurityAgentRuleTypeFromValue(v string) (*CloudWorkloadSecurityAgentRuleType, error)
NewCloudWorkloadSecurityAgentRuleTypeFromValue returns a pointer to a valid CloudWorkloadSecurityAgentRuleType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CloudWorkloadSecurityAgentRuleType) GetAllowedValues() []CloudWorkloadSecurityAgentRuleType
GetAllowedValues reeturns the list of possible values.
func (v CloudWorkloadSecurityAgentRuleType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CloudWorkloadSecurityAgentRuleType) Ptr() *CloudWorkloadSecurityAgentRuleType
Ptr returns reference to CloudWorkloadSecurityAgentRuleType value.
func (v *CloudWorkloadSecurityAgentRuleType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleUpdateAttributes Update an existing Cloud Workload Security Agent rule.
type CloudWorkloadSecurityAgentRuleUpdateAttributes struct {
// The description of the Agent rule.
Description *string `json:"description,omitempty"`
// Whether the Agent rule is enabled.
Enabled *bool `json:"enabled,omitempty"`
// The SECL expression of the Agent rule.
Expression *string `json:"expression,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleUpdateAttributes() *CloudWorkloadSecurityAgentRuleUpdateAttributes
NewCloudWorkloadSecurityAgentRuleUpdateAttributes instantiates a new CloudWorkloadSecurityAgentRuleUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleUpdateAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleUpdateAttributes
NewCloudWorkloadSecurityAgentRuleUpdateAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetEnabled() bool
GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetExpression() string
GetExpression returns the Expression field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetExpressionOk() (*string, bool)
GetExpressionOk returns a tuple with the Expression field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) HasExpression() bool
HasExpression returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) SetEnabled(v bool)
SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) SetExpression(v string)
SetExpression gets a reference to the given string and assigns it to the Expression field.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleUpdateData Object for a single Agent rule.
type CloudWorkloadSecurityAgentRuleUpdateData struct {
// Update an existing Cloud Workload Security Agent rule.
Attributes CloudWorkloadSecurityAgentRuleUpdateAttributes `json:"attributes"`
// The type of the resource. The value should always be `agent_rule`.
Type CloudWorkloadSecurityAgentRuleType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleUpdateData(attributes CloudWorkloadSecurityAgentRuleUpdateAttributes, typeVar CloudWorkloadSecurityAgentRuleType) *CloudWorkloadSecurityAgentRuleUpdateData
NewCloudWorkloadSecurityAgentRuleUpdateData instantiates a new CloudWorkloadSecurityAgentRuleUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleUpdateDataWithDefaults() *CloudWorkloadSecurityAgentRuleUpdateData
NewCloudWorkloadSecurityAgentRuleUpdateDataWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) GetAttributes() CloudWorkloadSecurityAgentRuleUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) GetAttributesOk() (*CloudWorkloadSecurityAgentRuleUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) GetType() CloudWorkloadSecurityAgentRuleType
GetType returns the Type field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) GetTypeOk() (*CloudWorkloadSecurityAgentRuleType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o CloudWorkloadSecurityAgentRuleUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) SetAttributes(v CloudWorkloadSecurityAgentRuleUpdateAttributes)
SetAttributes sets field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) SetType(v CloudWorkloadSecurityAgentRuleType)
SetType sets field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleUpdateRequest Request object that includes the Agent rule with the attributes to update.
type CloudWorkloadSecurityAgentRuleUpdateRequest struct {
// Object for a single Agent rule.
Data CloudWorkloadSecurityAgentRuleUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleUpdateRequest(data CloudWorkloadSecurityAgentRuleUpdateData) *CloudWorkloadSecurityAgentRuleUpdateRequest
NewCloudWorkloadSecurityAgentRuleUpdateRequest instantiates a new CloudWorkloadSecurityAgentRuleUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleUpdateRequestWithDefaults() *CloudWorkloadSecurityAgentRuleUpdateRequest
NewCloudWorkloadSecurityAgentRuleUpdateRequestWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleUpdateRequest) GetData() CloudWorkloadSecurityAgentRuleUpdateData
GetData returns the Data field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateRequest) GetDataOk() (*CloudWorkloadSecurityAgentRuleUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o CloudWorkloadSecurityAgentRuleUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleUpdateRequest) SetData(v CloudWorkloadSecurityAgentRuleUpdateData)
SetData sets field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleUpdaterAttributes The attributes of the user who last updated the Agent rule.
type CloudWorkloadSecurityAgentRuleUpdaterAttributes struct {
// The handle of the user.
Handle *string `json:"handle,omitempty"`
// The name of the user.
Name datadog.NullableString `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleUpdaterAttributes() *CloudWorkloadSecurityAgentRuleUpdaterAttributes
NewCloudWorkloadSecurityAgentRuleUpdaterAttributes instantiates a new CloudWorkloadSecurityAgentRuleUpdaterAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleUpdaterAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleUpdaterAttributes
NewCloudWorkloadSecurityAgentRuleUpdaterAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleUpdaterAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleUpdaterAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) SetName(v string)
SetName gets a reference to the given datadog.NullableString and assigns it to the Name field.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil.
CloudWorkloadSecurityAgentRulesListResponse Response object that includes a list of Agent rule.
type CloudWorkloadSecurityAgentRulesListResponse struct {
// A list of Agent rules objects.
Data []CloudWorkloadSecurityAgentRuleData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRulesListResponse() *CloudWorkloadSecurityAgentRulesListResponse
NewCloudWorkloadSecurityAgentRulesListResponse instantiates a new CloudWorkloadSecurityAgentRulesListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRulesListResponseWithDefaults() *CloudWorkloadSecurityAgentRulesListResponse
NewCloudWorkloadSecurityAgentRulesListResponseWithDefaults instantiates a new CloudWorkloadSecurityAgentRulesListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRulesListResponse) GetData() []CloudWorkloadSecurityAgentRuleData
GetData returns the Data field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRulesListResponse) GetDataOk() (*[]CloudWorkloadSecurityAgentRuleData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRulesListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRulesListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRulesListResponse) SetData(v []CloudWorkloadSecurityAgentRuleData)
SetData gets a reference to the given []CloudWorkloadSecurityAgentRuleData and assigns it to the Data field.
func (o *CloudWorkloadSecurityAgentRulesListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityApi service type
type CloudWorkloadSecurityApi datadog.Service
func NewCloudWorkloadSecurityApi(client *datadog.APIClient) *CloudWorkloadSecurityApi
NewCloudWorkloadSecurityApi Returns NewCloudWorkloadSecurityApi.
func (a *CloudWorkloadSecurityApi) CreateCloudWorkloadSecurityAgentRule(ctx _context.Context, body CloudWorkloadSecurityAgentRuleCreateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error)
CreateCloudWorkloadSecurityAgentRule Create a Cloud Workload Security Agent rule. Create a new Agent rule with the given parameters.
func (a *CloudWorkloadSecurityApi) DeleteCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string) (*_nethttp.Response, error)
DeleteCloudWorkloadSecurityAgentRule Delete a Cloud Workload Security Agent rule. Delete a specific Agent rule.
func (a *CloudWorkloadSecurityApi) DownloadCloudWorkloadPolicyFile(ctx _context.Context) (*os.File, *_nethttp.Response, error)
DownloadCloudWorkloadPolicyFile Get the latest Cloud Workload Security policy. The download endpoint generates a Cloud Workload Security policy file from your currently active Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to your Agents to update the policy running in your environment.
func (a *CloudWorkloadSecurityApi) GetCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error)
GetCloudWorkloadSecurityAgentRule Get a Cloud Workload Security Agent rule. Get the details of a specific Agent rule.
func (a *CloudWorkloadSecurityApi) ListCloudWorkloadSecurityAgentRules(ctx _context.Context) (CloudWorkloadSecurityAgentRulesListResponse, *_nethttp.Response, error)
ListCloudWorkloadSecurityAgentRules Get all Cloud Workload Security Agent rules. Get the list of Agent rules.
func (a *CloudWorkloadSecurityApi) UpdateCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string, body CloudWorkloadSecurityAgentRuleUpdateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error)
UpdateCloudWorkloadSecurityAgentRule Update a Cloud Workload Security Agent rule. Update a specific Agent rule. Returns the Agent rule object when the request is successful.
CloudflareAccountCreateRequest Payload schema when adding a Cloudflare account.
type CloudflareAccountCreateRequest struct {
// Data object for creating a Cloudflare account.
Data CloudflareAccountCreateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountCreateRequest(data CloudflareAccountCreateRequestData) *CloudflareAccountCreateRequest
NewCloudflareAccountCreateRequest instantiates a new CloudflareAccountCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountCreateRequestWithDefaults() *CloudflareAccountCreateRequest
NewCloudflareAccountCreateRequestWithDefaults instantiates a new CloudflareAccountCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountCreateRequest) GetData() CloudflareAccountCreateRequestData
GetData returns the Data field value.
func (o *CloudflareAccountCreateRequest) GetDataOk() (*CloudflareAccountCreateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o CloudflareAccountCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountCreateRequest) SetData(v CloudflareAccountCreateRequestData)
SetData sets field value.
func (o *CloudflareAccountCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountCreateRequestAttributes Attributes object for creating a Cloudflare account.
type CloudflareAccountCreateRequestAttributes struct {
// The API key (or token) for the Cloudflare account.
ApiKey string `json:"api_key"`
// The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required.
Email *string `json:"email,omitempty"`
// The name of the Cloudflare account.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountCreateRequestAttributes(apiKey string, name string) *CloudflareAccountCreateRequestAttributes
NewCloudflareAccountCreateRequestAttributes instantiates a new CloudflareAccountCreateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountCreateRequestAttributesWithDefaults() *CloudflareAccountCreateRequestAttributes
NewCloudflareAccountCreateRequestAttributesWithDefaults instantiates a new CloudflareAccountCreateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountCreateRequestAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *CloudflareAccountCreateRequestAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *CloudflareAccountCreateRequestAttributes) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *CloudflareAccountCreateRequestAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudflareAccountCreateRequestAttributes) GetName() string
GetName returns the Name field value.
func (o *CloudflareAccountCreateRequestAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CloudflareAccountCreateRequestAttributes) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o CloudflareAccountCreateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountCreateRequestAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *CloudflareAccountCreateRequestAttributes) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *CloudflareAccountCreateRequestAttributes) SetName(v string)
SetName sets field value.
func (o *CloudflareAccountCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountCreateRequestData Data object for creating a Cloudflare account.
type CloudflareAccountCreateRequestData struct {
// Attributes object for creating a Cloudflare account.
Attributes CloudflareAccountCreateRequestAttributes `json:"attributes"`
// The JSON:API type for this API. Should always be `cloudflare-accounts`.
Type CloudflareAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountCreateRequestData(attributes CloudflareAccountCreateRequestAttributes, typeVar CloudflareAccountType) *CloudflareAccountCreateRequestData
NewCloudflareAccountCreateRequestData instantiates a new CloudflareAccountCreateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountCreateRequestDataWithDefaults() *CloudflareAccountCreateRequestData
NewCloudflareAccountCreateRequestDataWithDefaults instantiates a new CloudflareAccountCreateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountCreateRequestData) GetAttributes() CloudflareAccountCreateRequestAttributes
GetAttributes returns the Attributes field value.
func (o *CloudflareAccountCreateRequestData) GetAttributesOk() (*CloudflareAccountCreateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *CloudflareAccountCreateRequestData) GetType() CloudflareAccountType
GetType returns the Type field value.
func (o *CloudflareAccountCreateRequestData) GetTypeOk() (*CloudflareAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o CloudflareAccountCreateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountCreateRequestData) SetAttributes(v CloudflareAccountCreateRequestAttributes)
SetAttributes sets field value.
func (o *CloudflareAccountCreateRequestData) SetType(v CloudflareAccountType)
SetType sets field value.
func (o *CloudflareAccountCreateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountResponse The expected response schema when getting a Cloudflare account.
type CloudflareAccountResponse struct {
// Data object of a Cloudflare account.
Data *CloudflareAccountResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountResponse() *CloudflareAccountResponse
NewCloudflareAccountResponse instantiates a new CloudflareAccountResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountResponseWithDefaults() *CloudflareAccountResponse
NewCloudflareAccountResponseWithDefaults instantiates a new CloudflareAccountResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountResponse) GetData() CloudflareAccountResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *CloudflareAccountResponse) GetDataOk() (*CloudflareAccountResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudflareAccountResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o CloudflareAccountResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountResponse) SetData(v CloudflareAccountResponseData)
SetData gets a reference to the given CloudflareAccountResponseData and assigns it to the Data field.
func (o *CloudflareAccountResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountResponseAttributes Attributes object of a Cloudflare account.
type CloudflareAccountResponseAttributes struct {
// The email associated with the Cloudflare account.
Email *string `json:"email,omitempty"`
// The name of the Cloudflare account.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountResponseAttributes(name string) *CloudflareAccountResponseAttributes
NewCloudflareAccountResponseAttributes instantiates a new CloudflareAccountResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountResponseAttributesWithDefaults() *CloudflareAccountResponseAttributes
NewCloudflareAccountResponseAttributesWithDefaults instantiates a new CloudflareAccountResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountResponseAttributes) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *CloudflareAccountResponseAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudflareAccountResponseAttributes) GetName() string
GetName returns the Name field value.
func (o *CloudflareAccountResponseAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CloudflareAccountResponseAttributes) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o CloudflareAccountResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountResponseAttributes) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *CloudflareAccountResponseAttributes) SetName(v string)
SetName sets field value.
func (o *CloudflareAccountResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountResponseData Data object of a Cloudflare account.
type CloudflareAccountResponseData struct {
// Attributes object of a Cloudflare account.
Attributes CloudflareAccountResponseAttributes `json:"attributes"`
// The ID of the Cloudflare account, a hash of the account name.
Id string `json:"id"`
// The JSON:API type for this API. Should always be `cloudflare-accounts`.
Type CloudflareAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountResponseData(attributes CloudflareAccountResponseAttributes, id string, typeVar CloudflareAccountType) *CloudflareAccountResponseData
NewCloudflareAccountResponseData instantiates a new CloudflareAccountResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountResponseDataWithDefaults() *CloudflareAccountResponseData
NewCloudflareAccountResponseDataWithDefaults instantiates a new CloudflareAccountResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountResponseData) GetAttributes() CloudflareAccountResponseAttributes
GetAttributes returns the Attributes field value.
func (o *CloudflareAccountResponseData) GetAttributesOk() (*CloudflareAccountResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *CloudflareAccountResponseData) GetId() string
GetId returns the Id field value.
func (o *CloudflareAccountResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *CloudflareAccountResponseData) GetType() CloudflareAccountType
GetType returns the Type field value.
func (o *CloudflareAccountResponseData) GetTypeOk() (*CloudflareAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o CloudflareAccountResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountResponseData) SetAttributes(v CloudflareAccountResponseAttributes)
SetAttributes sets field value.
func (o *CloudflareAccountResponseData) SetId(v string)
SetId sets field value.
func (o *CloudflareAccountResponseData) SetType(v CloudflareAccountType)
SetType sets field value.
func (o *CloudflareAccountResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountType The JSON:API type for this API. Should always be `cloudflare-accounts`.
type CloudflareAccountType string
List of CloudflareAccountType.
const (
CLOUDFLAREACCOUNTTYPE_CLOUDFLARE_ACCOUNTS CloudflareAccountType = "cloudflare-accounts"
)
func NewCloudflareAccountTypeFromValue(v string) (*CloudflareAccountType, error)
NewCloudflareAccountTypeFromValue returns a pointer to a valid CloudflareAccountType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CloudflareAccountType) GetAllowedValues() []CloudflareAccountType
GetAllowedValues reeturns the list of possible values.
func (v CloudflareAccountType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CloudflareAccountType) Ptr() *CloudflareAccountType
Ptr returns reference to CloudflareAccountType value.
func (v *CloudflareAccountType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CloudflareAccountUpdateRequest Payload schema when updating a Cloudflare account.
type CloudflareAccountUpdateRequest struct {
// Data object for updating a Cloudflare account.
Data CloudflareAccountUpdateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountUpdateRequest(data CloudflareAccountUpdateRequestData) *CloudflareAccountUpdateRequest
NewCloudflareAccountUpdateRequest instantiates a new CloudflareAccountUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountUpdateRequestWithDefaults() *CloudflareAccountUpdateRequest
NewCloudflareAccountUpdateRequestWithDefaults instantiates a new CloudflareAccountUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountUpdateRequest) GetData() CloudflareAccountUpdateRequestData
GetData returns the Data field value.
func (o *CloudflareAccountUpdateRequest) GetDataOk() (*CloudflareAccountUpdateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o CloudflareAccountUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountUpdateRequest) SetData(v CloudflareAccountUpdateRequestData)
SetData sets field value.
func (o *CloudflareAccountUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountUpdateRequestAttributes Attributes object for updating a Cloudflare account.
type CloudflareAccountUpdateRequestAttributes struct {
// The API key of the Cloudflare account.
ApiKey string `json:"api_key"`
// The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required.
Email *string `json:"email,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountUpdateRequestAttributes(apiKey string) *CloudflareAccountUpdateRequestAttributes
NewCloudflareAccountUpdateRequestAttributes instantiates a new CloudflareAccountUpdateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountUpdateRequestAttributesWithDefaults() *CloudflareAccountUpdateRequestAttributes
NewCloudflareAccountUpdateRequestAttributesWithDefaults instantiates a new CloudflareAccountUpdateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountUpdateRequestAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *CloudflareAccountUpdateRequestAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *CloudflareAccountUpdateRequestAttributes) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *CloudflareAccountUpdateRequestAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudflareAccountUpdateRequestAttributes) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o CloudflareAccountUpdateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountUpdateRequestAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *CloudflareAccountUpdateRequestAttributes) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *CloudflareAccountUpdateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountUpdateRequestData Data object for updating a Cloudflare account.
type CloudflareAccountUpdateRequestData struct {
// Attributes object for updating a Cloudflare account.
Attributes *CloudflareAccountUpdateRequestAttributes `json:"attributes,omitempty"`
// The JSON:API type for this API. Should always be `cloudflare-accounts`.
Type *CloudflareAccountType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountUpdateRequestData() *CloudflareAccountUpdateRequestData
NewCloudflareAccountUpdateRequestData instantiates a new CloudflareAccountUpdateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountUpdateRequestDataWithDefaults() *CloudflareAccountUpdateRequestData
NewCloudflareAccountUpdateRequestDataWithDefaults instantiates a new CloudflareAccountUpdateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountUpdateRequestData) GetAttributes() CloudflareAccountUpdateRequestAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CloudflareAccountUpdateRequestData) GetAttributesOk() (*CloudflareAccountUpdateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudflareAccountUpdateRequestData) GetType() CloudflareAccountType
GetType returns the Type field value if set, zero value otherwise.
func (o *CloudflareAccountUpdateRequestData) GetTypeOk() (*CloudflareAccountType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudflareAccountUpdateRequestData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CloudflareAccountUpdateRequestData) HasType() bool
HasType returns a boolean if a field has been set.
func (o CloudflareAccountUpdateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountUpdateRequestData) SetAttributes(v CloudflareAccountUpdateRequestAttributes)
SetAttributes gets a reference to the given CloudflareAccountUpdateRequestAttributes and assigns it to the Attributes field.
func (o *CloudflareAccountUpdateRequestData) SetType(v CloudflareAccountType)
SetType gets a reference to the given CloudflareAccountType and assigns it to the Type field.
func (o *CloudflareAccountUpdateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareAccountsResponse The expected response schema when getting Cloudflare accounts.
type CloudflareAccountsResponse struct {
// The JSON:API data schema.
Data []CloudflareAccountResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudflareAccountsResponse() *CloudflareAccountsResponse
NewCloudflareAccountsResponse instantiates a new CloudflareAccountsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudflareAccountsResponseWithDefaults() *CloudflareAccountsResponse
NewCloudflareAccountsResponseWithDefaults instantiates a new CloudflareAccountsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudflareAccountsResponse) GetData() []CloudflareAccountResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *CloudflareAccountsResponse) GetDataOk() (*[]CloudflareAccountResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudflareAccountsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o CloudflareAccountsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudflareAccountsResponse) SetData(v []CloudflareAccountResponseData)
SetData gets a reference to the given []CloudflareAccountResponseData and assigns it to the Data field.
func (o *CloudflareAccountsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudflareIntegrationApi service type
type CloudflareIntegrationApi datadog.Service
func NewCloudflareIntegrationApi(client *datadog.APIClient) *CloudflareIntegrationApi
NewCloudflareIntegrationApi Returns NewCloudflareIntegrationApi.
func (a *CloudflareIntegrationApi) CreateCloudflareAccount(ctx _context.Context, body CloudflareAccountCreateRequest) (CloudflareAccountResponse, *_nethttp.Response, error)
CreateCloudflareAccount Add Cloudflare account. Create a Cloudflare account.
func (a *CloudflareIntegrationApi) DeleteCloudflareAccount(ctx _context.Context, accountId string) (*_nethttp.Response, error)
DeleteCloudflareAccount Delete Cloudflare account. Delete a Cloudflare account.
func (a *CloudflareIntegrationApi) GetCloudflareAccount(ctx _context.Context, accountId string) (CloudflareAccountResponse, *_nethttp.Response, error)
GetCloudflareAccount Get Cloudflare account. Get a Cloudflare account.
func (a *CloudflareIntegrationApi) ListCloudflareAccounts(ctx _context.Context) (CloudflareAccountsResponse, *_nethttp.Response, error)
ListCloudflareAccounts List Cloudflare accounts. List Cloudflare accounts.
func (a *CloudflareIntegrationApi) UpdateCloudflareAccount(ctx _context.Context, accountId string, body CloudflareAccountUpdateRequest) (CloudflareAccountResponse, *_nethttp.Response, error)
UpdateCloudflareAccount Update Cloudflare account. Update a Cloudflare account.
ConfluentAccountCreateRequest Payload schema when adding a Confluent account.
type ConfluentAccountCreateRequest struct {
// The data body for adding a Confluent account.
Data ConfluentAccountCreateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountCreateRequest(data ConfluentAccountCreateRequestData) *ConfluentAccountCreateRequest
NewConfluentAccountCreateRequest instantiates a new ConfluentAccountCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountCreateRequestWithDefaults() *ConfluentAccountCreateRequest
NewConfluentAccountCreateRequestWithDefaults instantiates a new ConfluentAccountCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountCreateRequest) GetData() ConfluentAccountCreateRequestData
GetData returns the Data field value.
func (o *ConfluentAccountCreateRequest) GetDataOk() (*ConfluentAccountCreateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ConfluentAccountCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountCreateRequest) SetData(v ConfluentAccountCreateRequestData)
SetData sets field value.
func (o *ConfluentAccountCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountCreateRequestAttributes Attributes associated with the account creation request.
type ConfluentAccountCreateRequestAttributes struct {
// The API key associated with your Confluent account.
ApiKey string `json:"api_key"`
// The API secret associated with your Confluent account.
ApiSecret string `json:"api_secret"`
// A list of Confluent resources associated with the Confluent account.
Resources []ConfluentAccountResourceAttributes `json:"resources,omitempty"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountCreateRequestAttributes(apiKey string, apiSecret string) *ConfluentAccountCreateRequestAttributes
NewConfluentAccountCreateRequestAttributes instantiates a new ConfluentAccountCreateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountCreateRequestAttributesWithDefaults() *ConfluentAccountCreateRequestAttributes
NewConfluentAccountCreateRequestAttributesWithDefaults instantiates a new ConfluentAccountCreateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountCreateRequestAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *ConfluentAccountCreateRequestAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestAttributes) GetApiSecret() string
GetApiSecret returns the ApiSecret field value.
func (o *ConfluentAccountCreateRequestAttributes) GetApiSecretOk() (*string, bool)
GetApiSecretOk returns a tuple with the ApiSecret field value and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestAttributes) GetResources() []ConfluentAccountResourceAttributes
GetResources returns the Resources field value if set, zero value otherwise.
func (o *ConfluentAccountCreateRequestAttributes) GetResourcesOk() (*[]ConfluentAccountResourceAttributes, bool)
GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentAccountCreateRequestAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestAttributes) HasResources() bool
HasResources returns a boolean if a field has been set.
func (o *ConfluentAccountCreateRequestAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentAccountCreateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountCreateRequestAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *ConfluentAccountCreateRequestAttributes) SetApiSecret(v string)
SetApiSecret sets field value.
func (o *ConfluentAccountCreateRequestAttributes) SetResources(v []ConfluentAccountResourceAttributes)
SetResources gets a reference to the given []ConfluentAccountResourceAttributes and assigns it to the Resources field.
func (o *ConfluentAccountCreateRequestAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentAccountCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountCreateRequestData The data body for adding a Confluent account.
type ConfluentAccountCreateRequestData struct {
// Attributes associated with the account creation request.
Attributes ConfluentAccountCreateRequestAttributes `json:"attributes"`
// The JSON:API type for this API. Should always be `confluent-cloud-accounts`.
Type ConfluentAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountCreateRequestData(attributes ConfluentAccountCreateRequestAttributes, typeVar ConfluentAccountType) *ConfluentAccountCreateRequestData
NewConfluentAccountCreateRequestData instantiates a new ConfluentAccountCreateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountCreateRequestDataWithDefaults() *ConfluentAccountCreateRequestData
NewConfluentAccountCreateRequestDataWithDefaults instantiates a new ConfluentAccountCreateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountCreateRequestData) GetAttributes() ConfluentAccountCreateRequestAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentAccountCreateRequestData) GetAttributesOk() (*ConfluentAccountCreateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestData) GetType() ConfluentAccountType
GetType returns the Type field value.
func (o *ConfluentAccountCreateRequestData) GetTypeOk() (*ConfluentAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentAccountCreateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountCreateRequestData) SetAttributes(v ConfluentAccountCreateRequestAttributes)
SetAttributes sets field value.
func (o *ConfluentAccountCreateRequestData) SetType(v ConfluentAccountType)
SetType sets field value.
func (o *ConfluentAccountCreateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountResourceAttributes Attributes object for updating a Confluent resource.
type ConfluentAccountResourceAttributes struct {
// Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
EnableCustomMetrics *bool `json:"enable_custom_metrics,omitempty"`
// The ID associated with a Confluent resource.
Id *string `json:"id,omitempty"`
// The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
ResourceType string `json:"resource_type"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountResourceAttributes(resourceType string) *ConfluentAccountResourceAttributes
NewConfluentAccountResourceAttributes instantiates a new ConfluentAccountResourceAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountResourceAttributesWithDefaults() *ConfluentAccountResourceAttributes
NewConfluentAccountResourceAttributesWithDefaults instantiates a new ConfluentAccountResourceAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountResourceAttributes) GetEnableCustomMetrics() bool
GetEnableCustomMetrics returns the EnableCustomMetrics field value if set, zero value otherwise.
func (o *ConfluentAccountResourceAttributes) GetEnableCustomMetricsOk() (*bool, bool)
GetEnableCustomMetricsOk returns a tuple with the EnableCustomMetrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResourceAttributes) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *ConfluentAccountResourceAttributes) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResourceAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value.
func (o *ConfluentAccountResourceAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.
func (o *ConfluentAccountResourceAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentAccountResourceAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResourceAttributes) HasEnableCustomMetrics() bool
HasEnableCustomMetrics returns a boolean if a field has been set.
func (o *ConfluentAccountResourceAttributes) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ConfluentAccountResourceAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentAccountResourceAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountResourceAttributes) SetEnableCustomMetrics(v bool)
SetEnableCustomMetrics gets a reference to the given bool and assigns it to the EnableCustomMetrics field.
func (o *ConfluentAccountResourceAttributes) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *ConfluentAccountResourceAttributes) SetResourceType(v string)
SetResourceType sets field value.
func (o *ConfluentAccountResourceAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentAccountResourceAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountResponse The expected response schema when getting a Confluent account.
type ConfluentAccountResponse struct {
// An API key and API secret pair that represents a Confluent account.
Data *ConfluentAccountResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountResponse() *ConfluentAccountResponse
NewConfluentAccountResponse instantiates a new ConfluentAccountResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountResponseWithDefaults() *ConfluentAccountResponse
NewConfluentAccountResponseWithDefaults instantiates a new ConfluentAccountResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountResponse) GetData() ConfluentAccountResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ConfluentAccountResponse) GetDataOk() (*ConfluentAccountResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ConfluentAccountResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountResponse) SetData(v ConfluentAccountResponseData)
SetData gets a reference to the given ConfluentAccountResponseData and assigns it to the Data field.
func (o *ConfluentAccountResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountResponseAttributes The attributes of a Confluent account.
type ConfluentAccountResponseAttributes struct {
// The API key associated with your Confluent account.
ApiKey string `json:"api_key"`
// A list of Confluent resources associated with the Confluent account.
Resources []ConfluentResourceResponseAttributes `json:"resources,omitempty"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountResponseAttributes(apiKey string) *ConfluentAccountResponseAttributes
NewConfluentAccountResponseAttributes instantiates a new ConfluentAccountResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountResponseAttributesWithDefaults() *ConfluentAccountResponseAttributes
NewConfluentAccountResponseAttributesWithDefaults instantiates a new ConfluentAccountResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountResponseAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *ConfluentAccountResponseAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseAttributes) GetResources() []ConfluentResourceResponseAttributes
GetResources returns the Resources field value if set, zero value otherwise.
func (o *ConfluentAccountResponseAttributes) GetResourcesOk() (*[]ConfluentResourceResponseAttributes, bool)
GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentAccountResponseAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseAttributes) HasResources() bool
HasResources returns a boolean if a field has been set.
func (o *ConfluentAccountResponseAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentAccountResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountResponseAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *ConfluentAccountResponseAttributes) SetResources(v []ConfluentResourceResponseAttributes)
SetResources gets a reference to the given []ConfluentResourceResponseAttributes and assigns it to the Resources field.
func (o *ConfluentAccountResponseAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentAccountResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountResponseData An API key and API secret pair that represents a Confluent account.
type ConfluentAccountResponseData struct {
// The attributes of a Confluent account.
Attributes ConfluentAccountResponseAttributes `json:"attributes"`
// A randomly generated ID associated with a Confluent account.
Id string `json:"id"`
// The JSON:API type for this API. Should always be `confluent-cloud-accounts`.
Type ConfluentAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountResponseData(attributes ConfluentAccountResponseAttributes, id string, typeVar ConfluentAccountType) *ConfluentAccountResponseData
NewConfluentAccountResponseData instantiates a new ConfluentAccountResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountResponseDataWithDefaults() *ConfluentAccountResponseData
NewConfluentAccountResponseDataWithDefaults instantiates a new ConfluentAccountResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountResponseData) GetAttributes() ConfluentAccountResponseAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentAccountResponseData) GetAttributesOk() (*ConfluentAccountResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseData) GetId() string
GetId returns the Id field value.
func (o *ConfluentAccountResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseData) GetType() ConfluentAccountType
GetType returns the Type field value.
func (o *ConfluentAccountResponseData) GetTypeOk() (*ConfluentAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentAccountResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountResponseData) SetAttributes(v ConfluentAccountResponseAttributes)
SetAttributes sets field value.
func (o *ConfluentAccountResponseData) SetId(v string)
SetId sets field value.
func (o *ConfluentAccountResponseData) SetType(v ConfluentAccountType)
SetType sets field value.
func (o *ConfluentAccountResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountType The JSON:API type for this API. Should always be `confluent-cloud-accounts`.
type ConfluentAccountType string
List of ConfluentAccountType.
const (
CONFLUENTACCOUNTTYPE_CONFLUENT_CLOUD_ACCOUNTS ConfluentAccountType = "confluent-cloud-accounts"
)
func NewConfluentAccountTypeFromValue(v string) (*ConfluentAccountType, error)
NewConfluentAccountTypeFromValue returns a pointer to a valid ConfluentAccountType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ConfluentAccountType) GetAllowedValues() []ConfluentAccountType
GetAllowedValues reeturns the list of possible values.
func (v ConfluentAccountType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ConfluentAccountType) Ptr() *ConfluentAccountType
Ptr returns reference to ConfluentAccountType value.
func (v *ConfluentAccountType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ConfluentAccountUpdateRequest The JSON:API request for updating a Confluent account.
type ConfluentAccountUpdateRequest struct {
// Data object for updating a Confluent account.
Data ConfluentAccountUpdateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountUpdateRequest(data ConfluentAccountUpdateRequestData) *ConfluentAccountUpdateRequest
NewConfluentAccountUpdateRequest instantiates a new ConfluentAccountUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountUpdateRequestWithDefaults() *ConfluentAccountUpdateRequest
NewConfluentAccountUpdateRequestWithDefaults instantiates a new ConfluentAccountUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountUpdateRequest) GetData() ConfluentAccountUpdateRequestData
GetData returns the Data field value.
func (o *ConfluentAccountUpdateRequest) GetDataOk() (*ConfluentAccountUpdateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ConfluentAccountUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountUpdateRequest) SetData(v ConfluentAccountUpdateRequestData)
SetData sets field value.
func (o *ConfluentAccountUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountUpdateRequestAttributes Attributes object for updating a Confluent account.
type ConfluentAccountUpdateRequestAttributes struct {
// The API key associated with your Confluent account.
ApiKey string `json:"api_key"`
// The API secret associated with your Confluent account.
ApiSecret string `json:"api_secret"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountUpdateRequestAttributes(apiKey string, apiSecret string) *ConfluentAccountUpdateRequestAttributes
NewConfluentAccountUpdateRequestAttributes instantiates a new ConfluentAccountUpdateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountUpdateRequestAttributesWithDefaults() *ConfluentAccountUpdateRequestAttributes
NewConfluentAccountUpdateRequestAttributesWithDefaults instantiates a new ConfluentAccountUpdateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountUpdateRequestAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *ConfluentAccountUpdateRequestAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *ConfluentAccountUpdateRequestAttributes) GetApiSecret() string
GetApiSecret returns the ApiSecret field value.
func (o *ConfluentAccountUpdateRequestAttributes) GetApiSecretOk() (*string, bool)
GetApiSecretOk returns a tuple with the ApiSecret field value and a boolean to check if the value has been set.
func (o *ConfluentAccountUpdateRequestAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentAccountUpdateRequestAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountUpdateRequestAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentAccountUpdateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountUpdateRequestAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *ConfluentAccountUpdateRequestAttributes) SetApiSecret(v string)
SetApiSecret sets field value.
func (o *ConfluentAccountUpdateRequestAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentAccountUpdateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountUpdateRequestData Data object for updating a Confluent account.
type ConfluentAccountUpdateRequestData struct {
// Attributes object for updating a Confluent account.
Attributes ConfluentAccountUpdateRequestAttributes `json:"attributes"`
// The JSON:API type for this API. Should always be `confluent-cloud-accounts`.
Type ConfluentAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountUpdateRequestData(attributes ConfluentAccountUpdateRequestAttributes, typeVar ConfluentAccountType) *ConfluentAccountUpdateRequestData
NewConfluentAccountUpdateRequestData instantiates a new ConfluentAccountUpdateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountUpdateRequestDataWithDefaults() *ConfluentAccountUpdateRequestData
NewConfluentAccountUpdateRequestDataWithDefaults instantiates a new ConfluentAccountUpdateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountUpdateRequestData) GetAttributes() ConfluentAccountUpdateRequestAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentAccountUpdateRequestData) GetAttributesOk() (*ConfluentAccountUpdateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentAccountUpdateRequestData) GetType() ConfluentAccountType
GetType returns the Type field value.
func (o *ConfluentAccountUpdateRequestData) GetTypeOk() (*ConfluentAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentAccountUpdateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountUpdateRequestData) SetAttributes(v ConfluentAccountUpdateRequestAttributes)
SetAttributes sets field value.
func (o *ConfluentAccountUpdateRequestData) SetType(v ConfluentAccountType)
SetType sets field value.
func (o *ConfluentAccountUpdateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountsResponse Confluent account returned by the API.
type ConfluentAccountsResponse struct {
// The Confluent account.
Data []ConfluentAccountResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountsResponse() *ConfluentAccountsResponse
NewConfluentAccountsResponse instantiates a new ConfluentAccountsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountsResponseWithDefaults() *ConfluentAccountsResponse
NewConfluentAccountsResponseWithDefaults instantiates a new ConfluentAccountsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountsResponse) GetData() []ConfluentAccountResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ConfluentAccountsResponse) GetDataOk() (*[]ConfluentAccountResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ConfluentAccountsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountsResponse) SetData(v []ConfluentAccountResponseData)
SetData gets a reference to the given []ConfluentAccountResponseData and assigns it to the Data field.
func (o *ConfluentAccountsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentCloudApi service type
type ConfluentCloudApi datadog.Service
func NewConfluentCloudApi(client *datadog.APIClient) *ConfluentCloudApi
NewConfluentCloudApi Returns NewConfluentCloudApi.
func (a *ConfluentCloudApi) CreateConfluentAccount(ctx _context.Context, body ConfluentAccountCreateRequest) (ConfluentAccountResponse, *_nethttp.Response, error)
CreateConfluentAccount Add Confluent account. Create a Confluent account.
func (a *ConfluentCloudApi) CreateConfluentResource(ctx _context.Context, accountId string, body ConfluentResourceRequest) (ConfluentResourceResponse, *_nethttp.Response, error)
CreateConfluentResource Add resource to Confluent account. Create a Confluent resource for the account associated with the provided ID.
func (a *ConfluentCloudApi) DeleteConfluentAccount(ctx _context.Context, accountId string) (*_nethttp.Response, error)
DeleteConfluentAccount Delete Confluent account. Delete a Confluent account with the provided account ID.
func (a *ConfluentCloudApi) DeleteConfluentResource(ctx _context.Context, accountId string, resourceId string) (*_nethttp.Response, error)
DeleteConfluentResource Delete resource from Confluent account. Delete a Confluent resource with the provided resource id for the account associated with the provided account ID.
func (a *ConfluentCloudApi) GetConfluentAccount(ctx _context.Context, accountId string) (ConfluentAccountResponse, *_nethttp.Response, error)
GetConfluentAccount Get Confluent account. Get the Confluent account with the provided account ID.
func (a *ConfluentCloudApi) GetConfluentResource(ctx _context.Context, accountId string, resourceId string) (ConfluentResourceResponse, *_nethttp.Response, error)
GetConfluentResource Get resource from Confluent account. Get a Confluent resource with the provided resource id for the account associated with the provided account ID.
func (a *ConfluentCloudApi) ListConfluentAccount(ctx _context.Context) (ConfluentAccountsResponse, *_nethttp.Response, error)
ListConfluentAccount List Confluent accounts. List Confluent accounts.
func (a *ConfluentCloudApi) ListConfluentResource(ctx _context.Context, accountId string) (ConfluentResourcesResponse, *_nethttp.Response, error)
ListConfluentResource List Confluent Account resources. Get a Confluent resource for the account associated with the provided ID.
func (a *ConfluentCloudApi) UpdateConfluentAccount(ctx _context.Context, accountId string, body ConfluentAccountUpdateRequest) (ConfluentAccountResponse, *_nethttp.Response, error)
UpdateConfluentAccount Update Confluent account. Update the Confluent account with the provided account ID.
func (a *ConfluentCloudApi) UpdateConfluentResource(ctx _context.Context, accountId string, resourceId string, body ConfluentResourceRequest) (ConfluentResourceResponse, *_nethttp.Response, error)
UpdateConfluentResource Update resource in Confluent account. Update a Confluent resource with the provided resource id for the account associated with the provided account ID.
ConfluentResourceRequest The JSON:API request for updating a Confluent resource.
type ConfluentResourceRequest struct {
// JSON:API request for updating a Confluent resource.
Data ConfluentResourceRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceRequest(data ConfluentResourceRequestData) *ConfluentResourceRequest
NewConfluentResourceRequest instantiates a new ConfluentResourceRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceRequestWithDefaults() *ConfluentResourceRequest
NewConfluentResourceRequestWithDefaults instantiates a new ConfluentResourceRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceRequest) GetData() ConfluentResourceRequestData
GetData returns the Data field value.
func (o *ConfluentResourceRequest) GetDataOk() (*ConfluentResourceRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ConfluentResourceRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceRequest) SetData(v ConfluentResourceRequestData)
SetData sets field value.
func (o *ConfluentResourceRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceRequestAttributes Attributes object for updating a Confluent resource.
type ConfluentResourceRequestAttributes struct {
// Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
EnableCustomMetrics *bool `json:"enable_custom_metrics,omitempty"`
// The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
ResourceType string `json:"resource_type"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceRequestAttributes(resourceType string) *ConfluentResourceRequestAttributes
NewConfluentResourceRequestAttributes instantiates a new ConfluentResourceRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceRequestAttributesWithDefaults() *ConfluentResourceRequestAttributes
NewConfluentResourceRequestAttributesWithDefaults instantiates a new ConfluentResourceRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceRequestAttributes) GetEnableCustomMetrics() bool
GetEnableCustomMetrics returns the EnableCustomMetrics field value if set, zero value otherwise.
func (o *ConfluentResourceRequestAttributes) GetEnableCustomMetricsOk() (*bool, bool)
GetEnableCustomMetricsOk returns a tuple with the EnableCustomMetrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value.
func (o *ConfluentResourceRequestAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentResourceRequestAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestAttributes) HasEnableCustomMetrics() bool
HasEnableCustomMetrics returns a boolean if a field has been set.
func (o *ConfluentResourceRequestAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentResourceRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceRequestAttributes) SetEnableCustomMetrics(v bool)
SetEnableCustomMetrics gets a reference to the given bool and assigns it to the EnableCustomMetrics field.
func (o *ConfluentResourceRequestAttributes) SetResourceType(v string)
SetResourceType sets field value.
func (o *ConfluentResourceRequestAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentResourceRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceRequestData JSON:API request for updating a Confluent resource.
type ConfluentResourceRequestData struct {
// Attributes object for updating a Confluent resource.
Attributes ConfluentResourceRequestAttributes `json:"attributes"`
// The ID associated with a Confluent resource.
Id string `json:"id"`
// The JSON:API type for this request.
Type ConfluentResourceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceRequestData(attributes ConfluentResourceRequestAttributes, id string, typeVar ConfluentResourceType) *ConfluentResourceRequestData
NewConfluentResourceRequestData instantiates a new ConfluentResourceRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceRequestDataWithDefaults() *ConfluentResourceRequestData
NewConfluentResourceRequestDataWithDefaults instantiates a new ConfluentResourceRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceRequestData) GetAttributes() ConfluentResourceRequestAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentResourceRequestData) GetAttributesOk() (*ConfluentResourceRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestData) GetId() string
GetId returns the Id field value.
func (o *ConfluentResourceRequestData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestData) GetType() ConfluentResourceType
GetType returns the Type field value.
func (o *ConfluentResourceRequestData) GetTypeOk() (*ConfluentResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentResourceRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceRequestData) SetAttributes(v ConfluentResourceRequestAttributes)
SetAttributes sets field value.
func (o *ConfluentResourceRequestData) SetId(v string)
SetId sets field value.
func (o *ConfluentResourceRequestData) SetType(v ConfluentResourceType)
SetType sets field value.
func (o *ConfluentResourceRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceResponse Response schema when interacting with a Confluent resource.
type ConfluentResourceResponse struct {
// Confluent Cloud resource data.
Data *ConfluentResourceResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceResponse() *ConfluentResourceResponse
NewConfluentResourceResponse instantiates a new ConfluentResourceResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceResponseWithDefaults() *ConfluentResourceResponse
NewConfluentResourceResponseWithDefaults instantiates a new ConfluentResourceResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceResponse) GetData() ConfluentResourceResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ConfluentResourceResponse) GetDataOk() (*ConfluentResourceResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ConfluentResourceResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceResponse) SetData(v ConfluentResourceResponseData)
SetData gets a reference to the given ConfluentResourceResponseData and assigns it to the Data field.
func (o *ConfluentResourceResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceResponseAttributes Model representation of a Confluent Cloud resource.
type ConfluentResourceResponseAttributes struct {
// Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
EnableCustomMetrics *bool `json:"enable_custom_metrics,omitempty"`
// The ID associated with the Confluent resource.
Id *string `json:"id,omitempty"`
// The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
ResourceType string `json:"resource_type"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceResponseAttributes(resourceType string) *ConfluentResourceResponseAttributes
NewConfluentResourceResponseAttributes instantiates a new ConfluentResourceResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceResponseAttributesWithDefaults() *ConfluentResourceResponseAttributes
NewConfluentResourceResponseAttributesWithDefaults instantiates a new ConfluentResourceResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceResponseAttributes) GetEnableCustomMetrics() bool
GetEnableCustomMetrics returns the EnableCustomMetrics field value if set, zero value otherwise.
func (o *ConfluentResourceResponseAttributes) GetEnableCustomMetricsOk() (*bool, bool)
GetEnableCustomMetricsOk returns a tuple with the EnableCustomMetrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseAttributes) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *ConfluentResourceResponseAttributes) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value.
func (o *ConfluentResourceResponseAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentResourceResponseAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseAttributes) HasEnableCustomMetrics() bool
HasEnableCustomMetrics returns a boolean if a field has been set.
func (o *ConfluentResourceResponseAttributes) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ConfluentResourceResponseAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentResourceResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceResponseAttributes) SetEnableCustomMetrics(v bool)
SetEnableCustomMetrics gets a reference to the given bool and assigns it to the EnableCustomMetrics field.
func (o *ConfluentResourceResponseAttributes) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *ConfluentResourceResponseAttributes) SetResourceType(v string)
SetResourceType sets field value.
func (o *ConfluentResourceResponseAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentResourceResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceResponseData Confluent Cloud resource data.
type ConfluentResourceResponseData struct {
// Model representation of a Confluent Cloud resource.
Attributes ConfluentResourceResponseAttributes `json:"attributes"`
// The ID associated with the Confluent resource.
Id string `json:"id"`
// The JSON:API type for this request.
Type ConfluentResourceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceResponseData(attributes ConfluentResourceResponseAttributes, id string, typeVar ConfluentResourceType) *ConfluentResourceResponseData
NewConfluentResourceResponseData instantiates a new ConfluentResourceResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceResponseDataWithDefaults() *ConfluentResourceResponseData
NewConfluentResourceResponseDataWithDefaults instantiates a new ConfluentResourceResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceResponseData) GetAttributes() ConfluentResourceResponseAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentResourceResponseData) GetAttributesOk() (*ConfluentResourceResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseData) GetId() string
GetId returns the Id field value.
func (o *ConfluentResourceResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseData) GetType() ConfluentResourceType
GetType returns the Type field value.
func (o *ConfluentResourceResponseData) GetTypeOk() (*ConfluentResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentResourceResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceResponseData) SetAttributes(v ConfluentResourceResponseAttributes)
SetAttributes sets field value.
func (o *ConfluentResourceResponseData) SetId(v string)
SetId sets field value.
func (o *ConfluentResourceResponseData) SetType(v ConfluentResourceType)
SetType sets field value.
func (o *ConfluentResourceResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceType The JSON:API type for this request.
type ConfluentResourceType string
List of ConfluentResourceType.
const (
CONFLUENTRESOURCETYPE_CONFLUENT_CLOUD_RESOURCES ConfluentResourceType = "confluent-cloud-resources"
)
func NewConfluentResourceTypeFromValue(v string) (*ConfluentResourceType, error)
NewConfluentResourceTypeFromValue returns a pointer to a valid ConfluentResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ConfluentResourceType) GetAllowedValues() []ConfluentResourceType
GetAllowedValues reeturns the list of possible values.
func (v ConfluentResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ConfluentResourceType) Ptr() *ConfluentResourceType
Ptr returns reference to ConfluentResourceType value.
func (v *ConfluentResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ConfluentResourcesResponse Response schema when interacting with a list of Confluent resources.
type ConfluentResourcesResponse struct {
// The JSON:API data attribute.
Data []ConfluentResourceResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourcesResponse() *ConfluentResourcesResponse
NewConfluentResourcesResponse instantiates a new ConfluentResourcesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourcesResponseWithDefaults() *ConfluentResourcesResponse
NewConfluentResourcesResponseWithDefaults instantiates a new ConfluentResourcesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourcesResponse) GetData() []ConfluentResourceResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ConfluentResourcesResponse) GetDataOk() (*[]ConfluentResourceResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourcesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ConfluentResourcesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourcesResponse) SetData(v []ConfluentResourceResponseData)
SetData gets a reference to the given []ConfluentResourceResponseData and assigns it to the Data field.
func (o *ConfluentResourcesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ContentEncoding HTTP header used to compress the media-type.
type ContentEncoding string
List of ContentEncoding.
const (
CONTENTENCODING_IDENTITY ContentEncoding = "identity"
CONTENTENCODING_GZIP ContentEncoding = "gzip"
CONTENTENCODING_DEFLATE ContentEncoding = "deflate"
)
func NewContentEncodingFromValue(v string) (*ContentEncoding, error)
NewContentEncodingFromValue returns a pointer to a valid ContentEncoding for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ContentEncoding) GetAllowedValues() []ContentEncoding
GetAllowedValues reeturns the list of possible values.
func (v ContentEncoding) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ContentEncoding) Ptr() *ContentEncoding
Ptr returns reference to ContentEncoding value.
func (v *ContentEncoding) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CostByOrg Cost data.
type CostByOrg struct {
// Cost attributes data.
Attributes *CostByOrgAttributes `json:"attributes,omitempty"`
// Unique ID of the response.
Id *string `json:"id,omitempty"`
// Type of cost data.
Type *CostByOrgType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCostByOrg() *CostByOrg
NewCostByOrg instantiates a new CostByOrg object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCostByOrgWithDefaults() *CostByOrg
NewCostByOrgWithDefaults instantiates a new CostByOrg object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CostByOrg) GetAttributes() CostByOrgAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CostByOrg) GetAttributesOk() (*CostByOrgAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrg) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *CostByOrg) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrg) GetType() CostByOrgType
GetType returns the Type field value if set, zero value otherwise.
func (o *CostByOrg) GetTypeOk() (*CostByOrgType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrg) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CostByOrg) HasId() bool
HasId returns a boolean if a field has been set.
func (o *CostByOrg) HasType() bool
HasType returns a boolean if a field has been set.
func (o CostByOrg) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CostByOrg) SetAttributes(v CostByOrgAttributes)
SetAttributes gets a reference to the given CostByOrgAttributes and assigns it to the Attributes field.
func (o *CostByOrg) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *CostByOrg) SetType(v CostByOrgType)
SetType gets a reference to the given CostByOrgType and assigns it to the Type field.
func (o *CostByOrg) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CostByOrgAttributes Cost attributes data.
type CostByOrgAttributes struct {
// List of charges data reported for the requested month.
Charges []ChargebackBreakdown `json:"charges,omitempty"`
// The month requested.
Date *time.Time `json:"date,omitempty"`
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The organization public ID.
PublicId *string `json:"public_id,omitempty"`
// The region of the Datadog instance that the organization belongs to.
Region *string `json:"region,omitempty"`
// The total cost of products for the month.
TotalCost *float64 `json:"total_cost,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCostByOrgAttributes() *CostByOrgAttributes
NewCostByOrgAttributes instantiates a new CostByOrgAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCostByOrgAttributesWithDefaults() *CostByOrgAttributes
NewCostByOrgAttributesWithDefaults instantiates a new CostByOrgAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CostByOrgAttributes) GetCharges() []ChargebackBreakdown
GetCharges returns the Charges field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetChargesOk() (*[]ChargebackBreakdown, bool)
GetChargesOk returns a tuple with the Charges field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetDate() time.Time
GetDate returns the Date field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetDateOk() (*time.Time, bool)
GetDateOk returns a tuple with the Date field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetOrgName() string
GetOrgName returns the OrgName field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetOrgNameOk() (*string, bool)
GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetPublicId() string
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetPublicIdOk() (*string, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetRegion() string
GetRegion returns the Region field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetRegionOk() (*string, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetTotalCost() float64
GetTotalCost returns the TotalCost field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetTotalCostOk() (*float64, bool)
GetTotalCostOk returns a tuple with the TotalCost field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) HasCharges() bool
HasCharges returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasDate() bool
HasDate returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasOrgName() bool
HasOrgName returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasTotalCost() bool
HasTotalCost returns a boolean if a field has been set.
func (o CostByOrgAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CostByOrgAttributes) SetCharges(v []ChargebackBreakdown)
SetCharges gets a reference to the given []ChargebackBreakdown and assigns it to the Charges field.
func (o *CostByOrgAttributes) SetDate(v time.Time)
SetDate gets a reference to the given time.Time and assigns it to the Date field.
func (o *CostByOrgAttributes) SetOrgName(v string)
SetOrgName gets a reference to the given string and assigns it to the OrgName field.
func (o *CostByOrgAttributes) SetPublicId(v string)
SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *CostByOrgAttributes) SetRegion(v string)
SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *CostByOrgAttributes) SetTotalCost(v float64)
SetTotalCost gets a reference to the given float64 and assigns it to the TotalCost field.
func (o *CostByOrgAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CostByOrgResponse Chargeback Summary response.
type CostByOrgResponse struct {
// Response containing Chargeback Summary.
Data []CostByOrg `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCostByOrgResponse() *CostByOrgResponse
NewCostByOrgResponse instantiates a new CostByOrgResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCostByOrgResponseWithDefaults() *CostByOrgResponse
NewCostByOrgResponseWithDefaults instantiates a new CostByOrgResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CostByOrgResponse) GetData() []CostByOrg
GetData returns the Data field value if set, zero value otherwise.
func (o *CostByOrgResponse) GetDataOk() (*[]CostByOrg, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o CostByOrgResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CostByOrgResponse) SetData(v []CostByOrg)
SetData gets a reference to the given []CostByOrg and assigns it to the Data field.
func (o *CostByOrgResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CostByOrgType Type of cost data.
type CostByOrgType string
List of CostByOrgType.
const (
COSTBYORGTYPE_COST_BY_ORG CostByOrgType = "cost_by_org"
)
func NewCostByOrgTypeFromValue(v string) (*CostByOrgType, error)
NewCostByOrgTypeFromValue returns a pointer to a valid CostByOrgType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CostByOrgType) GetAllowedValues() []CostByOrgType
GetAllowedValues reeturns the list of possible values.
func (v CostByOrgType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CostByOrgType) Ptr() *CostByOrgType
Ptr returns reference to CostByOrgType value.
func (v *CostByOrgType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
Creator Creator of the object.
type Creator struct {
// Email of the creator.
Email *string `json:"email,omitempty"`
// Handle of the creator.
Handle *string `json:"handle,omitempty"`
// Name of the creator.
Name datadog.NullableString `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCreator() *Creator
NewCreator instantiates a new Creator object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCreatorWithDefaults() *Creator
NewCreatorWithDefaults instantiates a new Creator object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Creator) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *Creator) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Creator) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *Creator) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Creator) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Creator) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *Creator) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *Creator) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *Creator) HasName() bool
HasName returns a boolean if a field has been set.
func (o Creator) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Creator) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *Creator) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *Creator) SetName(v string)
SetName gets a reference to the given datadog.NullableString and assigns it to the Name field.
func (o *Creator) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil.
func (o *Creator) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *Creator) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil.
DashboardListAddItemsRequest Request containing a list of dashboards to add.
type DashboardListAddItemsRequest struct {
// List of dashboards to add the dashboard list.
Dashboards []DashboardListItemRequest `json:"dashboards,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListAddItemsRequest() *DashboardListAddItemsRequest
NewDashboardListAddItemsRequest instantiates a new DashboardListAddItemsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListAddItemsRequestWithDefaults() *DashboardListAddItemsRequest
NewDashboardListAddItemsRequestWithDefaults instantiates a new DashboardListAddItemsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListAddItemsRequest) GetDashboards() []DashboardListItemRequest
GetDashboards returns the Dashboards field value if set, zero value otherwise.
func (o *DashboardListAddItemsRequest) GetDashboardsOk() (*[]DashboardListItemRequest, bool)
GetDashboardsOk returns a tuple with the Dashboards field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListAddItemsRequest) HasDashboards() bool
HasDashboards returns a boolean if a field has been set.
func (o DashboardListAddItemsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListAddItemsRequest) SetDashboards(v []DashboardListItemRequest)
SetDashboards gets a reference to the given []DashboardListItemRequest and assigns it to the Dashboards field.
func (o *DashboardListAddItemsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListAddItemsResponse Response containing a list of added dashboards.
type DashboardListAddItemsResponse struct {
// List of dashboards added to the dashboard list.
AddedDashboardsToList []DashboardListItemResponse `json:"added_dashboards_to_list,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListAddItemsResponse() *DashboardListAddItemsResponse
NewDashboardListAddItemsResponse instantiates a new DashboardListAddItemsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListAddItemsResponseWithDefaults() *DashboardListAddItemsResponse
NewDashboardListAddItemsResponseWithDefaults instantiates a new DashboardListAddItemsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListAddItemsResponse) GetAddedDashboardsToList() []DashboardListItemResponse
GetAddedDashboardsToList returns the AddedDashboardsToList field value if set, zero value otherwise.
func (o *DashboardListAddItemsResponse) GetAddedDashboardsToListOk() (*[]DashboardListItemResponse, bool)
GetAddedDashboardsToListOk returns a tuple with the AddedDashboardsToList field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListAddItemsResponse) HasAddedDashboardsToList() bool
HasAddedDashboardsToList returns a boolean if a field has been set.
func (o DashboardListAddItemsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListAddItemsResponse) SetAddedDashboardsToList(v []DashboardListItemResponse)
SetAddedDashboardsToList gets a reference to the given []DashboardListItemResponse and assigns it to the AddedDashboardsToList field.
func (o *DashboardListAddItemsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListDeleteItemsRequest Request containing a list of dashboards to delete.
type DashboardListDeleteItemsRequest struct {
// List of dashboards to delete from the dashboard list.
Dashboards []DashboardListItemRequest `json:"dashboards,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListDeleteItemsRequest() *DashboardListDeleteItemsRequest
NewDashboardListDeleteItemsRequest instantiates a new DashboardListDeleteItemsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListDeleteItemsRequestWithDefaults() *DashboardListDeleteItemsRequest
NewDashboardListDeleteItemsRequestWithDefaults instantiates a new DashboardListDeleteItemsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListDeleteItemsRequest) GetDashboards() []DashboardListItemRequest
GetDashboards returns the Dashboards field value if set, zero value otherwise.
func (o *DashboardListDeleteItemsRequest) GetDashboardsOk() (*[]DashboardListItemRequest, bool)
GetDashboardsOk returns a tuple with the Dashboards field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListDeleteItemsRequest) HasDashboards() bool
HasDashboards returns a boolean if a field has been set.
func (o DashboardListDeleteItemsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListDeleteItemsRequest) SetDashboards(v []DashboardListItemRequest)
SetDashboards gets a reference to the given []DashboardListItemRequest and assigns it to the Dashboards field.
func (o *DashboardListDeleteItemsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListDeleteItemsResponse Response containing a list of deleted dashboards.
type DashboardListDeleteItemsResponse struct {
// List of dashboards deleted from the dashboard list.
DeletedDashboardsFromList []DashboardListItemResponse `json:"deleted_dashboards_from_list,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListDeleteItemsResponse() *DashboardListDeleteItemsResponse
NewDashboardListDeleteItemsResponse instantiates a new DashboardListDeleteItemsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListDeleteItemsResponseWithDefaults() *DashboardListDeleteItemsResponse
NewDashboardListDeleteItemsResponseWithDefaults instantiates a new DashboardListDeleteItemsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListDeleteItemsResponse) GetDeletedDashboardsFromList() []DashboardListItemResponse
GetDeletedDashboardsFromList returns the DeletedDashboardsFromList field value if set, zero value otherwise.
func (o *DashboardListDeleteItemsResponse) GetDeletedDashboardsFromListOk() (*[]DashboardListItemResponse, bool)
GetDeletedDashboardsFromListOk returns a tuple with the DeletedDashboardsFromList field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListDeleteItemsResponse) HasDeletedDashboardsFromList() bool
HasDeletedDashboardsFromList returns a boolean if a field has been set.
func (o DashboardListDeleteItemsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListDeleteItemsResponse) SetDeletedDashboardsFromList(v []DashboardListItemResponse)
SetDeletedDashboardsFromList gets a reference to the given []DashboardListItemResponse and assigns it to the DeletedDashboardsFromList field.
func (o *DashboardListDeleteItemsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListItem A dashboard within a list.
type DashboardListItem struct {
// Creator of the object.
Author *Creator `json:"author,omitempty"`
// Date of creation of the dashboard.
Created *time.Time `json:"created,omitempty"`
// URL to the icon of the dashboard.
Icon datadog.NullableString `json:"icon,omitempty"`
// ID of the dashboard.
Id string `json:"id"`
// The short name of the integration.
IntegrationId datadog.NullableString `json:"integration_id,omitempty"`
// Whether or not the dashboard is in the favorites.
IsFavorite *bool `json:"is_favorite,omitempty"`
// Whether or not the dashboard is read only.
IsReadOnly *bool `json:"is_read_only,omitempty"`
// Whether the dashboard is publicly shared or not.
IsShared *bool `json:"is_shared,omitempty"`
// Date of last edition of the dashboard.
Modified *time.Time `json:"modified,omitempty"`
// Popularity of the dashboard.
Popularity *int32 `json:"popularity,omitempty"`
// Title of the dashboard.
Title *string `json:"title,omitempty"`
// The type of the dashboard.
Type DashboardType `json:"type"`
// URL path to the dashboard.
Url *string `json:"url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListItem(id string, typeVar DashboardType) *DashboardListItem
NewDashboardListItem instantiates a new DashboardListItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListItemWithDefaults() *DashboardListItem
NewDashboardListItemWithDefaults instantiates a new DashboardListItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListItem) GetAuthor() Creator
GetAuthor returns the Author field value if set, zero value otherwise.
func (o *DashboardListItem) GetAuthorOk() (*Creator, bool)
GetAuthorOk returns a tuple with the Author field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *DashboardListItem) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetIcon() string
GetIcon returns the Icon field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DashboardListItem) GetIconOk() (*string, bool)
GetIconOk returns a tuple with the Icon field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DashboardListItem) GetId() string
GetId returns the Id field value.
func (o *DashboardListItem) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *DashboardListItem) GetIntegrationId() string
GetIntegrationId returns the IntegrationId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DashboardListItem) GetIntegrationIdOk() (*string, bool)
GetIntegrationIdOk returns a tuple with the IntegrationId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DashboardListItem) GetIsFavorite() bool
GetIsFavorite returns the IsFavorite field value if set, zero value otherwise.
func (o *DashboardListItem) GetIsFavoriteOk() (*bool, bool)
GetIsFavoriteOk returns a tuple with the IsFavorite field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetIsReadOnly() bool
GetIsReadOnly returns the IsReadOnly field value if set, zero value otherwise.
func (o *DashboardListItem) GetIsReadOnlyOk() (*bool, bool)
GetIsReadOnlyOk returns a tuple with the IsReadOnly field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetIsShared() bool
GetIsShared returns the IsShared field value if set, zero value otherwise.
func (o *DashboardListItem) GetIsSharedOk() (*bool, bool)
GetIsSharedOk returns a tuple with the IsShared field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *DashboardListItem) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetPopularity() int32
GetPopularity returns the Popularity field value if set, zero value otherwise.
func (o *DashboardListItem) GetPopularityOk() (*int32, bool)
GetPopularityOk returns a tuple with the Popularity field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *DashboardListItem) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetType() DashboardType
GetType returns the Type field value.
func (o *DashboardListItem) GetTypeOk() (*DashboardType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *DashboardListItem) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise.
func (o *DashboardListItem) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) HasAuthor() bool
HasAuthor returns a boolean if a field has been set.
func (o *DashboardListItem) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *DashboardListItem) HasIcon() bool
HasIcon returns a boolean if a field has been set.
func (o *DashboardListItem) HasIntegrationId() bool
HasIntegrationId returns a boolean if a field has been set.
func (o *DashboardListItem) HasIsFavorite() bool
HasIsFavorite returns a boolean if a field has been set.
func (o *DashboardListItem) HasIsReadOnly() bool
HasIsReadOnly returns a boolean if a field has been set.
func (o *DashboardListItem) HasIsShared() bool
HasIsShared returns a boolean if a field has been set.
func (o *DashboardListItem) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *DashboardListItem) HasPopularity() bool
HasPopularity returns a boolean if a field has been set.
func (o *DashboardListItem) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *DashboardListItem) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (o DashboardListItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListItem) SetAuthor(v Creator)
SetAuthor gets a reference to the given Creator and assigns it to the Author field.
func (o *DashboardListItem) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *DashboardListItem) SetIcon(v string)
SetIcon gets a reference to the given datadog.NullableString and assigns it to the Icon field.
func (o *DashboardListItem) SetIconNil()
SetIconNil sets the value for Icon to be an explicit nil.
func (o *DashboardListItem) SetId(v string)
SetId sets field value.
func (o *DashboardListItem) SetIntegrationId(v string)
SetIntegrationId gets a reference to the given datadog.NullableString and assigns it to the IntegrationId field.
func (o *DashboardListItem) SetIntegrationIdNil()
SetIntegrationIdNil sets the value for IntegrationId to be an explicit nil.
func (o *DashboardListItem) SetIsFavorite(v bool)
SetIsFavorite gets a reference to the given bool and assigns it to the IsFavorite field.
func (o *DashboardListItem) SetIsReadOnly(v bool)
SetIsReadOnly gets a reference to the given bool and assigns it to the IsReadOnly field.
func (o *DashboardListItem) SetIsShared(v bool)
SetIsShared gets a reference to the given bool and assigns it to the IsShared field.
func (o *DashboardListItem) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *DashboardListItem) SetPopularity(v int32)
SetPopularity gets a reference to the given int32 and assigns it to the Popularity field.
func (o *DashboardListItem) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *DashboardListItem) SetType(v DashboardType)
SetType sets field value.
func (o *DashboardListItem) SetUrl(v string)
SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *DashboardListItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DashboardListItem) UnsetIcon()
UnsetIcon ensures that no value is present for Icon, not even an explicit nil.
func (o *DashboardListItem) UnsetIntegrationId()
UnsetIntegrationId ensures that no value is present for IntegrationId, not even an explicit nil.
DashboardListItemRequest A dashboard within a list.
type DashboardListItemRequest struct {
// ID of the dashboard.
Id string `json:"id"`
// The type of the dashboard.
Type DashboardType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListItemRequest(id string, typeVar DashboardType) *DashboardListItemRequest
NewDashboardListItemRequest instantiates a new DashboardListItemRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListItemRequestWithDefaults() *DashboardListItemRequest
NewDashboardListItemRequestWithDefaults instantiates a new DashboardListItemRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListItemRequest) GetId() string
GetId returns the Id field value.
func (o *DashboardListItemRequest) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *DashboardListItemRequest) GetType() DashboardType
GetType returns the Type field value.
func (o *DashboardListItemRequest) GetTypeOk() (*DashboardType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o DashboardListItemRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListItemRequest) SetId(v string)
SetId sets field value.
func (o *DashboardListItemRequest) SetType(v DashboardType)
SetType sets field value.
func (o *DashboardListItemRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListItemResponse A dashboard within a list.
type DashboardListItemResponse struct {
// ID of the dashboard.
Id string `json:"id"`
// The type of the dashboard.
Type DashboardType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListItemResponse(id string, typeVar DashboardType) *DashboardListItemResponse
NewDashboardListItemResponse instantiates a new DashboardListItemResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListItemResponseWithDefaults() *DashboardListItemResponse
NewDashboardListItemResponseWithDefaults instantiates a new DashboardListItemResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListItemResponse) GetId() string
GetId returns the Id field value.
func (o *DashboardListItemResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *DashboardListItemResponse) GetType() DashboardType
GetType returns the Type field value.
func (o *DashboardListItemResponse) GetTypeOk() (*DashboardType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o DashboardListItemResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListItemResponse) SetId(v string)
SetId sets field value.
func (o *DashboardListItemResponse) SetType(v DashboardType)
SetType sets field value.
func (o *DashboardListItemResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListItems Dashboards within a list.
type DashboardListItems struct {
// List of dashboards in the dashboard list.
Dashboards []DashboardListItem `json:"dashboards"`
// Number of dashboards in the dashboard list.
Total *int64 `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListItems(dashboards []DashboardListItem) *DashboardListItems
NewDashboardListItems instantiates a new DashboardListItems object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListItemsWithDefaults() *DashboardListItems
NewDashboardListItemsWithDefaults instantiates a new DashboardListItems object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListItems) GetDashboards() []DashboardListItem
GetDashboards returns the Dashboards field value.
func (o *DashboardListItems) GetDashboardsOk() (*[]DashboardListItem, bool)
GetDashboardsOk returns a tuple with the Dashboards field value and a boolean to check if the value has been set.
func (o *DashboardListItems) GetTotal() int64
GetTotal returns the Total field value if set, zero value otherwise.
func (o *DashboardListItems) GetTotalOk() (*int64, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItems) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o DashboardListItems) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListItems) SetDashboards(v []DashboardListItem)
SetDashboards sets field value.
func (o *DashboardListItems) SetTotal(v int64)
SetTotal gets a reference to the given int64 and assigns it to the Total field.
func (o *DashboardListItems) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListUpdateItemsRequest Request containing the list of dashboards to update to.
type DashboardListUpdateItemsRequest struct {
// List of dashboards to update the dashboard list to.
Dashboards []DashboardListItemRequest `json:"dashboards,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListUpdateItemsRequest() *DashboardListUpdateItemsRequest
NewDashboardListUpdateItemsRequest instantiates a new DashboardListUpdateItemsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListUpdateItemsRequestWithDefaults() *DashboardListUpdateItemsRequest
NewDashboardListUpdateItemsRequestWithDefaults instantiates a new DashboardListUpdateItemsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListUpdateItemsRequest) GetDashboards() []DashboardListItemRequest
GetDashboards returns the Dashboards field value if set, zero value otherwise.
func (o *DashboardListUpdateItemsRequest) GetDashboardsOk() (*[]DashboardListItemRequest, bool)
GetDashboardsOk returns a tuple with the Dashboards field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListUpdateItemsRequest) HasDashboards() bool
HasDashboards returns a boolean if a field has been set.
func (o DashboardListUpdateItemsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListUpdateItemsRequest) SetDashboards(v []DashboardListItemRequest)
SetDashboards gets a reference to the given []DashboardListItemRequest and assigns it to the Dashboards field.
func (o *DashboardListUpdateItemsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListUpdateItemsResponse Response containing a list of updated dashboards.
type DashboardListUpdateItemsResponse struct {
// List of dashboards in the dashboard list.
Dashboards []DashboardListItemResponse `json:"dashboards,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListUpdateItemsResponse() *DashboardListUpdateItemsResponse
NewDashboardListUpdateItemsResponse instantiates a new DashboardListUpdateItemsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListUpdateItemsResponseWithDefaults() *DashboardListUpdateItemsResponse
NewDashboardListUpdateItemsResponseWithDefaults instantiates a new DashboardListUpdateItemsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListUpdateItemsResponse) GetDashboards() []DashboardListItemResponse
GetDashboards returns the Dashboards field value if set, zero value otherwise.
func (o *DashboardListUpdateItemsResponse) GetDashboardsOk() (*[]DashboardListItemResponse, bool)
GetDashboardsOk returns a tuple with the Dashboards field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListUpdateItemsResponse) HasDashboards() bool
HasDashboards returns a boolean if a field has been set.
func (o DashboardListUpdateItemsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListUpdateItemsResponse) SetDashboards(v []DashboardListItemResponse)
SetDashboards gets a reference to the given []DashboardListItemResponse and assigns it to the Dashboards field.
func (o *DashboardListUpdateItemsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListsApi service type
type DashboardListsApi datadog.Service
func NewDashboardListsApi(client *datadog.APIClient) *DashboardListsApi
NewDashboardListsApi Returns NewDashboardListsApi.
func (a *DashboardListsApi) CreateDashboardListItems(ctx _context.Context, dashboardListId int64, body DashboardListAddItemsRequest) (DashboardListAddItemsResponse, *_nethttp.Response, error)
CreateDashboardListItems Add Items to a Dashboard List. Add dashboards to an existing dashboard list.
func (a *DashboardListsApi) DeleteDashboardListItems(ctx _context.Context, dashboardListId int64, body DashboardListDeleteItemsRequest) (DashboardListDeleteItemsResponse, *_nethttp.Response, error)
DeleteDashboardListItems Delete items from a dashboard list. Delete dashboards from an existing dashboard list.
func (a *DashboardListsApi) GetDashboardListItems(ctx _context.Context, dashboardListId int64) (DashboardListItems, *_nethttp.Response, error)
GetDashboardListItems Get items of a Dashboard List. Fetch the dashboard list’s dashboard definitions.
func (a *DashboardListsApi) UpdateDashboardListItems(ctx _context.Context, dashboardListId int64, body DashboardListUpdateItemsRequest) (DashboardListUpdateItemsResponse, *_nethttp.Response, error)
UpdateDashboardListItems Update items of a dashboard list. Update dashboards of an existing dashboard list.
DashboardType The type of the dashboard.
type DashboardType string
List of DashboardType.
const (
DASHBOARDTYPE_CUSTOM_TIMEBOARD DashboardType = "custom_timeboard"
DASHBOARDTYPE_CUSTOM_SCREENBOARD DashboardType = "custom_screenboard"
DASHBOARDTYPE_INTEGRATION_SCREENBOARD DashboardType = "integration_screenboard"
DASHBOARDTYPE_INTEGRATION_TIMEBOARD DashboardType = "integration_timeboard"
DASHBOARDTYPE_HOST_TIMEBOARD DashboardType = "host_timeboard"
)
func NewDashboardTypeFromValue(v string) (*DashboardType, error)
NewDashboardTypeFromValue returns a pointer to a valid DashboardType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *DashboardType) GetAllowedValues() []DashboardType
GetAllowedValues reeturns the list of possible values.
func (v DashboardType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v DashboardType) Ptr() *DashboardType
Ptr returns reference to DashboardType value.
func (v *DashboardType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
DataScalarColumn A column containing the numerical results for a formula or query.
type DataScalarColumn struct {
// Metadata for the resulting numerical values.
Meta *ScalarMeta `json:"meta,omitempty"`
// The name referencing the formula or query for this column.
Name *string `json:"name,omitempty"`
// The type of column present.
Type *string `json:"type,omitempty"`
// The array of numerical values for one formula or query.
Values []float64 `json:"values,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDataScalarColumn() *DataScalarColumn
NewDataScalarColumn instantiates a new DataScalarColumn object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDataScalarColumnWithDefaults() *DataScalarColumn
NewDataScalarColumnWithDefaults instantiates a new DataScalarColumn object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DataScalarColumn) GetMeta() ScalarMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *DataScalarColumn) GetMetaOk() (*ScalarMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DataScalarColumn) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *DataScalarColumn) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DataScalarColumn) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *DataScalarColumn) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DataScalarColumn) GetValues() []float64
GetValues returns the Values field value if set, zero value otherwise.
func (o *DataScalarColumn) GetValuesOk() (*[]float64, bool)
GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DataScalarColumn) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o *DataScalarColumn) HasName() bool
HasName returns a boolean if a field has been set.
func (o *DataScalarColumn) HasType() bool
HasType returns a boolean if a field has been set.
func (o *DataScalarColumn) HasValues() bool
HasValues returns a boolean if a field has been set.
func (o DataScalarColumn) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DataScalarColumn) SetMeta(v ScalarMeta)
SetMeta gets a reference to the given ScalarMeta and assigns it to the Meta field.
func (o *DataScalarColumn) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *DataScalarColumn) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *DataScalarColumn) SetValues(v []float64)
SetValues gets a reference to the given []float64 and assigns it to the Values field.
func (o *DataScalarColumn) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DetailedFinding A single finding with with message and resource configuration.
type DetailedFinding struct {
// The JSON:API attributes of the detailed finding.
Attributes *DetailedFindingAttributes `json:"attributes,omitempty"`
// The unique ID for this finding.
Id *string `json:"id,omitempty"`
// The JSON:API type for findings that have the message and resource configuration.
Type *DetailedFindingType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDetailedFinding() *DetailedFinding
NewDetailedFinding instantiates a new DetailedFinding object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDetailedFindingWithDefaults() *DetailedFinding
NewDetailedFindingWithDefaults instantiates a new DetailedFinding object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DetailedFinding) GetAttributes() DetailedFindingAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *DetailedFinding) GetAttributesOk() (*DetailedFindingAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFinding) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *DetailedFinding) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFinding) GetType() DetailedFindingType
GetType returns the Type field value if set, zero value otherwise.
func (o *DetailedFinding) GetTypeOk() (*DetailedFindingType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFinding) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *DetailedFinding) HasId() bool
HasId returns a boolean if a field has been set.
func (o *DetailedFinding) HasType() bool
HasType returns a boolean if a field has been set.
func (o DetailedFinding) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DetailedFinding) SetAttributes(v DetailedFindingAttributes)
SetAttributes gets a reference to the given DetailedFindingAttributes and assigns it to the Attributes field.
func (o *DetailedFinding) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *DetailedFinding) SetType(v DetailedFindingType)
SetType gets a reference to the given DetailedFindingType and assigns it to the Type field.
func (o *DetailedFinding) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DetailedFindingAttributes The JSON:API attributes of the detailed finding.
type DetailedFindingAttributes struct {
// The evaluation of the finding.
Evaluation *FindingEvaluation `json:"evaluation,omitempty"`
// The date on which the evaluation for this finding changed (Unix ms).
EvaluationChangedAt *int64 `json:"evaluation_changed_at,omitempty"`
// The remediation message for this finding.
Message *string `json:"message,omitempty"`
// Information about the mute status of this finding.
Mute *FindingMute `json:"mute,omitempty"`
// The resource name of this finding.
Resource *string `json:"resource,omitempty"`
// The resource configuration for this finding.
ResourceConfiguration interface{} `json:"resource_configuration,omitempty"`
// The date on which the resource was discovered (Unix ms).
ResourceDiscoveryDate *int64 `json:"resource_discovery_date,omitempty"`
// The resource type of this finding.
ResourceType *string `json:"resource_type,omitempty"`
// The rule that triggered this finding.
Rule *FindingRule `json:"rule,omitempty"`
// The status of the finding.
Status *FindingStatus `json:"status,omitempty"`
// The tags associated with this finding.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDetailedFindingAttributes() *DetailedFindingAttributes
NewDetailedFindingAttributes instantiates a new DetailedFindingAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDetailedFindingAttributesWithDefaults() *DetailedFindingAttributes
NewDetailedFindingAttributesWithDefaults instantiates a new DetailedFindingAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DetailedFindingAttributes) GetEvaluation() FindingEvaluation
GetEvaluation returns the Evaluation field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetEvaluationChangedAt() int64
GetEvaluationChangedAt returns the EvaluationChangedAt field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetEvaluationChangedAtOk() (*int64, bool)
GetEvaluationChangedAtOk returns a tuple with the EvaluationChangedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetEvaluationOk() (*FindingEvaluation, bool)
GetEvaluationOk returns a tuple with the Evaluation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetMute() FindingMute
GetMute returns the Mute field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetMuteOk() (*FindingMute, bool)
GetMuteOk returns a tuple with the Mute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetResource() string
GetResource returns the Resource field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetResourceConfiguration() interface{}
GetResourceConfiguration returns the ResourceConfiguration field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetResourceConfigurationOk() (*interface{}, bool)
GetResourceConfigurationOk returns a tuple with the ResourceConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetResourceDiscoveryDate() int64
GetResourceDiscoveryDate returns the ResourceDiscoveryDate field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetResourceDiscoveryDateOk() (*int64, bool)
GetResourceDiscoveryDateOk returns a tuple with the ResourceDiscoveryDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetResourceOk() (*string, bool)
GetResourceOk returns a tuple with the Resource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetRule() FindingRule
GetRule returns the Rule field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetRuleOk() (*FindingRule, bool)
GetRuleOk returns a tuple with the Rule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetStatus() FindingStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetStatusOk() (*FindingStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *DetailedFindingAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DetailedFindingAttributes) HasEvaluation() bool
HasEvaluation returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasEvaluationChangedAt() bool
HasEvaluationChangedAt returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasMute() bool
HasMute returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasResource() bool
HasResource returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasResourceConfiguration() bool
HasResourceConfiguration returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasResourceDiscoveryDate() bool
HasResourceDiscoveryDate returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasResourceType() bool
HasResourceType returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasRule() bool
HasRule returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *DetailedFindingAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o DetailedFindingAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DetailedFindingAttributes) SetEvaluation(v FindingEvaluation)
SetEvaluation gets a reference to the given FindingEvaluation and assigns it to the Evaluation field.
func (o *DetailedFindingAttributes) SetEvaluationChangedAt(v int64)
SetEvaluationChangedAt gets a reference to the given int64 and assigns it to the EvaluationChangedAt field.
func (o *DetailedFindingAttributes) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *DetailedFindingAttributes) SetMute(v FindingMute)
SetMute gets a reference to the given FindingMute and assigns it to the Mute field.
func (o *DetailedFindingAttributes) SetResource(v string)
SetResource gets a reference to the given string and assigns it to the Resource field.
func (o *DetailedFindingAttributes) SetResourceConfiguration(v interface{})
SetResourceConfiguration gets a reference to the given interface{} and assigns it to the ResourceConfiguration field.
func (o *DetailedFindingAttributes) SetResourceDiscoveryDate(v int64)
SetResourceDiscoveryDate gets a reference to the given int64 and assigns it to the ResourceDiscoveryDate field.
func (o *DetailedFindingAttributes) SetResourceType(v string)
SetResourceType gets a reference to the given string and assigns it to the ResourceType field.
func (o *DetailedFindingAttributes) SetRule(v FindingRule)
SetRule gets a reference to the given FindingRule and assigns it to the Rule field.
func (o *DetailedFindingAttributes) SetStatus(v FindingStatus)
SetStatus gets a reference to the given FindingStatus and assigns it to the Status field.
func (o *DetailedFindingAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *DetailedFindingAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DetailedFindingType The JSON:API type for findings that have the message and resource configuration.
type DetailedFindingType string
List of DetailedFindingType.
const (
DETAILEDFINDINGTYPE_DETAILED_FINDING DetailedFindingType = "detailed_finding"
)
func NewDetailedFindingTypeFromValue(v string) (*DetailedFindingType, error)
NewDetailedFindingTypeFromValue returns a pointer to a valid DetailedFindingType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *DetailedFindingType) GetAllowedValues() []DetailedFindingType
GetAllowedValues reeturns the list of possible values.
func (v DetailedFindingType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v DetailedFindingType) Ptr() *DetailedFindingType
Ptr returns reference to DetailedFindingType value.
func (v *DetailedFindingType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
DowntimeCreateRequest Request for creating a downtime.
type DowntimeCreateRequest struct {
// Object to create a downtime.
Data DowntimeCreateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeCreateRequest(data DowntimeCreateRequestData) *DowntimeCreateRequest
NewDowntimeCreateRequest instantiates a new DowntimeCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeCreateRequestWithDefaults() *DowntimeCreateRequest
NewDowntimeCreateRequestWithDefaults instantiates a new DowntimeCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeCreateRequest) GetData() DowntimeCreateRequestData
GetData returns the Data field value.
func (o *DowntimeCreateRequest) GetDataOk() (*DowntimeCreateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o DowntimeCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeCreateRequest) SetData(v DowntimeCreateRequestData)
SetData sets field value.
func (o *DowntimeCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeCreateRequestAttributes Downtime details.
type DowntimeCreateRequestAttributes struct {
// The timezone in which to display the downtime's start and end times in Datadog applications. This is not used
// as an offset for scheduling.
DisplayTimezone datadog.NullableString `json:"display_timezone,omitempty"`
// A message to include with notifications for this downtime. Email notifications can be sent to specific users
// by using the same `@username` notation as events.
Message datadog.NullableString `json:"message,omitempty"`
// Monitor identifier for the downtime.
MonitorIdentifier DowntimeMonitorIdentifier `json:"monitor_identifier"`
// If the first recovery notification during a downtime should be muted.
MuteFirstRecoveryNotification *bool `json:"mute_first_recovery_notification,omitempty"`
// States that will trigger a monitor notification when the `notify_end_types` action occurs.
NotifyEndStates []DowntimeNotifyEndStateTypes `json:"notify_end_states,omitempty"`
// Actions that will trigger a monitor notification if the downtime is in the `notify_end_types` state.
NotifyEndTypes []DowntimeNotifyEndStateActions `json:"notify_end_types,omitempty"`
// Schedule for the downtime.
Schedule *DowntimeScheduleCreateRequest `json:"schedule,omitempty"`
// The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/).
Scope string `json:"scope"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeCreateRequestAttributes(monitorIdentifier DowntimeMonitorIdentifier, scope string) *DowntimeCreateRequestAttributes
NewDowntimeCreateRequestAttributes instantiates a new DowntimeCreateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeCreateRequestAttributesWithDefaults() *DowntimeCreateRequestAttributes
NewDowntimeCreateRequestAttributesWithDefaults instantiates a new DowntimeCreateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeCreateRequestAttributes) GetDisplayTimezone() string
GetDisplayTimezone returns the DisplayTimezone field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeCreateRequestAttributes) GetDisplayTimezoneOk() (*string, bool)
GetDisplayTimezoneOk returns a tuple with the DisplayTimezone field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeCreateRequestAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeCreateRequestAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeCreateRequestAttributes) GetMonitorIdentifier() DowntimeMonitorIdentifier
GetMonitorIdentifier returns the MonitorIdentifier field value.
func (o *DowntimeCreateRequestAttributes) GetMonitorIdentifierOk() (*DowntimeMonitorIdentifier, bool)
GetMonitorIdentifierOk returns a tuple with the MonitorIdentifier field value and a boolean to check if the value has been set.
func (o *DowntimeCreateRequestAttributes) GetMuteFirstRecoveryNotification() bool
GetMuteFirstRecoveryNotification returns the MuteFirstRecoveryNotification field value if set, zero value otherwise.
func (o *DowntimeCreateRequestAttributes) GetMuteFirstRecoveryNotificationOk() (*bool, bool)
GetMuteFirstRecoveryNotificationOk returns a tuple with the MuteFirstRecoveryNotification field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeCreateRequestAttributes) GetNotifyEndStates() []DowntimeNotifyEndStateTypes
GetNotifyEndStates returns the NotifyEndStates field value if set, zero value otherwise.
func (o *DowntimeCreateRequestAttributes) GetNotifyEndStatesOk() (*[]DowntimeNotifyEndStateTypes, bool)
GetNotifyEndStatesOk returns a tuple with the NotifyEndStates field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeCreateRequestAttributes) GetNotifyEndTypes() []DowntimeNotifyEndStateActions
GetNotifyEndTypes returns the NotifyEndTypes field value if set, zero value otherwise.
func (o *DowntimeCreateRequestAttributes) GetNotifyEndTypesOk() (*[]DowntimeNotifyEndStateActions, bool)
GetNotifyEndTypesOk returns a tuple with the NotifyEndTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeCreateRequestAttributes) GetSchedule() DowntimeScheduleCreateRequest
GetSchedule returns the Schedule field value if set, zero value otherwise.
func (o *DowntimeCreateRequestAttributes) GetScheduleOk() (*DowntimeScheduleCreateRequest, bool)
GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeCreateRequestAttributes) GetScope() string
GetScope returns the Scope field value.
func (o *DowntimeCreateRequestAttributes) GetScopeOk() (*string, bool)
GetScopeOk returns a tuple with the Scope field value and a boolean to check if the value has been set.
func (o *DowntimeCreateRequestAttributes) HasDisplayTimezone() bool
HasDisplayTimezone returns a boolean if a field has been set.
func (o *DowntimeCreateRequestAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *DowntimeCreateRequestAttributes) HasMuteFirstRecoveryNotification() bool
HasMuteFirstRecoveryNotification returns a boolean if a field has been set.
func (o *DowntimeCreateRequestAttributes) HasNotifyEndStates() bool
HasNotifyEndStates returns a boolean if a field has been set.
func (o *DowntimeCreateRequestAttributes) HasNotifyEndTypes() bool
HasNotifyEndTypes returns a boolean if a field has been set.
func (o *DowntimeCreateRequestAttributes) HasSchedule() bool
HasSchedule returns a boolean if a field has been set.
func (o DowntimeCreateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeCreateRequestAttributes) SetDisplayTimezone(v string)
SetDisplayTimezone gets a reference to the given datadog.NullableString and assigns it to the DisplayTimezone field.
func (o *DowntimeCreateRequestAttributes) SetDisplayTimezoneNil()
SetDisplayTimezoneNil sets the value for DisplayTimezone to be an explicit nil.
func (o *DowntimeCreateRequestAttributes) SetMessage(v string)
SetMessage gets a reference to the given datadog.NullableString and assigns it to the Message field.
func (o *DowntimeCreateRequestAttributes) SetMessageNil()
SetMessageNil sets the value for Message to be an explicit nil.
func (o *DowntimeCreateRequestAttributes) SetMonitorIdentifier(v DowntimeMonitorIdentifier)
SetMonitorIdentifier sets field value.
func (o *DowntimeCreateRequestAttributes) SetMuteFirstRecoveryNotification(v bool)
SetMuteFirstRecoveryNotification gets a reference to the given bool and assigns it to the MuteFirstRecoveryNotification field.
func (o *DowntimeCreateRequestAttributes) SetNotifyEndStates(v []DowntimeNotifyEndStateTypes)
SetNotifyEndStates gets a reference to the given []DowntimeNotifyEndStateTypes and assigns it to the NotifyEndStates field.
func (o *DowntimeCreateRequestAttributes) SetNotifyEndTypes(v []DowntimeNotifyEndStateActions)
SetNotifyEndTypes gets a reference to the given []DowntimeNotifyEndStateActions and assigns it to the NotifyEndTypes field.
func (o *DowntimeCreateRequestAttributes) SetSchedule(v DowntimeScheduleCreateRequest)
SetSchedule gets a reference to the given DowntimeScheduleCreateRequest and assigns it to the Schedule field.
func (o *DowntimeCreateRequestAttributes) SetScope(v string)
SetScope sets field value.
func (o *DowntimeCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeCreateRequestAttributes) UnsetDisplayTimezone()
UnsetDisplayTimezone ensures that no value is present for DisplayTimezone, not even an explicit nil.
func (o *DowntimeCreateRequestAttributes) UnsetMessage()
UnsetMessage ensures that no value is present for Message, not even an explicit nil.
DowntimeCreateRequestData Object to create a downtime.
type DowntimeCreateRequestData struct {
// Downtime details.
Attributes DowntimeCreateRequestAttributes `json:"attributes"`
// Downtime resource type.
Type DowntimeResourceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeCreateRequestData(attributes DowntimeCreateRequestAttributes, typeVar DowntimeResourceType) *DowntimeCreateRequestData
NewDowntimeCreateRequestData instantiates a new DowntimeCreateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeCreateRequestDataWithDefaults() *DowntimeCreateRequestData
NewDowntimeCreateRequestDataWithDefaults instantiates a new DowntimeCreateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeCreateRequestData) GetAttributes() DowntimeCreateRequestAttributes
GetAttributes returns the Attributes field value.
func (o *DowntimeCreateRequestData) GetAttributesOk() (*DowntimeCreateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *DowntimeCreateRequestData) GetType() DowntimeResourceType
GetType returns the Type field value.
func (o *DowntimeCreateRequestData) GetTypeOk() (*DowntimeResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o DowntimeCreateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeCreateRequestData) SetAttributes(v DowntimeCreateRequestAttributes)
SetAttributes sets field value.
func (o *DowntimeCreateRequestData) SetType(v DowntimeResourceType)
SetType sets field value.
func (o *DowntimeCreateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeIncludedMonitorType Monitor resource type.
type DowntimeIncludedMonitorType string
List of DowntimeIncludedMonitorType.
const (
DOWNTIMEINCLUDEDMONITORTYPE_MONITORS DowntimeIncludedMonitorType = "monitors"
)
func NewDowntimeIncludedMonitorTypeFromValue(v string) (*DowntimeIncludedMonitorType, error)
NewDowntimeIncludedMonitorTypeFromValue returns a pointer to a valid DowntimeIncludedMonitorType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *DowntimeIncludedMonitorType) GetAllowedValues() []DowntimeIncludedMonitorType
GetAllowedValues reeturns the list of possible values.
func (v DowntimeIncludedMonitorType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v DowntimeIncludedMonitorType) Ptr() *DowntimeIncludedMonitorType
Ptr returns reference to DowntimeIncludedMonitorType value.
func (v *DowntimeIncludedMonitorType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
DowntimeMeta Pagination metadata returned by the API.
type DowntimeMeta struct {
// Object containing the total filtered count.
Page *DowntimeMetaPage `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeMeta() *DowntimeMeta
NewDowntimeMeta instantiates a new DowntimeMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeMetaWithDefaults() *DowntimeMeta
NewDowntimeMetaWithDefaults instantiates a new DowntimeMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeMeta) GetPage() DowntimeMetaPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *DowntimeMeta) GetPageOk() (*DowntimeMetaPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeMeta) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o DowntimeMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeMeta) SetPage(v DowntimeMetaPage)
SetPage gets a reference to the given DowntimeMetaPage and assigns it to the Page field.
func (o *DowntimeMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeMetaPage Object containing the total filtered count.
type DowntimeMetaPage struct {
// Total count of elements matched by the filter.
TotalFilteredCount *int64 `json:"total_filtered_count,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeMetaPage() *DowntimeMetaPage
NewDowntimeMetaPage instantiates a new DowntimeMetaPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeMetaPageWithDefaults() *DowntimeMetaPage
NewDowntimeMetaPageWithDefaults instantiates a new DowntimeMetaPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeMetaPage) GetTotalFilteredCount() int64
GetTotalFilteredCount returns the TotalFilteredCount field value if set, zero value otherwise.
func (o *DowntimeMetaPage) GetTotalFilteredCountOk() (*int64, bool)
GetTotalFilteredCountOk returns a tuple with the TotalFilteredCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeMetaPage) HasTotalFilteredCount() bool
HasTotalFilteredCount returns a boolean if a field has been set.
func (o DowntimeMetaPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeMetaPage) SetTotalFilteredCount(v int64)
SetTotalFilteredCount gets a reference to the given int64 and assigns it to the TotalFilteredCount field.
func (o *DowntimeMetaPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeMonitorIdentifier - Monitor identifier for the downtime.
type DowntimeMonitorIdentifier struct {
DowntimeMonitorIdentifierId *DowntimeMonitorIdentifierId
DowntimeMonitorIdentifierTags *DowntimeMonitorIdentifierTags
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func DowntimeMonitorIdentifierIdAsDowntimeMonitorIdentifier(v *DowntimeMonitorIdentifierId) DowntimeMonitorIdentifier
DowntimeMonitorIdentifierIdAsDowntimeMonitorIdentifier is a convenience function that returns DowntimeMonitorIdentifierId wrapped in DowntimeMonitorIdentifier.
func DowntimeMonitorIdentifierTagsAsDowntimeMonitorIdentifier(v *DowntimeMonitorIdentifierTags) DowntimeMonitorIdentifier
DowntimeMonitorIdentifierTagsAsDowntimeMonitorIdentifier is a convenience function that returns DowntimeMonitorIdentifierTags wrapped in DowntimeMonitorIdentifier.
func (obj *DowntimeMonitorIdentifier) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj DowntimeMonitorIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *DowntimeMonitorIdentifier) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
DowntimeMonitorIdentifierId Object of the monitor identifier.
type DowntimeMonitorIdentifierId struct {
// ID of the monitor to prevent notifications.
MonitorId int64 `json:"monitor_id"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeMonitorIdentifierId(monitorId int64) *DowntimeMonitorIdentifierId
NewDowntimeMonitorIdentifierId instantiates a new DowntimeMonitorIdentifierId object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeMonitorIdentifierIdWithDefaults() *DowntimeMonitorIdentifierId
NewDowntimeMonitorIdentifierIdWithDefaults instantiates a new DowntimeMonitorIdentifierId object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeMonitorIdentifierId) GetMonitorId() int64
GetMonitorId returns the MonitorId field value.
func (o *DowntimeMonitorIdentifierId) GetMonitorIdOk() (*int64, bool)
GetMonitorIdOk returns a tuple with the MonitorId field value and a boolean to check if the value has been set.
func (o DowntimeMonitorIdentifierId) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeMonitorIdentifierId) SetMonitorId(v int64)
SetMonitorId sets field value.
func (o *DowntimeMonitorIdentifierId) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeMonitorIdentifierTags Object of the monitor tags.
type DowntimeMonitorIdentifierTags struct {
// A list of monitor tags. For example, tags that are applied directly to monitors,
// not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies.
// The resulting downtime applies to monitors that match **all** provided monitor tags. Setting `monitor_tags`
// to `[*]` configures the downtime to mute all monitors for the given scope.
MonitorTags []string `json:"monitor_tags"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeMonitorIdentifierTags(monitorTags []string) *DowntimeMonitorIdentifierTags
NewDowntimeMonitorIdentifierTags instantiates a new DowntimeMonitorIdentifierTags object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeMonitorIdentifierTagsWithDefaults() *DowntimeMonitorIdentifierTags
NewDowntimeMonitorIdentifierTagsWithDefaults instantiates a new DowntimeMonitorIdentifierTags object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeMonitorIdentifierTags) GetMonitorTags() []string
GetMonitorTags returns the MonitorTags field value.
func (o *DowntimeMonitorIdentifierTags) GetMonitorTagsOk() (*[]string, bool)
GetMonitorTagsOk returns a tuple with the MonitorTags field value and a boolean to check if the value has been set.
func (o DowntimeMonitorIdentifierTags) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeMonitorIdentifierTags) SetMonitorTags(v []string)
SetMonitorTags sets field value.
func (o *DowntimeMonitorIdentifierTags) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeMonitorIncludedAttributes Attributes of the monitor identified by the downtime.
type DowntimeMonitorIncludedAttributes struct {
// The name of the monitor identified by the downtime.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeMonitorIncludedAttributes() *DowntimeMonitorIncludedAttributes
NewDowntimeMonitorIncludedAttributes instantiates a new DowntimeMonitorIncludedAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeMonitorIncludedAttributesWithDefaults() *DowntimeMonitorIncludedAttributes
NewDowntimeMonitorIncludedAttributesWithDefaults instantiates a new DowntimeMonitorIncludedAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeMonitorIncludedAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *DowntimeMonitorIncludedAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeMonitorIncludedAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o DowntimeMonitorIncludedAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeMonitorIncludedAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *DowntimeMonitorIncludedAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeMonitorIncludedItem Information about the monitor identified by the downtime.
type DowntimeMonitorIncludedItem struct {
// Attributes of the monitor identified by the downtime.
Attributes *DowntimeMonitorIncludedAttributes `json:"attributes,omitempty"`
// ID of the monitor identified by the downtime.
Id *int64 `json:"id,omitempty"`
// Monitor resource type.
Type *DowntimeIncludedMonitorType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeMonitorIncludedItem() *DowntimeMonitorIncludedItem
NewDowntimeMonitorIncludedItem instantiates a new DowntimeMonitorIncludedItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeMonitorIncludedItemWithDefaults() *DowntimeMonitorIncludedItem
NewDowntimeMonitorIncludedItemWithDefaults instantiates a new DowntimeMonitorIncludedItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeMonitorIncludedItem) GetAttributes() DowntimeMonitorIncludedAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *DowntimeMonitorIncludedItem) GetAttributesOk() (*DowntimeMonitorIncludedAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeMonitorIncludedItem) GetId() int64
GetId returns the Id field value if set, zero value otherwise.
func (o *DowntimeMonitorIncludedItem) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeMonitorIncludedItem) GetType() DowntimeIncludedMonitorType
GetType returns the Type field value if set, zero value otherwise.
func (o *DowntimeMonitorIncludedItem) GetTypeOk() (*DowntimeIncludedMonitorType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeMonitorIncludedItem) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *DowntimeMonitorIncludedItem) HasId() bool
HasId returns a boolean if a field has been set.
func (o *DowntimeMonitorIncludedItem) HasType() bool
HasType returns a boolean if a field has been set.
func (o DowntimeMonitorIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeMonitorIncludedItem) SetAttributes(v DowntimeMonitorIncludedAttributes)
SetAttributes gets a reference to the given DowntimeMonitorIncludedAttributes and assigns it to the Attributes field.
func (o *DowntimeMonitorIncludedItem) SetId(v int64)
SetId gets a reference to the given int64 and assigns it to the Id field.
func (o *DowntimeMonitorIncludedItem) SetType(v DowntimeIncludedMonitorType)
SetType gets a reference to the given DowntimeIncludedMonitorType and assigns it to the Type field.
func (o *DowntimeMonitorIncludedItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeNotifyEndStateActions Action that will trigger a monitor notification if the downtime is in the `notify_end_types` state.
type DowntimeNotifyEndStateActions string
List of DowntimeNotifyEndStateActions.
const (
DOWNTIMENOTIFYENDSTATEACTIONS_CANCELED DowntimeNotifyEndStateActions = "canceled"
DOWNTIMENOTIFYENDSTATEACTIONS_EXPIRED DowntimeNotifyEndStateActions = "expired"
)
func NewDowntimeNotifyEndStateActionsFromValue(v string) (*DowntimeNotifyEndStateActions, error)
NewDowntimeNotifyEndStateActionsFromValue returns a pointer to a valid DowntimeNotifyEndStateActions for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *DowntimeNotifyEndStateActions) GetAllowedValues() []DowntimeNotifyEndStateActions
GetAllowedValues reeturns the list of possible values.
func (v DowntimeNotifyEndStateActions) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v DowntimeNotifyEndStateActions) Ptr() *DowntimeNotifyEndStateActions
Ptr returns reference to DowntimeNotifyEndStateActions value.
func (v *DowntimeNotifyEndStateActions) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
DowntimeNotifyEndStateTypes State that will trigger a monitor notification when the `notify_end_types` action occurs.
type DowntimeNotifyEndStateTypes string
List of DowntimeNotifyEndStateTypes.
const (
DOWNTIMENOTIFYENDSTATETYPES_ALERT DowntimeNotifyEndStateTypes = "alert"
DOWNTIMENOTIFYENDSTATETYPES_NO_DATA DowntimeNotifyEndStateTypes = "no data"
DOWNTIMENOTIFYENDSTATETYPES_WARN DowntimeNotifyEndStateTypes = "warn"
)
func NewDowntimeNotifyEndStateTypesFromValue(v string) (*DowntimeNotifyEndStateTypes, error)
NewDowntimeNotifyEndStateTypesFromValue returns a pointer to a valid DowntimeNotifyEndStateTypes for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *DowntimeNotifyEndStateTypes) GetAllowedValues() []DowntimeNotifyEndStateTypes
GetAllowedValues reeturns the list of possible values.
func (v DowntimeNotifyEndStateTypes) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v DowntimeNotifyEndStateTypes) Ptr() *DowntimeNotifyEndStateTypes
Ptr returns reference to DowntimeNotifyEndStateTypes value.
func (v *DowntimeNotifyEndStateTypes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
DowntimeRelationships All relationships associated with downtime.
type DowntimeRelationships struct {
// The user who created the downtime.
CreatedBy *DowntimeRelationshipsCreatedBy `json:"created_by,omitempty"`
// The monitor identified by the downtime.
Monitor *DowntimeRelationshipsMonitor `json:"monitor,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeRelationships() *DowntimeRelationships
NewDowntimeRelationships instantiates a new DowntimeRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeRelationshipsWithDefaults() *DowntimeRelationships
NewDowntimeRelationshipsWithDefaults instantiates a new DowntimeRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeRelationships) GetCreatedBy() DowntimeRelationshipsCreatedBy
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *DowntimeRelationships) GetCreatedByOk() (*DowntimeRelationshipsCreatedBy, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeRelationships) GetMonitor() DowntimeRelationshipsMonitor
GetMonitor returns the Monitor field value if set, zero value otherwise.
func (o *DowntimeRelationships) GetMonitorOk() (*DowntimeRelationshipsMonitor, bool)
GetMonitorOk returns a tuple with the Monitor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeRelationships) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *DowntimeRelationships) HasMonitor() bool
HasMonitor returns a boolean if a field has been set.
func (o DowntimeRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeRelationships) SetCreatedBy(v DowntimeRelationshipsCreatedBy)
SetCreatedBy gets a reference to the given DowntimeRelationshipsCreatedBy and assigns it to the CreatedBy field.
func (o *DowntimeRelationships) SetMonitor(v DowntimeRelationshipsMonitor)
SetMonitor gets a reference to the given DowntimeRelationshipsMonitor and assigns it to the Monitor field.
func (o *DowntimeRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeRelationshipsCreatedBy The user who created the downtime.
type DowntimeRelationshipsCreatedBy struct {
// Data for the user who created the downtime.
Data NullableDowntimeRelationshipsCreatedByData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeRelationshipsCreatedBy() *DowntimeRelationshipsCreatedBy
NewDowntimeRelationshipsCreatedBy instantiates a new DowntimeRelationshipsCreatedBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeRelationshipsCreatedByWithDefaults() *DowntimeRelationshipsCreatedBy
NewDowntimeRelationshipsCreatedByWithDefaults instantiates a new DowntimeRelationshipsCreatedBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeRelationshipsCreatedBy) GetData() DowntimeRelationshipsCreatedByData
GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeRelationshipsCreatedBy) GetDataOk() (*DowntimeRelationshipsCreatedByData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeRelationshipsCreatedBy) HasData() bool
HasData returns a boolean if a field has been set.
func (o DowntimeRelationshipsCreatedBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeRelationshipsCreatedBy) SetData(v DowntimeRelationshipsCreatedByData)
SetData gets a reference to the given NullableDowntimeRelationshipsCreatedByData and assigns it to the Data field.
func (o *DowntimeRelationshipsCreatedBy) SetDataNil()
SetDataNil sets the value for Data to be an explicit nil.
func (o *DowntimeRelationshipsCreatedBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeRelationshipsCreatedBy) UnsetData()
UnsetData ensures that no value is present for Data, not even an explicit nil.
DowntimeRelationshipsCreatedByData Data for the user who created the downtime.
type DowntimeRelationshipsCreatedByData struct {
// User ID of the downtime creator.
Id *string `json:"id,omitempty"`
// Users resource type.
Type *UsersType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeRelationshipsCreatedByData() *DowntimeRelationshipsCreatedByData
NewDowntimeRelationshipsCreatedByData instantiates a new DowntimeRelationshipsCreatedByData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeRelationshipsCreatedByDataWithDefaults() *DowntimeRelationshipsCreatedByData
NewDowntimeRelationshipsCreatedByDataWithDefaults instantiates a new DowntimeRelationshipsCreatedByData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeRelationshipsCreatedByData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *DowntimeRelationshipsCreatedByData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeRelationshipsCreatedByData) GetType() UsersType
GetType returns the Type field value if set, zero value otherwise.
func (o *DowntimeRelationshipsCreatedByData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeRelationshipsCreatedByData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *DowntimeRelationshipsCreatedByData) HasType() bool
HasType returns a boolean if a field has been set.
func (o DowntimeRelationshipsCreatedByData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeRelationshipsCreatedByData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *DowntimeRelationshipsCreatedByData) SetType(v UsersType)
SetType gets a reference to the given UsersType and assigns it to the Type field.
func (o *DowntimeRelationshipsCreatedByData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeRelationshipsMonitor The monitor identified by the downtime.
type DowntimeRelationshipsMonitor struct {
// Data for the monitor.
Data NullableDowntimeRelationshipsMonitorData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeRelationshipsMonitor() *DowntimeRelationshipsMonitor
NewDowntimeRelationshipsMonitor instantiates a new DowntimeRelationshipsMonitor object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeRelationshipsMonitorWithDefaults() *DowntimeRelationshipsMonitor
NewDowntimeRelationshipsMonitorWithDefaults instantiates a new DowntimeRelationshipsMonitor object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeRelationshipsMonitor) GetData() DowntimeRelationshipsMonitorData
GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeRelationshipsMonitor) GetDataOk() (*DowntimeRelationshipsMonitorData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeRelationshipsMonitor) HasData() bool
HasData returns a boolean if a field has been set.
func (o DowntimeRelationshipsMonitor) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeRelationshipsMonitor) SetData(v DowntimeRelationshipsMonitorData)
SetData gets a reference to the given NullableDowntimeRelationshipsMonitorData and assigns it to the Data field.
func (o *DowntimeRelationshipsMonitor) SetDataNil()
SetDataNil sets the value for Data to be an explicit nil.
func (o *DowntimeRelationshipsMonitor) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeRelationshipsMonitor) UnsetData()
UnsetData ensures that no value is present for Data, not even an explicit nil.
DowntimeRelationshipsMonitorData Data for the monitor.
type DowntimeRelationshipsMonitorData struct {
// Monitor ID of the downtime.
Id *int64 `json:"id,omitempty"`
// Monitor resource type.
Type *DowntimeIncludedMonitorType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeRelationshipsMonitorData() *DowntimeRelationshipsMonitorData
NewDowntimeRelationshipsMonitorData instantiates a new DowntimeRelationshipsMonitorData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeRelationshipsMonitorDataWithDefaults() *DowntimeRelationshipsMonitorData
NewDowntimeRelationshipsMonitorDataWithDefaults instantiates a new DowntimeRelationshipsMonitorData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeRelationshipsMonitorData) GetId() int64
GetId returns the Id field value if set, zero value otherwise.
func (o *DowntimeRelationshipsMonitorData) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeRelationshipsMonitorData) GetType() DowntimeIncludedMonitorType
GetType returns the Type field value if set, zero value otherwise.
func (o *DowntimeRelationshipsMonitorData) GetTypeOk() (*DowntimeIncludedMonitorType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeRelationshipsMonitorData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *DowntimeRelationshipsMonitorData) HasType() bool
HasType returns a boolean if a field has been set.
func (o DowntimeRelationshipsMonitorData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeRelationshipsMonitorData) SetId(v int64)
SetId gets a reference to the given int64 and assigns it to the Id field.
func (o *DowntimeRelationshipsMonitorData) SetType(v DowntimeIncludedMonitorType)
SetType gets a reference to the given DowntimeIncludedMonitorType and assigns it to the Type field.
func (o *DowntimeRelationshipsMonitorData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeResourceType Downtime resource type.
type DowntimeResourceType string
List of DowntimeResourceType.
const (
DOWNTIMERESOURCETYPE_DOWNTIME DowntimeResourceType = "downtime"
)
func NewDowntimeResourceTypeFromValue(v string) (*DowntimeResourceType, error)
NewDowntimeResourceTypeFromValue returns a pointer to a valid DowntimeResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *DowntimeResourceType) GetAllowedValues() []DowntimeResourceType
GetAllowedValues reeturns the list of possible values.
func (v DowntimeResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v DowntimeResourceType) Ptr() *DowntimeResourceType
Ptr returns reference to DowntimeResourceType value.
func (v *DowntimeResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
DowntimeResponse Downtiming gives you greater control over monitor notifications by allowing you to globally exclude scopes from alerting. Downtime settings, which can be scheduled with start and end times, prevent all alerting related to specified Datadog tags.
type DowntimeResponse struct {
// Downtime data.
Data *DowntimeResponseData `json:"data,omitempty"`
// Array of objects related to the downtime that the user requested.
Included []DowntimeResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeResponse() *DowntimeResponse
NewDowntimeResponse instantiates a new DowntimeResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeResponseWithDefaults() *DowntimeResponse
NewDowntimeResponseWithDefaults instantiates a new DowntimeResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeResponse) GetData() DowntimeResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *DowntimeResponse) GetDataOk() (*DowntimeResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponse) GetIncluded() []DowntimeResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *DowntimeResponse) GetIncludedOk() (*[]DowntimeResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *DowntimeResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o DowntimeResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeResponse) SetData(v DowntimeResponseData)
SetData gets a reference to the given DowntimeResponseData and assigns it to the Data field.
func (o *DowntimeResponse) SetIncluded(v []DowntimeResponseIncludedItem)
SetIncluded gets a reference to the given []DowntimeResponseIncludedItem and assigns it to the Included field.
func (o *DowntimeResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeResponseAttributes Downtime details.
type DowntimeResponseAttributes struct {
// Time that the downtime was canceled.
Canceled datadog.NullableTime `json:"canceled,omitempty"`
// Creation time of the downtime.
Created *time.Time `json:"created,omitempty"`
// The timezone in which to display the downtime's start and end times in Datadog applications. This is not used
// as an offset for scheduling.
DisplayTimezone datadog.NullableString `json:"display_timezone,omitempty"`
// A message to include with notifications for this downtime. Email notifications can be sent to specific users
// by using the same `@username` notation as events.
Message datadog.NullableString `json:"message,omitempty"`
// Time that the downtime was last modified.
Modified *time.Time `json:"modified,omitempty"`
// Monitor identifier for the downtime.
MonitorIdentifier *DowntimeMonitorIdentifier `json:"monitor_identifier,omitempty"`
// If the first recovery notification during a downtime should be muted.
MuteFirstRecoveryNotification *bool `json:"mute_first_recovery_notification,omitempty"`
// States that will trigger a monitor notification when the `notify_end_types` action occurs.
NotifyEndStates []DowntimeNotifyEndStateTypes `json:"notify_end_states,omitempty"`
// Actions that will trigger a monitor notification if the downtime is in the `notify_end_types` state.
NotifyEndTypes []DowntimeNotifyEndStateActions `json:"notify_end_types,omitempty"`
// The schedule that defines when the monitor starts, stops, and recurs. There are two types of schedules:
// one-time and recurring. Recurring schedules may have up to five RRULE-based recurrences. If no schedules are
// provided, the downtime will begin immediately and never end.
Schedule *DowntimeScheduleResponse `json:"schedule,omitempty"`
// The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/).
Scope *string `json:"scope,omitempty"`
// The current status of the downtime.
Status *DowntimeStatus `json:"status,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeResponseAttributes() *DowntimeResponseAttributes
NewDowntimeResponseAttributes instantiates a new DowntimeResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeResponseAttributesWithDefaults() *DowntimeResponseAttributes
NewDowntimeResponseAttributesWithDefaults instantiates a new DowntimeResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeResponseAttributes) GetCanceled() time.Time
GetCanceled returns the Canceled field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeResponseAttributes) GetCanceledOk() (*time.Time, bool)
GetCanceledOk returns a tuple with the Canceled field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeResponseAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) GetDisplayTimezone() string
GetDisplayTimezone returns the DisplayTimezone field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeResponseAttributes) GetDisplayTimezoneOk() (*string, bool)
GetDisplayTimezoneOk returns a tuple with the DisplayTimezone field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeResponseAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeResponseAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeResponseAttributes) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) GetMonitorIdentifier() DowntimeMonitorIdentifier
GetMonitorIdentifier returns the MonitorIdentifier field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetMonitorIdentifierOk() (*DowntimeMonitorIdentifier, bool)
GetMonitorIdentifierOk returns a tuple with the MonitorIdentifier field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) GetMuteFirstRecoveryNotification() bool
GetMuteFirstRecoveryNotification returns the MuteFirstRecoveryNotification field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetMuteFirstRecoveryNotificationOk() (*bool, bool)
GetMuteFirstRecoveryNotificationOk returns a tuple with the MuteFirstRecoveryNotification field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) GetNotifyEndStates() []DowntimeNotifyEndStateTypes
GetNotifyEndStates returns the NotifyEndStates field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetNotifyEndStatesOk() (*[]DowntimeNotifyEndStateTypes, bool)
GetNotifyEndStatesOk returns a tuple with the NotifyEndStates field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) GetNotifyEndTypes() []DowntimeNotifyEndStateActions
GetNotifyEndTypes returns the NotifyEndTypes field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetNotifyEndTypesOk() (*[]DowntimeNotifyEndStateActions, bool)
GetNotifyEndTypesOk returns a tuple with the NotifyEndTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) GetSchedule() DowntimeScheduleResponse
GetSchedule returns the Schedule field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetScheduleOk() (*DowntimeScheduleResponse, bool)
GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) GetScope() string
GetScope returns the Scope field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetScopeOk() (*string, bool)
GetScopeOk returns a tuple with the Scope field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) GetStatus() DowntimeStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *DowntimeResponseAttributes) GetStatusOk() (*DowntimeStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseAttributes) HasCanceled() bool
HasCanceled returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasDisplayTimezone() bool
HasDisplayTimezone returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasMonitorIdentifier() bool
HasMonitorIdentifier returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasMuteFirstRecoveryNotification() bool
HasMuteFirstRecoveryNotification returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasNotifyEndStates() bool
HasNotifyEndStates returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasNotifyEndTypes() bool
HasNotifyEndTypes returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasSchedule() bool
HasSchedule returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasScope() bool
HasScope returns a boolean if a field has been set.
func (o *DowntimeResponseAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o DowntimeResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeResponseAttributes) SetCanceled(v time.Time)
SetCanceled gets a reference to the given datadog.NullableTime and assigns it to the Canceled field.
func (o *DowntimeResponseAttributes) SetCanceledNil()
SetCanceledNil sets the value for Canceled to be an explicit nil.
func (o *DowntimeResponseAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *DowntimeResponseAttributes) SetDisplayTimezone(v string)
SetDisplayTimezone gets a reference to the given datadog.NullableString and assigns it to the DisplayTimezone field.
func (o *DowntimeResponseAttributes) SetDisplayTimezoneNil()
SetDisplayTimezoneNil sets the value for DisplayTimezone to be an explicit nil.
func (o *DowntimeResponseAttributes) SetMessage(v string)
SetMessage gets a reference to the given datadog.NullableString and assigns it to the Message field.
func (o *DowntimeResponseAttributes) SetMessageNil()
SetMessageNil sets the value for Message to be an explicit nil.
func (o *DowntimeResponseAttributes) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *DowntimeResponseAttributes) SetMonitorIdentifier(v DowntimeMonitorIdentifier)
SetMonitorIdentifier gets a reference to the given DowntimeMonitorIdentifier and assigns it to the MonitorIdentifier field.
func (o *DowntimeResponseAttributes) SetMuteFirstRecoveryNotification(v bool)
SetMuteFirstRecoveryNotification gets a reference to the given bool and assigns it to the MuteFirstRecoveryNotification field.
func (o *DowntimeResponseAttributes) SetNotifyEndStates(v []DowntimeNotifyEndStateTypes)
SetNotifyEndStates gets a reference to the given []DowntimeNotifyEndStateTypes and assigns it to the NotifyEndStates field.
func (o *DowntimeResponseAttributes) SetNotifyEndTypes(v []DowntimeNotifyEndStateActions)
SetNotifyEndTypes gets a reference to the given []DowntimeNotifyEndStateActions and assigns it to the NotifyEndTypes field.
func (o *DowntimeResponseAttributes) SetSchedule(v DowntimeScheduleResponse)
SetSchedule gets a reference to the given DowntimeScheduleResponse and assigns it to the Schedule field.
func (o *DowntimeResponseAttributes) SetScope(v string)
SetScope gets a reference to the given string and assigns it to the Scope field.
func (o *DowntimeResponseAttributes) SetStatus(v DowntimeStatus)
SetStatus gets a reference to the given DowntimeStatus and assigns it to the Status field.
func (o *DowntimeResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeResponseAttributes) UnsetCanceled()
UnsetCanceled ensures that no value is present for Canceled, not even an explicit nil.
func (o *DowntimeResponseAttributes) UnsetDisplayTimezone()
UnsetDisplayTimezone ensures that no value is present for DisplayTimezone, not even an explicit nil.
func (o *DowntimeResponseAttributes) UnsetMessage()
UnsetMessage ensures that no value is present for Message, not even an explicit nil.
DowntimeResponseData Downtime data.
type DowntimeResponseData struct {
// Downtime details.
Attributes *DowntimeResponseAttributes `json:"attributes,omitempty"`
// The downtime ID.
Id *string `json:"id,omitempty"`
// All relationships associated with downtime.
Relationships *DowntimeRelationships `json:"relationships,omitempty"`
// Downtime resource type.
Type *DowntimeResourceType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeResponseData() *DowntimeResponseData
NewDowntimeResponseData instantiates a new DowntimeResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeResponseDataWithDefaults() *DowntimeResponseData
NewDowntimeResponseDataWithDefaults instantiates a new DowntimeResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeResponseData) GetAttributes() DowntimeResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *DowntimeResponseData) GetAttributesOk() (*DowntimeResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *DowntimeResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseData) GetRelationships() DowntimeRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *DowntimeResponseData) GetRelationshipsOk() (*DowntimeRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseData) GetType() DowntimeResourceType
GetType returns the Type field value if set, zero value otherwise.
func (o *DowntimeResponseData) GetTypeOk() (*DowntimeResourceType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *DowntimeResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *DowntimeResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *DowntimeResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o DowntimeResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeResponseData) SetAttributes(v DowntimeResponseAttributes)
SetAttributes gets a reference to the given DowntimeResponseAttributes and assigns it to the Attributes field.
func (o *DowntimeResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *DowntimeResponseData) SetRelationships(v DowntimeRelationships)
SetRelationships gets a reference to the given DowntimeRelationships and assigns it to the Relationships field.
func (o *DowntimeResponseData) SetType(v DowntimeResourceType)
SetType gets a reference to the given DowntimeResourceType and assigns it to the Type field.
func (o *DowntimeResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeResponseIncludedItem - An object related to a downtime.
type DowntimeResponseIncludedItem struct {
User *User
DowntimeMonitorIncludedItem *DowntimeMonitorIncludedItem
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func DowntimeMonitorIncludedItemAsDowntimeResponseIncludedItem(v *DowntimeMonitorIncludedItem) DowntimeResponseIncludedItem
DowntimeMonitorIncludedItemAsDowntimeResponseIncludedItem is a convenience function that returns DowntimeMonitorIncludedItem wrapped in DowntimeResponseIncludedItem.
func UserAsDowntimeResponseIncludedItem(v *User) DowntimeResponseIncludedItem
UserAsDowntimeResponseIncludedItem is a convenience function that returns User wrapped in DowntimeResponseIncludedItem.
func (obj *DowntimeResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj DowntimeResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *DowntimeResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
DowntimeScheduleCreateRequest - Schedule for the downtime.
type DowntimeScheduleCreateRequest struct {
DowntimeScheduleRecurrencesCreateRequest *DowntimeScheduleRecurrencesCreateRequest
DowntimeScheduleOneTimeCreateUpdateRequest *DowntimeScheduleOneTimeCreateUpdateRequest
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func DowntimeScheduleOneTimeCreateUpdateRequestAsDowntimeScheduleCreateRequest(v *DowntimeScheduleOneTimeCreateUpdateRequest) DowntimeScheduleCreateRequest
DowntimeScheduleOneTimeCreateUpdateRequestAsDowntimeScheduleCreateRequest is a convenience function that returns DowntimeScheduleOneTimeCreateUpdateRequest wrapped in DowntimeScheduleCreateRequest.
func DowntimeScheduleRecurrencesCreateRequestAsDowntimeScheduleCreateRequest(v *DowntimeScheduleRecurrencesCreateRequest) DowntimeScheduleCreateRequest
DowntimeScheduleRecurrencesCreateRequestAsDowntimeScheduleCreateRequest is a convenience function that returns DowntimeScheduleRecurrencesCreateRequest wrapped in DowntimeScheduleCreateRequest.
func (obj *DowntimeScheduleCreateRequest) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj DowntimeScheduleCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *DowntimeScheduleCreateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
DowntimeScheduleCurrentDowntimeResponse The most recent actual start and end dates for a recurring downtime. For a canceled downtime, this is the previously occurring downtime. For active downtimes, this is the ongoing downtime, and for scheduled downtimes it is the upcoming downtime.
type DowntimeScheduleCurrentDowntimeResponse struct {
// The end of the current downtime.
End datadog.NullableTime `json:"end,omitempty"`
// The start of the current downtime.
Start *time.Time `json:"start,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeScheduleCurrentDowntimeResponse() *DowntimeScheduleCurrentDowntimeResponse
NewDowntimeScheduleCurrentDowntimeResponse instantiates a new DowntimeScheduleCurrentDowntimeResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeScheduleCurrentDowntimeResponseWithDefaults() *DowntimeScheduleCurrentDowntimeResponse
NewDowntimeScheduleCurrentDowntimeResponseWithDefaults instantiates a new DowntimeScheduleCurrentDowntimeResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeScheduleCurrentDowntimeResponse) GetEnd() time.Time
GetEnd returns the End field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeScheduleCurrentDowntimeResponse) GetEndOk() (*time.Time, bool)
GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeScheduleCurrentDowntimeResponse) GetStart() time.Time
GetStart returns the Start field value if set, zero value otherwise.
func (o *DowntimeScheduleCurrentDowntimeResponse) GetStartOk() (*time.Time, bool)
GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleCurrentDowntimeResponse) HasEnd() bool
HasEnd returns a boolean if a field has been set.
func (o *DowntimeScheduleCurrentDowntimeResponse) HasStart() bool
HasStart returns a boolean if a field has been set.
func (o DowntimeScheduleCurrentDowntimeResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeScheduleCurrentDowntimeResponse) SetEnd(v time.Time)
SetEnd gets a reference to the given datadog.NullableTime and assigns it to the End field.
func (o *DowntimeScheduleCurrentDowntimeResponse) SetEndNil()
SetEndNil sets the value for End to be an explicit nil.
func (o *DowntimeScheduleCurrentDowntimeResponse) SetStart(v time.Time)
SetStart gets a reference to the given time.Time and assigns it to the Start field.
func (o *DowntimeScheduleCurrentDowntimeResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeScheduleCurrentDowntimeResponse) UnsetEnd()
UnsetEnd ensures that no value is present for End, not even an explicit nil.
DowntimeScheduleOneTimeCreateUpdateRequest A one-time downtime definition.
type DowntimeScheduleOneTimeCreateUpdateRequest struct {
// ISO-8601 Datetime to end the downtime. Must include a UTC offset of zero. If not provided, the
// downtime continues forever.
End datadog.NullableTime `json:"end,omitempty"`
// ISO-8601 Datetime to start the downtime. Must include a UTC offset of zero. If not provided, the
// downtime starts the moment it is created.
Start datadog.NullableTime `json:"start,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeScheduleOneTimeCreateUpdateRequest() *DowntimeScheduleOneTimeCreateUpdateRequest
NewDowntimeScheduleOneTimeCreateUpdateRequest instantiates a new DowntimeScheduleOneTimeCreateUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeScheduleOneTimeCreateUpdateRequestWithDefaults() *DowntimeScheduleOneTimeCreateUpdateRequest
NewDowntimeScheduleOneTimeCreateUpdateRequestWithDefaults instantiates a new DowntimeScheduleOneTimeCreateUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) GetEnd() time.Time
GetEnd returns the End field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) GetEndOk() (*time.Time, bool)
GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) GetStart() time.Time
GetStart returns the Start field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) GetStartOk() (*time.Time, bool)
GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) HasEnd() bool
HasEnd returns a boolean if a field has been set.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) HasStart() bool
HasStart returns a boolean if a field has been set.
func (o DowntimeScheduleOneTimeCreateUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) SetEnd(v time.Time)
SetEnd gets a reference to the given datadog.NullableTime and assigns it to the End field.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) SetEndNil()
SetEndNil sets the value for End to be an explicit nil.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) SetStart(v time.Time)
SetStart gets a reference to the given datadog.NullableTime and assigns it to the Start field.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) SetStartNil()
SetStartNil sets the value for Start to be an explicit nil.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) UnsetEnd()
UnsetEnd ensures that no value is present for End, not even an explicit nil.
func (o *DowntimeScheduleOneTimeCreateUpdateRequest) UnsetStart()
UnsetStart ensures that no value is present for Start, not even an explicit nil.
DowntimeScheduleOneTimeResponse A one-time downtime definition.
type DowntimeScheduleOneTimeResponse struct {
// ISO-8601 Datetime to end the downtime.
End datadog.NullableTime `json:"end,omitempty"`
// ISO-8601 Datetime to start the downtime.
Start time.Time `json:"start"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeScheduleOneTimeResponse(start time.Time) *DowntimeScheduleOneTimeResponse
NewDowntimeScheduleOneTimeResponse instantiates a new DowntimeScheduleOneTimeResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeScheduleOneTimeResponseWithDefaults() *DowntimeScheduleOneTimeResponse
NewDowntimeScheduleOneTimeResponseWithDefaults instantiates a new DowntimeScheduleOneTimeResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeScheduleOneTimeResponse) GetEnd() time.Time
GetEnd returns the End field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeScheduleOneTimeResponse) GetEndOk() (*time.Time, bool)
GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeScheduleOneTimeResponse) GetStart() time.Time
GetStart returns the Start field value.
func (o *DowntimeScheduleOneTimeResponse) GetStartOk() (*time.Time, bool)
GetStartOk returns a tuple with the Start field value and a boolean to check if the value has been set.
func (o *DowntimeScheduleOneTimeResponse) HasEnd() bool
HasEnd returns a boolean if a field has been set.
func (o DowntimeScheduleOneTimeResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeScheduleOneTimeResponse) SetEnd(v time.Time)
SetEnd gets a reference to the given datadog.NullableTime and assigns it to the End field.
func (o *DowntimeScheduleOneTimeResponse) SetEndNil()
SetEndNil sets the value for End to be an explicit nil.
func (o *DowntimeScheduleOneTimeResponse) SetStart(v time.Time)
SetStart sets field value.
func (o *DowntimeScheduleOneTimeResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeScheduleOneTimeResponse) UnsetEnd()
UnsetEnd ensures that no value is present for End, not even an explicit nil.
DowntimeScheduleRecurrenceCreateUpdateRequest An object defining the recurrence of the downtime.
type DowntimeScheduleRecurrenceCreateUpdateRequest struct {
// The length of the downtime. Must begin with an integer and end with one of 'm', 'h', d', or 'w'.
Duration string `json:"duration"`
// The `RRULE` standard for defining recurring events.
// For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`.
// Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported.
//
// **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`).
// More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api).
Rrule string `json:"rrule"`
// ISO-8601 Datetime to start the downtime. Must not include a UTC offset. If not provided, the
// downtime starts the moment it is created.
Start datadog.NullableString `json:"start,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeScheduleRecurrenceCreateUpdateRequest(duration string, rrule string) *DowntimeScheduleRecurrenceCreateUpdateRequest
NewDowntimeScheduleRecurrenceCreateUpdateRequest instantiates a new DowntimeScheduleRecurrenceCreateUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeScheduleRecurrenceCreateUpdateRequestWithDefaults() *DowntimeScheduleRecurrenceCreateUpdateRequest
NewDowntimeScheduleRecurrenceCreateUpdateRequestWithDefaults instantiates a new DowntimeScheduleRecurrenceCreateUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) GetDuration() string
GetDuration returns the Duration field value.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) GetDurationOk() (*string, bool)
GetDurationOk returns a tuple with the Duration field value and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) GetRrule() string
GetRrule returns the Rrule field value.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) GetRruleOk() (*string, bool)
GetRruleOk returns a tuple with the Rrule field value and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) GetStart() string
GetStart returns the Start field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) GetStartOk() (*string, bool)
GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) HasStart() bool
HasStart returns a boolean if a field has been set.
func (o DowntimeScheduleRecurrenceCreateUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) SetDuration(v string)
SetDuration sets field value.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) SetRrule(v string)
SetRrule sets field value.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) SetStart(v string)
SetStart gets a reference to the given datadog.NullableString and assigns it to the Start field.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) SetStartNil()
SetStartNil sets the value for Start to be an explicit nil.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeScheduleRecurrenceCreateUpdateRequest) UnsetStart()
UnsetStart ensures that no value is present for Start, not even an explicit nil.
DowntimeScheduleRecurrenceResponse An RRULE-based recurring downtime.
type DowntimeScheduleRecurrenceResponse struct {
// The length of the downtime. Must begin with an integer and end with one of 'm', 'h', d', or 'w'.
Duration *string `json:"duration,omitempty"`
// The `RRULE` standard for defining recurring events.
// For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`.
// Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported.
//
// **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`).
// More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api).
Rrule *string `json:"rrule,omitempty"`
// ISO-8601 Datetime to start the downtime. Must not include a UTC offset. If not provided, the
// downtime starts the moment it is created.
Start *string `json:"start,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeScheduleRecurrenceResponse() *DowntimeScheduleRecurrenceResponse
NewDowntimeScheduleRecurrenceResponse instantiates a new DowntimeScheduleRecurrenceResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeScheduleRecurrenceResponseWithDefaults() *DowntimeScheduleRecurrenceResponse
NewDowntimeScheduleRecurrenceResponseWithDefaults instantiates a new DowntimeScheduleRecurrenceResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeScheduleRecurrenceResponse) GetDuration() string
GetDuration returns the Duration field value if set, zero value otherwise.
func (o *DowntimeScheduleRecurrenceResponse) GetDurationOk() (*string, bool)
GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrenceResponse) GetRrule() string
GetRrule returns the Rrule field value if set, zero value otherwise.
func (o *DowntimeScheduleRecurrenceResponse) GetRruleOk() (*string, bool)
GetRruleOk returns a tuple with the Rrule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrenceResponse) GetStart() string
GetStart returns the Start field value if set, zero value otherwise.
func (o *DowntimeScheduleRecurrenceResponse) GetStartOk() (*string, bool)
GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrenceResponse) HasDuration() bool
HasDuration returns a boolean if a field has been set.
func (o *DowntimeScheduleRecurrenceResponse) HasRrule() bool
HasRrule returns a boolean if a field has been set.
func (o *DowntimeScheduleRecurrenceResponse) HasStart() bool
HasStart returns a boolean if a field has been set.
func (o DowntimeScheduleRecurrenceResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeScheduleRecurrenceResponse) SetDuration(v string)
SetDuration gets a reference to the given string and assigns it to the Duration field.
func (o *DowntimeScheduleRecurrenceResponse) SetRrule(v string)
SetRrule gets a reference to the given string and assigns it to the Rrule field.
func (o *DowntimeScheduleRecurrenceResponse) SetStart(v string)
SetStart gets a reference to the given string and assigns it to the Start field.
func (o *DowntimeScheduleRecurrenceResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeScheduleRecurrencesCreateRequest A recurring downtime schedule definition.
type DowntimeScheduleRecurrencesCreateRequest struct {
// A list of downtime recurrences.
Recurrences []DowntimeScheduleRecurrenceCreateUpdateRequest `json:"recurrences"`
// The timezone in which to schedule the downtime.
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeScheduleRecurrencesCreateRequest(recurrences []DowntimeScheduleRecurrenceCreateUpdateRequest) *DowntimeScheduleRecurrencesCreateRequest
NewDowntimeScheduleRecurrencesCreateRequest instantiates a new DowntimeScheduleRecurrencesCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeScheduleRecurrencesCreateRequestWithDefaults() *DowntimeScheduleRecurrencesCreateRequest
NewDowntimeScheduleRecurrencesCreateRequestWithDefaults instantiates a new DowntimeScheduleRecurrencesCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeScheduleRecurrencesCreateRequest) GetRecurrences() []DowntimeScheduleRecurrenceCreateUpdateRequest
GetRecurrences returns the Recurrences field value.
func (o *DowntimeScheduleRecurrencesCreateRequest) GetRecurrencesOk() (*[]DowntimeScheduleRecurrenceCreateUpdateRequest, bool)
GetRecurrencesOk returns a tuple with the Recurrences field value and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrencesCreateRequest) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *DowntimeScheduleRecurrencesCreateRequest) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrencesCreateRequest) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o DowntimeScheduleRecurrencesCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeScheduleRecurrencesCreateRequest) SetRecurrences(v []DowntimeScheduleRecurrenceCreateUpdateRequest)
SetRecurrences sets field value.
func (o *DowntimeScheduleRecurrencesCreateRequest) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *DowntimeScheduleRecurrencesCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeScheduleRecurrencesResponse A recurring downtime schedule definition.
type DowntimeScheduleRecurrencesResponse struct {
// The most recent actual start and end dates for a recurring downtime. For a canceled downtime,
// this is the previously occurring downtime. For active downtimes, this is the ongoing downtime, and for scheduled
// downtimes it is the upcoming downtime.
CurrentDowntime *DowntimeScheduleCurrentDowntimeResponse `json:"current_downtime,omitempty"`
// A list of downtime recurrences.
Recurrences []DowntimeScheduleRecurrenceResponse `json:"recurrences"`
// The timezone in which to schedule the downtime. This affects recurring start and end dates.
// Must match `display_timezone`.
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeScheduleRecurrencesResponse(recurrences []DowntimeScheduleRecurrenceResponse) *DowntimeScheduleRecurrencesResponse
NewDowntimeScheduleRecurrencesResponse instantiates a new DowntimeScheduleRecurrencesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeScheduleRecurrencesResponseWithDefaults() *DowntimeScheduleRecurrencesResponse
NewDowntimeScheduleRecurrencesResponseWithDefaults instantiates a new DowntimeScheduleRecurrencesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeScheduleRecurrencesResponse) GetCurrentDowntime() DowntimeScheduleCurrentDowntimeResponse
GetCurrentDowntime returns the CurrentDowntime field value if set, zero value otherwise.
func (o *DowntimeScheduleRecurrencesResponse) GetCurrentDowntimeOk() (*DowntimeScheduleCurrentDowntimeResponse, bool)
GetCurrentDowntimeOk returns a tuple with the CurrentDowntime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrencesResponse) GetRecurrences() []DowntimeScheduleRecurrenceResponse
GetRecurrences returns the Recurrences field value.
func (o *DowntimeScheduleRecurrencesResponse) GetRecurrencesOk() (*[]DowntimeScheduleRecurrenceResponse, bool)
GetRecurrencesOk returns a tuple with the Recurrences field value and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrencesResponse) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *DowntimeScheduleRecurrencesResponse) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrencesResponse) HasCurrentDowntime() bool
HasCurrentDowntime returns a boolean if a field has been set.
func (o *DowntimeScheduleRecurrencesResponse) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o DowntimeScheduleRecurrencesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeScheduleRecurrencesResponse) SetCurrentDowntime(v DowntimeScheduleCurrentDowntimeResponse)
SetCurrentDowntime gets a reference to the given DowntimeScheduleCurrentDowntimeResponse and assigns it to the CurrentDowntime field.
func (o *DowntimeScheduleRecurrencesResponse) SetRecurrences(v []DowntimeScheduleRecurrenceResponse)
SetRecurrences sets field value.
func (o *DowntimeScheduleRecurrencesResponse) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *DowntimeScheduleRecurrencesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeScheduleRecurrencesUpdateRequest A recurring downtime schedule definition.
type DowntimeScheduleRecurrencesUpdateRequest struct {
// A list of downtime recurrences.
Recurrences []DowntimeScheduleRecurrenceCreateUpdateRequest `json:"recurrences,omitempty"`
// The timezone in which to schedule the downtime.
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeScheduleRecurrencesUpdateRequest() *DowntimeScheduleRecurrencesUpdateRequest
NewDowntimeScheduleRecurrencesUpdateRequest instantiates a new DowntimeScheduleRecurrencesUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeScheduleRecurrencesUpdateRequestWithDefaults() *DowntimeScheduleRecurrencesUpdateRequest
NewDowntimeScheduleRecurrencesUpdateRequestWithDefaults instantiates a new DowntimeScheduleRecurrencesUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeScheduleRecurrencesUpdateRequest) GetRecurrences() []DowntimeScheduleRecurrenceCreateUpdateRequest
GetRecurrences returns the Recurrences field value if set, zero value otherwise.
func (o *DowntimeScheduleRecurrencesUpdateRequest) GetRecurrencesOk() (*[]DowntimeScheduleRecurrenceCreateUpdateRequest, bool)
GetRecurrencesOk returns a tuple with the Recurrences field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrencesUpdateRequest) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *DowntimeScheduleRecurrencesUpdateRequest) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeScheduleRecurrencesUpdateRequest) HasRecurrences() bool
HasRecurrences returns a boolean if a field has been set.
func (o *DowntimeScheduleRecurrencesUpdateRequest) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o DowntimeScheduleRecurrencesUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeScheduleRecurrencesUpdateRequest) SetRecurrences(v []DowntimeScheduleRecurrenceCreateUpdateRequest)
SetRecurrences gets a reference to the given []DowntimeScheduleRecurrenceCreateUpdateRequest and assigns it to the Recurrences field.
func (o *DowntimeScheduleRecurrencesUpdateRequest) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *DowntimeScheduleRecurrencesUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeScheduleResponse - The schedule that defines when the monitor starts, stops, and recurs. There are two types of schedules: one-time and recurring. Recurring schedules may have up to five RRULE-based recurrences. If no schedules are provided, the downtime will begin immediately and never end.
type DowntimeScheduleResponse struct {
DowntimeScheduleRecurrencesResponse *DowntimeScheduleRecurrencesResponse
DowntimeScheduleOneTimeResponse *DowntimeScheduleOneTimeResponse
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func DowntimeScheduleOneTimeResponseAsDowntimeScheduleResponse(v *DowntimeScheduleOneTimeResponse) DowntimeScheduleResponse
DowntimeScheduleOneTimeResponseAsDowntimeScheduleResponse is a convenience function that returns DowntimeScheduleOneTimeResponse wrapped in DowntimeScheduleResponse.
func DowntimeScheduleRecurrencesResponseAsDowntimeScheduleResponse(v *DowntimeScheduleRecurrencesResponse) DowntimeScheduleResponse
DowntimeScheduleRecurrencesResponseAsDowntimeScheduleResponse is a convenience function that returns DowntimeScheduleRecurrencesResponse wrapped in DowntimeScheduleResponse.
func (obj *DowntimeScheduleResponse) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj DowntimeScheduleResponse) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *DowntimeScheduleResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
DowntimeScheduleUpdateRequest - Schedule for the downtime.
type DowntimeScheduleUpdateRequest struct {
DowntimeScheduleRecurrencesUpdateRequest *DowntimeScheduleRecurrencesUpdateRequest
DowntimeScheduleOneTimeCreateUpdateRequest *DowntimeScheduleOneTimeCreateUpdateRequest
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func DowntimeScheduleOneTimeCreateUpdateRequestAsDowntimeScheduleUpdateRequest(v *DowntimeScheduleOneTimeCreateUpdateRequest) DowntimeScheduleUpdateRequest
DowntimeScheduleOneTimeCreateUpdateRequestAsDowntimeScheduleUpdateRequest is a convenience function that returns DowntimeScheduleOneTimeCreateUpdateRequest wrapped in DowntimeScheduleUpdateRequest.
func DowntimeScheduleRecurrencesUpdateRequestAsDowntimeScheduleUpdateRequest(v *DowntimeScheduleRecurrencesUpdateRequest) DowntimeScheduleUpdateRequest
DowntimeScheduleRecurrencesUpdateRequestAsDowntimeScheduleUpdateRequest is a convenience function that returns DowntimeScheduleRecurrencesUpdateRequest wrapped in DowntimeScheduleUpdateRequest.
func (obj *DowntimeScheduleUpdateRequest) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj DowntimeScheduleUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *DowntimeScheduleUpdateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
DowntimeStatus The current status of the downtime.
type DowntimeStatus string
List of DowntimeStatus.
const (
DOWNTIMESTATUS_ACTIVE DowntimeStatus = "active"
DOWNTIMESTATUS_CANCELED DowntimeStatus = "canceled"
DOWNTIMESTATUS_ENDED DowntimeStatus = "ended"
DOWNTIMESTATUS_SCHEDULED DowntimeStatus = "scheduled"
)
func NewDowntimeStatusFromValue(v string) (*DowntimeStatus, error)
NewDowntimeStatusFromValue returns a pointer to a valid DowntimeStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *DowntimeStatus) GetAllowedValues() []DowntimeStatus
GetAllowedValues reeturns the list of possible values.
func (v DowntimeStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v DowntimeStatus) Ptr() *DowntimeStatus
Ptr returns reference to DowntimeStatus value.
func (v *DowntimeStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
DowntimeUpdateRequest Request for editing a downtime.
type DowntimeUpdateRequest struct {
// Object to update a downtime.
Data DowntimeUpdateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeUpdateRequest(data DowntimeUpdateRequestData) *DowntimeUpdateRequest
NewDowntimeUpdateRequest instantiates a new DowntimeUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeUpdateRequestWithDefaults() *DowntimeUpdateRequest
NewDowntimeUpdateRequestWithDefaults instantiates a new DowntimeUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeUpdateRequest) GetData() DowntimeUpdateRequestData
GetData returns the Data field value.
func (o *DowntimeUpdateRequest) GetDataOk() (*DowntimeUpdateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o DowntimeUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeUpdateRequest) SetData(v DowntimeUpdateRequestData)
SetData sets field value.
func (o *DowntimeUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimeUpdateRequestAttributes Attributes of the downtime to update.
type DowntimeUpdateRequestAttributes struct {
// The timezone in which to display the downtime's start and end times in Datadog applications. This is not used
// as an offset for scheduling.
DisplayTimezone datadog.NullableString `json:"display_timezone,omitempty"`
// A message to include with notifications for this downtime. Email notifications can be sent to specific users
// by using the same `@username` notation as events.
Message datadog.NullableString `json:"message,omitempty"`
// Monitor identifier for the downtime.
MonitorIdentifier *DowntimeMonitorIdentifier `json:"monitor_identifier,omitempty"`
// If the first recovery notification during a downtime should be muted.
MuteFirstRecoveryNotification *bool `json:"mute_first_recovery_notification,omitempty"`
// States that will trigger a monitor notification when the `notify_end_types` action occurs.
NotifyEndStates []DowntimeNotifyEndStateTypes `json:"notify_end_states,omitempty"`
// Actions that will trigger a monitor notification if the downtime is in the `notify_end_types` state.
NotifyEndTypes []DowntimeNotifyEndStateActions `json:"notify_end_types,omitempty"`
// Schedule for the downtime.
Schedule *DowntimeScheduleUpdateRequest `json:"schedule,omitempty"`
// The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/).
Scope *string `json:"scope,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeUpdateRequestAttributes() *DowntimeUpdateRequestAttributes
NewDowntimeUpdateRequestAttributes instantiates a new DowntimeUpdateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeUpdateRequestAttributesWithDefaults() *DowntimeUpdateRequestAttributes
NewDowntimeUpdateRequestAttributesWithDefaults instantiates a new DowntimeUpdateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeUpdateRequestAttributes) GetDisplayTimezone() string
GetDisplayTimezone returns the DisplayTimezone field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeUpdateRequestAttributes) GetDisplayTimezoneOk() (*string, bool)
GetDisplayTimezoneOk returns a tuple with the DisplayTimezone field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeUpdateRequestAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DowntimeUpdateRequestAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *DowntimeUpdateRequestAttributes) GetMonitorIdentifier() DowntimeMonitorIdentifier
GetMonitorIdentifier returns the MonitorIdentifier field value if set, zero value otherwise.
func (o *DowntimeUpdateRequestAttributes) GetMonitorIdentifierOk() (*DowntimeMonitorIdentifier, bool)
GetMonitorIdentifierOk returns a tuple with the MonitorIdentifier field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeUpdateRequestAttributes) GetMuteFirstRecoveryNotification() bool
GetMuteFirstRecoveryNotification returns the MuteFirstRecoveryNotification field value if set, zero value otherwise.
func (o *DowntimeUpdateRequestAttributes) GetMuteFirstRecoveryNotificationOk() (*bool, bool)
GetMuteFirstRecoveryNotificationOk returns a tuple with the MuteFirstRecoveryNotification field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeUpdateRequestAttributes) GetNotifyEndStates() []DowntimeNotifyEndStateTypes
GetNotifyEndStates returns the NotifyEndStates field value if set, zero value otherwise.
func (o *DowntimeUpdateRequestAttributes) GetNotifyEndStatesOk() (*[]DowntimeNotifyEndStateTypes, bool)
GetNotifyEndStatesOk returns a tuple with the NotifyEndStates field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeUpdateRequestAttributes) GetNotifyEndTypes() []DowntimeNotifyEndStateActions
GetNotifyEndTypes returns the NotifyEndTypes field value if set, zero value otherwise.
func (o *DowntimeUpdateRequestAttributes) GetNotifyEndTypesOk() (*[]DowntimeNotifyEndStateActions, bool)
GetNotifyEndTypesOk returns a tuple with the NotifyEndTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeUpdateRequestAttributes) GetSchedule() DowntimeScheduleUpdateRequest
GetSchedule returns the Schedule field value if set, zero value otherwise.
func (o *DowntimeUpdateRequestAttributes) GetScheduleOk() (*DowntimeScheduleUpdateRequest, bool)
GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeUpdateRequestAttributes) GetScope() string
GetScope returns the Scope field value if set, zero value otherwise.
func (o *DowntimeUpdateRequestAttributes) GetScopeOk() (*string, bool)
GetScopeOk returns a tuple with the Scope field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DowntimeUpdateRequestAttributes) HasDisplayTimezone() bool
HasDisplayTimezone returns a boolean if a field has been set.
func (o *DowntimeUpdateRequestAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *DowntimeUpdateRequestAttributes) HasMonitorIdentifier() bool
HasMonitorIdentifier returns a boolean if a field has been set.
func (o *DowntimeUpdateRequestAttributes) HasMuteFirstRecoveryNotification() bool
HasMuteFirstRecoveryNotification returns a boolean if a field has been set.
func (o *DowntimeUpdateRequestAttributes) HasNotifyEndStates() bool
HasNotifyEndStates returns a boolean if a field has been set.
func (o *DowntimeUpdateRequestAttributes) HasNotifyEndTypes() bool
HasNotifyEndTypes returns a boolean if a field has been set.
func (o *DowntimeUpdateRequestAttributes) HasSchedule() bool
HasSchedule returns a boolean if a field has been set.
func (o *DowntimeUpdateRequestAttributes) HasScope() bool
HasScope returns a boolean if a field has been set.
func (o DowntimeUpdateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeUpdateRequestAttributes) SetDisplayTimezone(v string)
SetDisplayTimezone gets a reference to the given datadog.NullableString and assigns it to the DisplayTimezone field.
func (o *DowntimeUpdateRequestAttributes) SetDisplayTimezoneNil()
SetDisplayTimezoneNil sets the value for DisplayTimezone to be an explicit nil.
func (o *DowntimeUpdateRequestAttributes) SetMessage(v string)
SetMessage gets a reference to the given datadog.NullableString and assigns it to the Message field.
func (o *DowntimeUpdateRequestAttributes) SetMessageNil()
SetMessageNil sets the value for Message to be an explicit nil.
func (o *DowntimeUpdateRequestAttributes) SetMonitorIdentifier(v DowntimeMonitorIdentifier)
SetMonitorIdentifier gets a reference to the given DowntimeMonitorIdentifier and assigns it to the MonitorIdentifier field.
func (o *DowntimeUpdateRequestAttributes) SetMuteFirstRecoveryNotification(v bool)
SetMuteFirstRecoveryNotification gets a reference to the given bool and assigns it to the MuteFirstRecoveryNotification field.
func (o *DowntimeUpdateRequestAttributes) SetNotifyEndStates(v []DowntimeNotifyEndStateTypes)
SetNotifyEndStates gets a reference to the given []DowntimeNotifyEndStateTypes and assigns it to the NotifyEndStates field.
func (o *DowntimeUpdateRequestAttributes) SetNotifyEndTypes(v []DowntimeNotifyEndStateActions)
SetNotifyEndTypes gets a reference to the given []DowntimeNotifyEndStateActions and assigns it to the NotifyEndTypes field.
func (o *DowntimeUpdateRequestAttributes) SetSchedule(v DowntimeScheduleUpdateRequest)
SetSchedule gets a reference to the given DowntimeScheduleUpdateRequest and assigns it to the Schedule field.
func (o *DowntimeUpdateRequestAttributes) SetScope(v string)
SetScope gets a reference to the given string and assigns it to the Scope field.
func (o *DowntimeUpdateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *DowntimeUpdateRequestAttributes) UnsetDisplayTimezone()
UnsetDisplayTimezone ensures that no value is present for DisplayTimezone, not even an explicit nil.
func (o *DowntimeUpdateRequestAttributes) UnsetMessage()
UnsetMessage ensures that no value is present for Message, not even an explicit nil.
DowntimeUpdateRequestData Object to update a downtime.
type DowntimeUpdateRequestData struct {
// Attributes of the downtime to update.
Attributes DowntimeUpdateRequestAttributes `json:"attributes"`
// ID of this downtime.
Id string `json:"id"`
// Downtime resource type.
Type DowntimeResourceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDowntimeUpdateRequestData(attributes DowntimeUpdateRequestAttributes, id string, typeVar DowntimeResourceType) *DowntimeUpdateRequestData
NewDowntimeUpdateRequestData instantiates a new DowntimeUpdateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDowntimeUpdateRequestDataWithDefaults() *DowntimeUpdateRequestData
NewDowntimeUpdateRequestDataWithDefaults instantiates a new DowntimeUpdateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DowntimeUpdateRequestData) GetAttributes() DowntimeUpdateRequestAttributes
GetAttributes returns the Attributes field value.
func (o *DowntimeUpdateRequestData) GetAttributesOk() (*DowntimeUpdateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *DowntimeUpdateRequestData) GetId() string
GetId returns the Id field value.
func (o *DowntimeUpdateRequestData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *DowntimeUpdateRequestData) GetType() DowntimeResourceType
GetType returns the Type field value.
func (o *DowntimeUpdateRequestData) GetTypeOk() (*DowntimeResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o DowntimeUpdateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DowntimeUpdateRequestData) SetAttributes(v DowntimeUpdateRequestAttributes)
SetAttributes sets field value.
func (o *DowntimeUpdateRequestData) SetId(v string)
SetId sets field value.
func (o *DowntimeUpdateRequestData) SetType(v DowntimeResourceType)
SetType sets field value.
func (o *DowntimeUpdateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DowntimesApi service type
type DowntimesApi datadog.Service
func NewDowntimesApi(client *datadog.APIClient) *DowntimesApi
NewDowntimesApi Returns NewDowntimesApi.
func (a *DowntimesApi) CancelDowntime(ctx _context.Context, downtimeId string) (*_nethttp.Response, error)
CancelDowntime Cancel a downtime. Cancel a downtime.
func (a *DowntimesApi) CreateDowntime(ctx _context.Context, body DowntimeCreateRequest) (DowntimeResponse, *_nethttp.Response, error)
CreateDowntime Schedule a downtime. Schedule a downtime.
func (a *DowntimesApi) GetDowntime(ctx _context.Context, downtimeId string, o ...GetDowntimeOptionalParameters) (DowntimeResponse, *_nethttp.Response, error)
GetDowntime Get a downtime. Get downtime detail by `downtime_id`.
func (a *DowntimesApi) ListDowntimes(ctx _context.Context, o ...ListDowntimesOptionalParameters) (ListDowntimesResponse, *_nethttp.Response, error)
ListDowntimes Get all downtimes. Get all scheduled downtimes.
func (a *DowntimesApi) ListMonitorDowntimes(ctx _context.Context, monitorId int64) (MonitorDowntimeMatchResponse, *_nethttp.Response, error)
ListMonitorDowntimes Get active downtimes for a monitor. Get all active downtimes for the specified monitor.
func (a *DowntimesApi) UpdateDowntime(ctx _context.Context, downtimeId string, body DowntimeUpdateRequest) (DowntimeResponse, *_nethttp.Response, error)
UpdateDowntime Update a downtime. Update a downtime by `downtime_id`.
EstimateMetricsOutputSeriesOptionalParameters holds optional parameters for EstimateMetricsOutputSeries.
type EstimateMetricsOutputSeriesOptionalParameters struct {
FilterGroups *string
FilterHoursAgo *int32
FilterNumAggregations *int32
FilterPct *bool
FilterTimespanH *int32
}
func NewEstimateMetricsOutputSeriesOptionalParameters() *EstimateMetricsOutputSeriesOptionalParameters
NewEstimateMetricsOutputSeriesOptionalParameters creates an empty struct for parameters.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterGroups(filterGroups string) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterGroups sets the corresponding parameter name and returns the struct.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterHoursAgo(filterHoursAgo int32) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterHoursAgo sets the corresponding parameter name and returns the struct.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterNumAggregations(filterNumAggregations int32) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterNumAggregations sets the corresponding parameter name and returns the struct.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterPct(filterPct bool) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterPct sets the corresponding parameter name and returns the struct.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterTimespanH(filterTimespanH int32) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterTimespanH sets the corresponding parameter name and returns the struct.
Event The metadata associated with a request.
type Event struct {
// Event ID.
Id *string `json:"id,omitempty"`
// The event name.
Name *string `json:"name,omitempty"`
// Event source ID.
SourceId *int64 `json:"source_id,omitempty"`
// Event type.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEvent() *Event
NewEvent instantiates a new Event object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventWithDefaults() *Event
NewEventWithDefaults instantiates a new Event object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Event) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Event) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Event) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *Event) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Event) GetSourceId() int64
GetSourceId returns the SourceId field value if set, zero value otherwise.
func (o *Event) GetSourceIdOk() (*int64, bool)
GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Event) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *Event) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Event) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Event) HasName() bool
HasName returns a boolean if a field has been set.
func (o *Event) HasSourceId() bool
HasSourceId returns a boolean if a field has been set.
func (o *Event) HasType() bool
HasType returns a boolean if a field has been set.
func (o Event) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Event) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Event) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *Event) SetSourceId(v int64)
SetSourceId gets a reference to the given int64 and assigns it to the SourceId field.
func (o *Event) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *Event) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventAttributes Object description of attributes from your event.
type EventAttributes struct {
// Aggregation key of the event.
AggregationKey *string `json:"aggregation_key,omitempty"`
// POSIX timestamp of the event. Must be sent as an integer (no quotation marks).
// Limited to events no older than 18 hours.
DateHappened *int64 `json:"date_happened,omitempty"`
// A device name.
DeviceName *string `json:"device_name,omitempty"`
// The duration between the triggering of the event and its recovery in nanoseconds.
Duration *int64 `json:"duration,omitempty"`
// The event title.
EventObject *string `json:"event_object,omitempty"`
// The metadata associated with a request.
Evt *Event `json:"evt,omitempty"`
// Host name to associate with the event.
// Any tags associated with the host are also applied to this event.
Hostname *string `json:"hostname,omitempty"`
// Attributes from the monitor that triggered the event.
Monitor NullableMonitorType `json:"monitor,omitempty"`
// List of groups referred to in the event.
MonitorGroups datadog.NullableList[string] `json:"monitor_groups,omitempty"`
// ID of the monitor that triggered the event. When an event isn't related to a monitor, this field is empty.
MonitorId datadog.NullableInt64 `json:"monitor_id,omitempty"`
// The priority of the event's monitor. For example, `normal` or `low`.
Priority NullableEventPriority `json:"priority,omitempty"`
// Related event ID.
RelatedEventId *int64 `json:"related_event_id,omitempty"`
// Service that triggered the event.
Service *string `json:"service,omitempty"`
// The type of event being posted.
// For example, `nagios`, `hudson`, `jenkins`, `my_apps`, `chef`, `puppet`, `git` or `bitbucket`.
// The list of standard source attribute values is [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
SourceTypeName *string `json:"source_type_name,omitempty"`
// Identifier for the source of the event, such as a monitor alert, an externally-submitted event, or an integration.
Sourcecategory *string `json:"sourcecategory,omitempty"`
// If an alert event is enabled, its status is one of the following:
// `failure`, `error`, `warning`, `info`, `success`, `user_update`,
// `recommendation`, or `snapshot`.
Status *EventStatusType `json:"status,omitempty"`
// A list of tags to apply to the event.
Tags []string `json:"tags,omitempty"`
// POSIX timestamp of your event in milliseconds.
Timestamp *int64 `json:"timestamp,omitempty"`
// The event title.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventAttributes() *EventAttributes
NewEventAttributes instantiates a new EventAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventAttributesWithDefaults() *EventAttributes
NewEventAttributesWithDefaults instantiates a new EventAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventAttributes) GetAggregationKey() string
GetAggregationKey returns the AggregationKey field value if set, zero value otherwise.
func (o *EventAttributes) GetAggregationKeyOk() (*string, bool)
GetAggregationKeyOk returns a tuple with the AggregationKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetDateHappened() int64
GetDateHappened returns the DateHappened field value if set, zero value otherwise.
func (o *EventAttributes) GetDateHappenedOk() (*int64, bool)
GetDateHappenedOk returns a tuple with the DateHappened field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetDeviceName() string
GetDeviceName returns the DeviceName field value if set, zero value otherwise.
func (o *EventAttributes) GetDeviceNameOk() (*string, bool)
GetDeviceNameOk returns a tuple with the DeviceName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetDuration() int64
GetDuration returns the Duration field value if set, zero value otherwise.
func (o *EventAttributes) GetDurationOk() (*int64, bool)
GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetEventObject() string
GetEventObject returns the EventObject field value if set, zero value otherwise.
func (o *EventAttributes) GetEventObjectOk() (*string, bool)
GetEventObjectOk returns a tuple with the EventObject field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetEvt() Event
GetEvt returns the Evt field value if set, zero value otherwise.
func (o *EventAttributes) GetEvtOk() (*Event, bool)
GetEvtOk returns a tuple with the Evt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetHostname() string
GetHostname returns the Hostname field value if set, zero value otherwise.
func (o *EventAttributes) GetHostnameOk() (*string, bool)
GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetMonitor() MonitorType
GetMonitor returns the Monitor field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventAttributes) GetMonitorGroups() []string
GetMonitorGroups returns the MonitorGroups field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventAttributes) GetMonitorGroupsOk() (*[]string, bool)
GetMonitorGroupsOk returns a tuple with the MonitorGroups field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *EventAttributes) GetMonitorId() int64
GetMonitorId returns the MonitorId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventAttributes) GetMonitorIdOk() (*int64, bool)
GetMonitorIdOk returns a tuple with the MonitorId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *EventAttributes) GetMonitorOk() (*MonitorType, bool)
GetMonitorOk returns a tuple with the Monitor field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *EventAttributes) GetPriority() EventPriority
GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventAttributes) GetPriorityOk() (*EventPriority, bool)
GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *EventAttributes) GetRelatedEventId() int64
GetRelatedEventId returns the RelatedEventId field value if set, zero value otherwise.
func (o *EventAttributes) GetRelatedEventIdOk() (*int64, bool)
GetRelatedEventIdOk returns a tuple with the RelatedEventId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *EventAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetSourceTypeName() string
GetSourceTypeName returns the SourceTypeName field value if set, zero value otherwise.
func (o *EventAttributes) GetSourceTypeNameOk() (*string, bool)
GetSourceTypeNameOk returns a tuple with the SourceTypeName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetSourcecategory() string
GetSourcecategory returns the Sourcecategory field value if set, zero value otherwise.
func (o *EventAttributes) GetSourcecategoryOk() (*string, bool)
GetSourcecategoryOk returns a tuple with the Sourcecategory field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetStatus() EventStatusType
GetStatus returns the Status field value if set, zero value otherwise.
func (o *EventAttributes) GetStatusOk() (*EventStatusType, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *EventAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetTimestamp() int64
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *EventAttributes) GetTimestampOk() (*int64, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *EventAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) HasAggregationKey() bool
HasAggregationKey returns a boolean if a field has been set.
func (o *EventAttributes) HasDateHappened() bool
HasDateHappened returns a boolean if a field has been set.
func (o *EventAttributes) HasDeviceName() bool
HasDeviceName returns a boolean if a field has been set.
func (o *EventAttributes) HasDuration() bool
HasDuration returns a boolean if a field has been set.
func (o *EventAttributes) HasEventObject() bool
HasEventObject returns a boolean if a field has been set.
func (o *EventAttributes) HasEvt() bool
HasEvt returns a boolean if a field has been set.
func (o *EventAttributes) HasHostname() bool
HasHostname returns a boolean if a field has been set.
func (o *EventAttributes) HasMonitor() bool
HasMonitor returns a boolean if a field has been set.
func (o *EventAttributes) HasMonitorGroups() bool
HasMonitorGroups returns a boolean if a field has been set.
func (o *EventAttributes) HasMonitorId() bool
HasMonitorId returns a boolean if a field has been set.
func (o *EventAttributes) HasPriority() bool
HasPriority returns a boolean if a field has been set.
func (o *EventAttributes) HasRelatedEventId() bool
HasRelatedEventId returns a boolean if a field has been set.
func (o *EventAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *EventAttributes) HasSourceTypeName() bool
HasSourceTypeName returns a boolean if a field has been set.
func (o *EventAttributes) HasSourcecategory() bool
HasSourcecategory returns a boolean if a field has been set.
func (o *EventAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *EventAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *EventAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *EventAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o EventAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventAttributes) SetAggregationKey(v string)
SetAggregationKey gets a reference to the given string and assigns it to the AggregationKey field.
func (o *EventAttributes) SetDateHappened(v int64)
SetDateHappened gets a reference to the given int64 and assigns it to the DateHappened field.
func (o *EventAttributes) SetDeviceName(v string)
SetDeviceName gets a reference to the given string and assigns it to the DeviceName field.
func (o *EventAttributes) SetDuration(v int64)
SetDuration gets a reference to the given int64 and assigns it to the Duration field.
func (o *EventAttributes) SetEventObject(v string)
SetEventObject gets a reference to the given string and assigns it to the EventObject field.
func (o *EventAttributes) SetEvt(v Event)
SetEvt gets a reference to the given Event and assigns it to the Evt field.
func (o *EventAttributes) SetHostname(v string)
SetHostname gets a reference to the given string and assigns it to the Hostname field.
func (o *EventAttributes) SetMonitor(v MonitorType)
SetMonitor gets a reference to the given NullableMonitorType and assigns it to the Monitor field.
func (o *EventAttributes) SetMonitorGroups(v []string)
SetMonitorGroups gets a reference to the given datadog.NullableList[string] and assigns it to the MonitorGroups field.
func (o *EventAttributes) SetMonitorGroupsNil()
SetMonitorGroupsNil sets the value for MonitorGroups to be an explicit nil.
func (o *EventAttributes) SetMonitorId(v int64)
SetMonitorId gets a reference to the given datadog.NullableInt64 and assigns it to the MonitorId field.
func (o *EventAttributes) SetMonitorIdNil()
SetMonitorIdNil sets the value for MonitorId to be an explicit nil.
func (o *EventAttributes) SetMonitorNil()
SetMonitorNil sets the value for Monitor to be an explicit nil.
func (o *EventAttributes) SetPriority(v EventPriority)
SetPriority gets a reference to the given NullableEventPriority and assigns it to the Priority field.
func (o *EventAttributes) SetPriorityNil()
SetPriorityNil sets the value for Priority to be an explicit nil.
func (o *EventAttributes) SetRelatedEventId(v int64)
SetRelatedEventId gets a reference to the given int64 and assigns it to the RelatedEventId field.
func (o *EventAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *EventAttributes) SetSourceTypeName(v string)
SetSourceTypeName gets a reference to the given string and assigns it to the SourceTypeName field.
func (o *EventAttributes) SetSourcecategory(v string)
SetSourcecategory gets a reference to the given string and assigns it to the Sourcecategory field.
func (o *EventAttributes) SetStatus(v EventStatusType)
SetStatus gets a reference to the given EventStatusType and assigns it to the Status field.
func (o *EventAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *EventAttributes) SetTimestamp(v int64)
SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field.
func (o *EventAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *EventAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *EventAttributes) UnsetMonitor()
UnsetMonitor ensures that no value is present for Monitor, not even an explicit nil.
func (o *EventAttributes) UnsetMonitorGroups()
UnsetMonitorGroups ensures that no value is present for MonitorGroups, not even an explicit nil.
func (o *EventAttributes) UnsetMonitorId()
UnsetMonitorId ensures that no value is present for MonitorId, not even an explicit nil.
func (o *EventAttributes) UnsetPriority()
UnsetPriority ensures that no value is present for Priority, not even an explicit nil.
EventPriority The priority of the event's monitor. For example, `normal` or `low`.
type EventPriority string
List of EventPriority.
const (
EVENTPRIORITY_NORMAL EventPriority = "normal"
EVENTPRIORITY_LOW EventPriority = "low"
)
func NewEventPriorityFromValue(v string) (*EventPriority, error)
NewEventPriorityFromValue returns a pointer to a valid EventPriority for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventPriority) GetAllowedValues() []EventPriority
GetAllowedValues reeturns the list of possible values.
func (v EventPriority) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventPriority) Ptr() *EventPriority
Ptr returns reference to EventPriority value.
func (v *EventPriority) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventResponse The object description of an event after being processed and stored by Datadog.
type EventResponse struct {
// The object description of an event response attribute.
Attributes *EventResponseAttributes `json:"attributes,omitempty"`
// the unique ID of the event.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *EventType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventResponse() *EventResponse
NewEventResponse instantiates a new EventResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventResponseWithDefaults() *EventResponse
NewEventResponseWithDefaults instantiates a new EventResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventResponse) GetAttributes() EventResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *EventResponse) GetAttributesOk() (*EventResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *EventResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponse) GetType() EventType
GetType returns the Type field value if set, zero value otherwise.
func (o *EventResponse) GetTypeOk() (*EventType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponse) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *EventResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (o *EventResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o EventResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventResponse) SetAttributes(v EventResponseAttributes)
SetAttributes gets a reference to the given EventResponseAttributes and assigns it to the Attributes field.
func (o *EventResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *EventResponse) SetType(v EventType)
SetType gets a reference to the given EventType and assigns it to the Type field.
func (o *EventResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventResponseAttributes The object description of an event response attribute.
type EventResponseAttributes struct {
// Object description of attributes from your event.
Attributes *EventAttributes `json:"attributes,omitempty"`
// The message of the event.
Message *string `json:"message,omitempty"`
// An array of tags associated with the event.
Tags []string `json:"tags,omitempty"`
// The timestamp of the event.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventResponseAttributes() *EventResponseAttributes
NewEventResponseAttributes instantiates a new EventResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventResponseAttributesWithDefaults() *EventResponseAttributes
NewEventResponseAttributesWithDefaults instantiates a new EventResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventResponseAttributes) GetAttributes() EventAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *EventResponseAttributes) GetAttributesOk() (*EventAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponseAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *EventResponseAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponseAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *EventResponseAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponseAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *EventResponseAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponseAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *EventResponseAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *EventResponseAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *EventResponseAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o EventResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventResponseAttributes) SetAttributes(v EventAttributes)
SetAttributes gets a reference to the given EventAttributes and assigns it to the Attributes field.
func (o *EventResponseAttributes) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *EventResponseAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *EventResponseAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *EventResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventStatusType If an alert event is enabled, its status is one of the following: `failure`, `error`, `warning`, `info`, `success`, `user_update`, `recommendation`, or `snapshot`.
type EventStatusType string
List of EventStatusType.
const (
EVENTSTATUSTYPE_FAILURE EventStatusType = "failure"
EVENTSTATUSTYPE_ERROR EventStatusType = "error"
EVENTSTATUSTYPE_WARNING EventStatusType = "warning"
EVENTSTATUSTYPE_INFO EventStatusType = "info"
EVENTSTATUSTYPE_SUCCESS EventStatusType = "success"
EVENTSTATUSTYPE_USER_UPDATE EventStatusType = "user_update"
EVENTSTATUSTYPE_RECOMMENDATION EventStatusType = "recommendation"
EVENTSTATUSTYPE_SNAPSHOT EventStatusType = "snapshot"
)
func NewEventStatusTypeFromValue(v string) (*EventStatusType, error)
NewEventStatusTypeFromValue returns a pointer to a valid EventStatusType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventStatusType) GetAllowedValues() []EventStatusType
GetAllowedValues reeturns the list of possible values.
func (v EventStatusType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventStatusType) Ptr() *EventStatusType
Ptr returns reference to EventStatusType value.
func (v *EventStatusType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventType Type of the event.
type EventType string
List of EventType.
const (
EVENTTYPE_EVENT EventType = "event"
)
func NewEventTypeFromValue(v string) (*EventType, error)
NewEventTypeFromValue returns a pointer to a valid EventType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventType) GetAllowedValues() []EventType
GetAllowedValues reeturns the list of possible values.
func (v EventType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventType) Ptr() *EventType
Ptr returns reference to EventType value.
func (v *EventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventsAggregation The type of aggregation that can be performed on events-based queries.
type EventsAggregation string
List of EventsAggregation.
const (
EVENTSAGGREGATION_COUNT EventsAggregation = "count"
EVENTSAGGREGATION_CARDINALITY EventsAggregation = "cardinality"
EVENTSAGGREGATION_PC75 EventsAggregation = "pc75"
EVENTSAGGREGATION_PC90 EventsAggregation = "pc90"
EVENTSAGGREGATION_PC95 EventsAggregation = "pc95"
EVENTSAGGREGATION_PC98 EventsAggregation = "pc98"
EVENTSAGGREGATION_PC99 EventsAggregation = "pc99"
EVENTSAGGREGATION_SUM EventsAggregation = "sum"
EVENTSAGGREGATION_MIN EventsAggregation = "min"
EVENTSAGGREGATION_MAX EventsAggregation = "max"
EVENTSAGGREGATION_AVG EventsAggregation = "avg"
)
func NewEventsAggregationFromValue(v string) (*EventsAggregation, error)
NewEventsAggregationFromValue returns a pointer to a valid EventsAggregation for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventsAggregation) GetAllowedValues() []EventsAggregation
GetAllowedValues reeturns the list of possible values.
func (v EventsAggregation) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventsAggregation) Ptr() *EventsAggregation
Ptr returns reference to EventsAggregation value.
func (v *EventsAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventsApi service type
type EventsApi datadog.Service
func NewEventsApi(client *datadog.APIClient) *EventsApi
NewEventsApi Returns NewEventsApi.
func (a *EventsApi) ListEvents(ctx _context.Context, o ...ListEventsOptionalParameters) (EventsListResponse, *_nethttp.Response, error)
ListEvents Get a list of events. List endpoint returns events that match an events search query. [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
Use this endpoint to see your latest events.
func (a *EventsApi) ListEventsWithPagination(ctx _context.Context, o ...ListEventsOptionalParameters) (<-chan datadog.PaginationResult[EventResponse], func())
ListEventsWithPagination provides a paginated version of ListEvents returning a channel with all items.
func (a *EventsApi) SearchEvents(ctx _context.Context, o ...SearchEventsOptionalParameters) (EventsListResponse, *_nethttp.Response, error)
SearchEvents Search events. List endpoint returns events that match an events search query. [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
Use this endpoint to build complex events filtering and search.
func (a *EventsApi) SearchEventsWithPagination(ctx _context.Context, o ...SearchEventsOptionalParameters) (<-chan datadog.PaginationResult[EventResponse], func())
SearchEventsWithPagination provides a paginated version of SearchEvents returning a channel with all items.
EventsCompute The instructions for what to compute for this query.
type EventsCompute struct {
// The type of aggregation that can be performed on events-based queries.
Aggregation EventsAggregation `json:"aggregation"`
// Interval for compute in milliseconds.
Interval *int64 `json:"interval,omitempty"`
// The "measure" attribute on which to perform the computation.
Metric *string `json:"metric,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsCompute(aggregation EventsAggregation) *EventsCompute
NewEventsCompute instantiates a new EventsCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsComputeWithDefaults() *EventsCompute
NewEventsComputeWithDefaults instantiates a new EventsCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsCompute) GetAggregation() EventsAggregation
GetAggregation returns the Aggregation field value.
func (o *EventsCompute) GetAggregationOk() (*EventsAggregation, bool)
GetAggregationOk returns a tuple with the Aggregation field value and a boolean to check if the value has been set.
func (o *EventsCompute) GetInterval() int64
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *EventsCompute) GetIntervalOk() (*int64, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsCompute) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *EventsCompute) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsCompute) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *EventsCompute) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o EventsCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsCompute) SetAggregation(v EventsAggregation)
SetAggregation sets field value.
func (o *EventsCompute) SetInterval(v int64)
SetInterval gets a reference to the given int64 and assigns it to the Interval field.
func (o *EventsCompute) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *EventsCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsDataSource A data source that is powered by the Events Platform.
type EventsDataSource string
List of EventsDataSource.
const (
EVENTSDATASOURCE_LOGS EventsDataSource = "logs"
EVENTSDATASOURCE_RUM EventsDataSource = "rum"
)
func NewEventsDataSourceFromValue(v string) (*EventsDataSource, error)
NewEventsDataSourceFromValue returns a pointer to a valid EventsDataSource for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventsDataSource) GetAllowedValues() []EventsDataSource
GetAllowedValues reeturns the list of possible values.
func (v EventsDataSource) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventsDataSource) Ptr() *EventsDataSource
Ptr returns reference to EventsDataSource value.
func (v *EventsDataSource) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventsGroupBy A dimension on which to split a query's results.
type EventsGroupBy struct {
// The facet by which to split groups.
Facet string `json:"facet"`
// The maximum number of groups to return.
Limit *int32 `json:"limit,omitempty"`
// The dimension by which to sort a query's results.
Sort *EventsGroupBySort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsGroupBy(facet string) *EventsGroupBy
NewEventsGroupBy instantiates a new EventsGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsGroupByWithDefaults() *EventsGroupBy
NewEventsGroupByWithDefaults instantiates a new EventsGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsGroupBy) GetFacet() string
GetFacet returns the Facet field value.
func (o *EventsGroupBy) GetFacetOk() (*string, bool)
GetFacetOk returns a tuple with the Facet field value and a boolean to check if the value has been set.
func (o *EventsGroupBy) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *EventsGroupBy) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsGroupBy) GetSort() EventsGroupBySort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *EventsGroupBy) GetSortOk() (*EventsGroupBySort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsGroupBy) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *EventsGroupBy) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o EventsGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsGroupBy) SetFacet(v string)
SetFacet sets field value.
func (o *EventsGroupBy) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *EventsGroupBy) SetSort(v EventsGroupBySort)
SetSort gets a reference to the given EventsGroupBySort and assigns it to the Sort field.
func (o *EventsGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsGroupBySort The dimension by which to sort a query's results.
type EventsGroupBySort struct {
// The type of aggregation that can be performed on events-based queries.
Aggregation EventsAggregation `json:"aggregation"`
// The metric's calculated value which should be used to define the sort order of a query's results.
Metric *string `json:"metric,omitempty"`
// Direction of sort.
Order *QuerySortOrder `json:"order,omitempty"`
// The type of sort to use on the calculated value.
Type *EventsSortType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsGroupBySort(aggregation EventsAggregation) *EventsGroupBySort
NewEventsGroupBySort instantiates a new EventsGroupBySort object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsGroupBySortWithDefaults() *EventsGroupBySort
NewEventsGroupBySortWithDefaults instantiates a new EventsGroupBySort object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsGroupBySort) GetAggregation() EventsAggregation
GetAggregation returns the Aggregation field value.
func (o *EventsGroupBySort) GetAggregationOk() (*EventsAggregation, bool)
GetAggregationOk returns a tuple with the Aggregation field value and a boolean to check if the value has been set.
func (o *EventsGroupBySort) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *EventsGroupBySort) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsGroupBySort) GetOrder() QuerySortOrder
GetOrder returns the Order field value if set, zero value otherwise.
func (o *EventsGroupBySort) GetOrderOk() (*QuerySortOrder, bool)
GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsGroupBySort) GetType() EventsSortType
GetType returns the Type field value if set, zero value otherwise.
func (o *EventsGroupBySort) GetTypeOk() (*EventsSortType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsGroupBySort) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *EventsGroupBySort) HasOrder() bool
HasOrder returns a boolean if a field has been set.
func (o *EventsGroupBySort) HasType() bool
HasType returns a boolean if a field has been set.
func (o EventsGroupBySort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsGroupBySort) SetAggregation(v EventsAggregation)
SetAggregation sets field value.
func (o *EventsGroupBySort) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *EventsGroupBySort) SetOrder(v QuerySortOrder)
SetOrder gets a reference to the given QuerySortOrder and assigns it to the Order field.
func (o *EventsGroupBySort) SetType(v EventsSortType)
SetType gets a reference to the given EventsSortType and assigns it to the Type field.
func (o *EventsGroupBySort) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsListRequest The object sent with the request to retrieve a list of events from your organization.
type EventsListRequest struct {
// The search and filter query settings.
Filter *EventsQueryFilter `json:"filter,omitempty"`
// The global query options that are used. Either provide a timezone or a time offset but not both,
// otherwise the query fails.
Options *EventsQueryOptions `json:"options,omitempty"`
// Pagination settings.
Page *EventsRequestPage `json:"page,omitempty"`
// The sort parameters when querying events.
Sort *EventsSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsListRequest() *EventsListRequest
NewEventsListRequest instantiates a new EventsListRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsListRequestWithDefaults() *EventsListRequest
NewEventsListRequestWithDefaults instantiates a new EventsListRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsListRequest) GetFilter() EventsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *EventsListRequest) GetFilterOk() (*EventsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListRequest) GetOptions() EventsQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *EventsListRequest) GetOptionsOk() (*EventsQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListRequest) GetPage() EventsRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *EventsListRequest) GetPageOk() (*EventsRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListRequest) GetSort() EventsSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *EventsListRequest) GetSortOk() (*EventsSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *EventsListRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *EventsListRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *EventsListRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o EventsListRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsListRequest) SetFilter(v EventsQueryFilter)
SetFilter gets a reference to the given EventsQueryFilter and assigns it to the Filter field.
func (o *EventsListRequest) SetOptions(v EventsQueryOptions)
SetOptions gets a reference to the given EventsQueryOptions and assigns it to the Options field.
func (o *EventsListRequest) SetPage(v EventsRequestPage)
SetPage gets a reference to the given EventsRequestPage and assigns it to the Page field.
func (o *EventsListRequest) SetSort(v EventsSort)
SetSort gets a reference to the given EventsSort and assigns it to the Sort field.
func (o *EventsListRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsListResponse The response object with all events matching the request and pagination information.
type EventsListResponse struct {
// An array of events matching the request.
Data []EventResponse `json:"data,omitempty"`
// Links attributes.
Links *EventsListResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *EventsResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsListResponse() *EventsListResponse
NewEventsListResponse instantiates a new EventsListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsListResponseWithDefaults() *EventsListResponse
NewEventsListResponseWithDefaults instantiates a new EventsListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsListResponse) GetData() []EventResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *EventsListResponse) GetDataOk() (*[]EventResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListResponse) GetLinks() EventsListResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *EventsListResponse) GetLinksOk() (*EventsListResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListResponse) GetMeta() EventsResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *EventsListResponse) GetMetaOk() (*EventsResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *EventsListResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *EventsListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o EventsListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsListResponse) SetData(v []EventResponse)
SetData gets a reference to the given []EventResponse and assigns it to the Data field.
func (o *EventsListResponse) SetLinks(v EventsListResponseLinks)
SetLinks gets a reference to the given EventsListResponseLinks and assigns it to the Links field.
func (o *EventsListResponse) SetMeta(v EventsResponseMetadata)
SetMeta gets a reference to the given EventsResponseMetadata and assigns it to the Meta field.
func (o *EventsListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsListResponseLinks Links attributes.
type EventsListResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsListResponseLinks() *EventsListResponseLinks
NewEventsListResponseLinks instantiates a new EventsListResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsListResponseLinksWithDefaults() *EventsListResponseLinks
NewEventsListResponseLinksWithDefaults instantiates a new EventsListResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsListResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *EventsListResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o EventsListResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsListResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *EventsListResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsQueryFilter The search and filter query settings.
type EventsQueryFilter struct {
// The minimum time for the requested events. Supports date math and regular timestamps in milliseconds.
From *string `json:"from,omitempty"`
// The search query following the event search syntax.
Query *string `json:"query,omitempty"`
// The maximum time for the requested events. Supports date math and regular timestamps in milliseconds.
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsQueryFilter() *EventsQueryFilter
NewEventsQueryFilter instantiates a new EventsQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsQueryFilterWithDefaults() *EventsQueryFilter
NewEventsQueryFilterWithDefaults instantiates a new EventsQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *EventsQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *EventsQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *EventsQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *EventsQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *EventsQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o EventsQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *EventsQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *EventsQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *EventsQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsQueryOptions The global query options that are used. Either provide a timezone or a time offset but not both, otherwise the query fails.
type EventsQueryOptions struct {
// The time offset to apply to the query in seconds.
TimeOffset *int64 `json:"timeOffset,omitempty"`
// The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York).
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsQueryOptions() *EventsQueryOptions
NewEventsQueryOptions instantiates a new EventsQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsQueryOptionsWithDefaults() *EventsQueryOptions
NewEventsQueryOptionsWithDefaults instantiates a new EventsQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *EventsQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *EventsQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *EventsQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o EventsQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *EventsQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *EventsQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsRequestPage Pagination settings.
type EventsRequestPage struct {
// The returned paging point to use to get the next results.
Cursor *string `json:"cursor,omitempty"`
// The maximum number of logs in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsRequestPage() *EventsRequestPage
NewEventsRequestPage instantiates a new EventsRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsRequestPageWithDefaults() *EventsRequestPage
NewEventsRequestPageWithDefaults instantiates a new EventsRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *EventsRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsRequestPage) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *EventsRequestPage) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *EventsRequestPage) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o EventsRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *EventsRequestPage) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *EventsRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsResponseMetadata The metadata associated with a request.
type EventsResponseMetadata struct {
// The time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// Pagination attributes.
Page *EventsResponseMetadataPage `json:"page,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The request status.
Status *string `json:"status,omitempty"`
// A list of warnings (non-fatal errors) encountered. Partial results might be returned if
// warnings are present in the response.
Warnings []EventsWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsResponseMetadata() *EventsResponseMetadata
NewEventsResponseMetadata instantiates a new EventsResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsResponseMetadataWithDefaults() *EventsResponseMetadata
NewEventsResponseMetadataWithDefaults instantiates a new EventsResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) GetPage() EventsResponseMetadataPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetPageOk() (*EventsResponseMetadataPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) GetWarnings() []EventsWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetWarningsOk() (*[]EventsWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *EventsResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *EventsResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *EventsResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *EventsResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o EventsResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *EventsResponseMetadata) SetPage(v EventsResponseMetadataPage)
SetPage gets a reference to the given EventsResponseMetadataPage and assigns it to the Page field.
func (o *EventsResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *EventsResponseMetadata) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *EventsResponseMetadata) SetWarnings(v []EventsWarning)
SetWarnings gets a reference to the given []EventsWarning and assigns it to the Warnings field.
func (o *EventsResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsResponseMetadataPage Pagination attributes.
type EventsResponseMetadataPage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsResponseMetadataPage() *EventsResponseMetadataPage
NewEventsResponseMetadataPage instantiates a new EventsResponseMetadataPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsResponseMetadataPageWithDefaults() *EventsResponseMetadataPage
NewEventsResponseMetadataPageWithDefaults instantiates a new EventsResponseMetadataPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsResponseMetadataPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *EventsResponseMetadataPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadataPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o EventsResponseMetadataPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsResponseMetadataPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *EventsResponseMetadataPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsScalarQuery An individual scalar events query.
type EventsScalarQuery struct {
// The instructions for what to compute for this query.
Compute EventsCompute `json:"compute"`
// A data source that is powered by the Events Platform.
DataSource EventsDataSource `json:"data_source"`
// The list of facets on which to split results.
GroupBy []EventsGroupBy `json:"group_by,omitempty"`
// The indexes in which to search.
Indexes []string `json:"indexes,omitempty"`
// The variable name for use in formulas.
Name *string `json:"name,omitempty"`
// Configuration of the search/filter for an events query.
Search *EventsSearch `json:"search,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsScalarQuery(compute EventsCompute, dataSource EventsDataSource) *EventsScalarQuery
NewEventsScalarQuery instantiates a new EventsScalarQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsScalarQueryWithDefaults() *EventsScalarQuery
NewEventsScalarQueryWithDefaults instantiates a new EventsScalarQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsScalarQuery) GetCompute() EventsCompute
GetCompute returns the Compute field value.
func (o *EventsScalarQuery) GetComputeOk() (*EventsCompute, bool)
GetComputeOk returns a tuple with the Compute field value and a boolean to check if the value has been set.
func (o *EventsScalarQuery) GetDataSource() EventsDataSource
GetDataSource returns the DataSource field value.
func (o *EventsScalarQuery) GetDataSourceOk() (*EventsDataSource, bool)
GetDataSourceOk returns a tuple with the DataSource field value and a boolean to check if the value has been set.
func (o *EventsScalarQuery) GetGroupBy() []EventsGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *EventsScalarQuery) GetGroupByOk() (*[]EventsGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsScalarQuery) GetIndexes() []string
GetIndexes returns the Indexes field value if set, zero value otherwise.
func (o *EventsScalarQuery) GetIndexesOk() (*[]string, bool)
GetIndexesOk returns a tuple with the Indexes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsScalarQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *EventsScalarQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsScalarQuery) GetSearch() EventsSearch
GetSearch returns the Search field value if set, zero value otherwise.
func (o *EventsScalarQuery) GetSearchOk() (*EventsSearch, bool)
GetSearchOk returns a tuple with the Search field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsScalarQuery) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *EventsScalarQuery) HasIndexes() bool
HasIndexes returns a boolean if a field has been set.
func (o *EventsScalarQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o *EventsScalarQuery) HasSearch() bool
HasSearch returns a boolean if a field has been set.
func (o EventsScalarQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsScalarQuery) SetCompute(v EventsCompute)
SetCompute sets field value.
func (o *EventsScalarQuery) SetDataSource(v EventsDataSource)
SetDataSource sets field value.
func (o *EventsScalarQuery) SetGroupBy(v []EventsGroupBy)
SetGroupBy gets a reference to the given []EventsGroupBy and assigns it to the GroupBy field.
func (o *EventsScalarQuery) SetIndexes(v []string)
SetIndexes gets a reference to the given []string and assigns it to the Indexes field.
func (o *EventsScalarQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *EventsScalarQuery) SetSearch(v EventsSearch)
SetSearch gets a reference to the given EventsSearch and assigns it to the Search field.
func (o *EventsScalarQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsSearch Configuration of the search/filter for an events query.
type EventsSearch struct {
// The search/filter string for an events query.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsSearch() *EventsSearch
NewEventsSearch instantiates a new EventsSearch object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsSearchWithDefaults() *EventsSearch
NewEventsSearchWithDefaults instantiates a new EventsSearch object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsSearch) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *EventsSearch) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsSearch) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o EventsSearch) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsSearch) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *EventsSearch) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsSort The sort parameters when querying events.
type EventsSort string
List of EventsSort.
const (
EVENTSSORT_TIMESTAMP_ASCENDING EventsSort = "timestamp"
EVENTSSORT_TIMESTAMP_DESCENDING EventsSort = "-timestamp"
)
func NewEventsSortFromValue(v string) (*EventsSort, error)
NewEventsSortFromValue returns a pointer to a valid EventsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventsSort) GetAllowedValues() []EventsSort
GetAllowedValues reeturns the list of possible values.
func (v EventsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventsSort) Ptr() *EventsSort
Ptr returns reference to EventsSort value.
func (v *EventsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventsSortType The type of sort to use on the calculated value.
type EventsSortType string
List of EventsSortType.
const (
EVENTSSORTTYPE_ALPHABETICAL EventsSortType = "alphabetical"
EVENTSSORTTYPE_MEASURE EventsSortType = "measure"
)
func NewEventsSortTypeFromValue(v string) (*EventsSortType, error)
NewEventsSortTypeFromValue returns a pointer to a valid EventsSortType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventsSortType) GetAllowedValues() []EventsSortType
GetAllowedValues reeturns the list of possible values.
func (v EventsSortType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventsSortType) Ptr() *EventsSortType
Ptr returns reference to EventsSortType value.
func (v *EventsSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventsTimeseriesQuery An individual timeseries events query.
type EventsTimeseriesQuery struct {
// The instructions for what to compute for this query.
Compute EventsCompute `json:"compute"`
// A data source that is powered by the Events Platform.
DataSource EventsDataSource `json:"data_source"`
// The list of facets on which to split results.
GroupBy []EventsGroupBy `json:"group_by,omitempty"`
// The indexes in which to search.
Indexes []string `json:"indexes,omitempty"`
// The variable name for use in formulas.
Name *string `json:"name,omitempty"`
// Configuration of the search/filter for an events query.
Search *EventsSearch `json:"search,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsTimeseriesQuery(compute EventsCompute, dataSource EventsDataSource) *EventsTimeseriesQuery
NewEventsTimeseriesQuery instantiates a new EventsTimeseriesQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsTimeseriesQueryWithDefaults() *EventsTimeseriesQuery
NewEventsTimeseriesQueryWithDefaults instantiates a new EventsTimeseriesQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsTimeseriesQuery) GetCompute() EventsCompute
GetCompute returns the Compute field value.
func (o *EventsTimeseriesQuery) GetComputeOk() (*EventsCompute, bool)
GetComputeOk returns a tuple with the Compute field value and a boolean to check if the value has been set.
func (o *EventsTimeseriesQuery) GetDataSource() EventsDataSource
GetDataSource returns the DataSource field value.
func (o *EventsTimeseriesQuery) GetDataSourceOk() (*EventsDataSource, bool)
GetDataSourceOk returns a tuple with the DataSource field value and a boolean to check if the value has been set.
func (o *EventsTimeseriesQuery) GetGroupBy() []EventsGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *EventsTimeseriesQuery) GetGroupByOk() (*[]EventsGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsTimeseriesQuery) GetIndexes() []string
GetIndexes returns the Indexes field value if set, zero value otherwise.
func (o *EventsTimeseriesQuery) GetIndexesOk() (*[]string, bool)
GetIndexesOk returns a tuple with the Indexes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsTimeseriesQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *EventsTimeseriesQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsTimeseriesQuery) GetSearch() EventsSearch
GetSearch returns the Search field value if set, zero value otherwise.
func (o *EventsTimeseriesQuery) GetSearchOk() (*EventsSearch, bool)
GetSearchOk returns a tuple with the Search field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsTimeseriesQuery) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *EventsTimeseriesQuery) HasIndexes() bool
HasIndexes returns a boolean if a field has been set.
func (o *EventsTimeseriesQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o *EventsTimeseriesQuery) HasSearch() bool
HasSearch returns a boolean if a field has been set.
func (o EventsTimeseriesQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsTimeseriesQuery) SetCompute(v EventsCompute)
SetCompute sets field value.
func (o *EventsTimeseriesQuery) SetDataSource(v EventsDataSource)
SetDataSource sets field value.
func (o *EventsTimeseriesQuery) SetGroupBy(v []EventsGroupBy)
SetGroupBy gets a reference to the given []EventsGroupBy and assigns it to the GroupBy field.
func (o *EventsTimeseriesQuery) SetIndexes(v []string)
SetIndexes gets a reference to the given []string and assigns it to the Indexes field.
func (o *EventsTimeseriesQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *EventsTimeseriesQuery) SetSearch(v EventsSearch)
SetSearch gets a reference to the given EventsSearch and assigns it to the Search field.
func (o *EventsTimeseriesQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsWarning A warning message indicating something is wrong with the query.
type EventsWarning struct {
// A unique code for this type of warning.
Code *string `json:"code,omitempty"`
// A detailed explanation of this specific warning.
Detail *string `json:"detail,omitempty"`
// A short human-readable summary of the warning.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsWarning() *EventsWarning
NewEventsWarning instantiates a new EventsWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsWarningWithDefaults() *EventsWarning
NewEventsWarningWithDefaults instantiates a new EventsWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *EventsWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *EventsWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *EventsWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *EventsWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *EventsWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o EventsWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *EventsWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *EventsWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *EventsWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccounResponseAttributes Attributes object of a Fastly account.
type FastlyAccounResponseAttributes struct {
// The name of the Fastly account.
Name string `json:"name"`
// A list of services belonging to the parent account.
Services []FastlyService `json:"services,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccounResponseAttributes(name string) *FastlyAccounResponseAttributes
NewFastlyAccounResponseAttributes instantiates a new FastlyAccounResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccounResponseAttributesWithDefaults() *FastlyAccounResponseAttributes
NewFastlyAccounResponseAttributesWithDefaults instantiates a new FastlyAccounResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccounResponseAttributes) GetName() string
GetName returns the Name field value.
func (o *FastlyAccounResponseAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *FastlyAccounResponseAttributes) GetServices() []FastlyService
GetServices returns the Services field value if set, zero value otherwise.
func (o *FastlyAccounResponseAttributes) GetServicesOk() (*[]FastlyService, bool)
GetServicesOk returns a tuple with the Services field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyAccounResponseAttributes) HasServices() bool
HasServices returns a boolean if a field has been set.
func (o FastlyAccounResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccounResponseAttributes) SetName(v string)
SetName sets field value.
func (o *FastlyAccounResponseAttributes) SetServices(v []FastlyService)
SetServices gets a reference to the given []FastlyService and assigns it to the Services field.
func (o *FastlyAccounResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountCreateRequest Payload schema when adding a Fastly account.
type FastlyAccountCreateRequest struct {
// Data object for creating a Fastly account.
Data FastlyAccountCreateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountCreateRequest(data FastlyAccountCreateRequestData) *FastlyAccountCreateRequest
NewFastlyAccountCreateRequest instantiates a new FastlyAccountCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountCreateRequestWithDefaults() *FastlyAccountCreateRequest
NewFastlyAccountCreateRequestWithDefaults instantiates a new FastlyAccountCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountCreateRequest) GetData() FastlyAccountCreateRequestData
GetData returns the Data field value.
func (o *FastlyAccountCreateRequest) GetDataOk() (*FastlyAccountCreateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o FastlyAccountCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountCreateRequest) SetData(v FastlyAccountCreateRequestData)
SetData sets field value.
func (o *FastlyAccountCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountCreateRequestAttributes Attributes object for creating a Fastly account.
type FastlyAccountCreateRequestAttributes struct {
// The API key for the Fastly account.
ApiKey string `json:"api_key"`
// The name of the Fastly account.
Name string `json:"name"`
// A list of services belonging to the parent account.
Services []FastlyService `json:"services,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountCreateRequestAttributes(apiKey string, name string) *FastlyAccountCreateRequestAttributes
NewFastlyAccountCreateRequestAttributes instantiates a new FastlyAccountCreateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountCreateRequestAttributesWithDefaults() *FastlyAccountCreateRequestAttributes
NewFastlyAccountCreateRequestAttributesWithDefaults instantiates a new FastlyAccountCreateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountCreateRequestAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *FastlyAccountCreateRequestAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *FastlyAccountCreateRequestAttributes) GetName() string
GetName returns the Name field value.
func (o *FastlyAccountCreateRequestAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *FastlyAccountCreateRequestAttributes) GetServices() []FastlyService
GetServices returns the Services field value if set, zero value otherwise.
func (o *FastlyAccountCreateRequestAttributes) GetServicesOk() (*[]FastlyService, bool)
GetServicesOk returns a tuple with the Services field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyAccountCreateRequestAttributes) HasServices() bool
HasServices returns a boolean if a field has been set.
func (o FastlyAccountCreateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountCreateRequestAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *FastlyAccountCreateRequestAttributes) SetName(v string)
SetName sets field value.
func (o *FastlyAccountCreateRequestAttributes) SetServices(v []FastlyService)
SetServices gets a reference to the given []FastlyService and assigns it to the Services field.
func (o *FastlyAccountCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountCreateRequestData Data object for creating a Fastly account.
type FastlyAccountCreateRequestData struct {
// Attributes object for creating a Fastly account.
Attributes FastlyAccountCreateRequestAttributes `json:"attributes"`
// The JSON:API type for this API. Should always be `fastly-accounts`.
Type FastlyAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountCreateRequestData(attributes FastlyAccountCreateRequestAttributes, typeVar FastlyAccountType) *FastlyAccountCreateRequestData
NewFastlyAccountCreateRequestData instantiates a new FastlyAccountCreateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountCreateRequestDataWithDefaults() *FastlyAccountCreateRequestData
NewFastlyAccountCreateRequestDataWithDefaults instantiates a new FastlyAccountCreateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountCreateRequestData) GetAttributes() FastlyAccountCreateRequestAttributes
GetAttributes returns the Attributes field value.
func (o *FastlyAccountCreateRequestData) GetAttributesOk() (*FastlyAccountCreateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *FastlyAccountCreateRequestData) GetType() FastlyAccountType
GetType returns the Type field value.
func (o *FastlyAccountCreateRequestData) GetTypeOk() (*FastlyAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o FastlyAccountCreateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountCreateRequestData) SetAttributes(v FastlyAccountCreateRequestAttributes)
SetAttributes sets field value.
func (o *FastlyAccountCreateRequestData) SetType(v FastlyAccountType)
SetType sets field value.
func (o *FastlyAccountCreateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountResponse The expected response schema when getting a Fastly account.
type FastlyAccountResponse struct {
// Data object of a Fastly account.
Data *FastlyAccountResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountResponse() *FastlyAccountResponse
NewFastlyAccountResponse instantiates a new FastlyAccountResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountResponseWithDefaults() *FastlyAccountResponse
NewFastlyAccountResponseWithDefaults instantiates a new FastlyAccountResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountResponse) GetData() FastlyAccountResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *FastlyAccountResponse) GetDataOk() (*FastlyAccountResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyAccountResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o FastlyAccountResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountResponse) SetData(v FastlyAccountResponseData)
SetData gets a reference to the given FastlyAccountResponseData and assigns it to the Data field.
func (o *FastlyAccountResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountResponseData Data object of a Fastly account.
type FastlyAccountResponseData struct {
// Attributes object of a Fastly account.
Attributes FastlyAccounResponseAttributes `json:"attributes"`
// The ID of the Fastly account, a hash of the account name.
Id string `json:"id"`
// The JSON:API type for this API. Should always be `fastly-accounts`.
Type FastlyAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountResponseData(attributes FastlyAccounResponseAttributes, id string, typeVar FastlyAccountType) *FastlyAccountResponseData
NewFastlyAccountResponseData instantiates a new FastlyAccountResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountResponseDataWithDefaults() *FastlyAccountResponseData
NewFastlyAccountResponseDataWithDefaults instantiates a new FastlyAccountResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountResponseData) GetAttributes() FastlyAccounResponseAttributes
GetAttributes returns the Attributes field value.
func (o *FastlyAccountResponseData) GetAttributesOk() (*FastlyAccounResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *FastlyAccountResponseData) GetId() string
GetId returns the Id field value.
func (o *FastlyAccountResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *FastlyAccountResponseData) GetType() FastlyAccountType
GetType returns the Type field value.
func (o *FastlyAccountResponseData) GetTypeOk() (*FastlyAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o FastlyAccountResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountResponseData) SetAttributes(v FastlyAccounResponseAttributes)
SetAttributes sets field value.
func (o *FastlyAccountResponseData) SetId(v string)
SetId sets field value.
func (o *FastlyAccountResponseData) SetType(v FastlyAccountType)
SetType sets field value.
func (o *FastlyAccountResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountType The JSON:API type for this API. Should always be `fastly-accounts`.
type FastlyAccountType string
List of FastlyAccountType.
const (
FASTLYACCOUNTTYPE_FASTLY_ACCOUNTS FastlyAccountType = "fastly-accounts"
)
func NewFastlyAccountTypeFromValue(v string) (*FastlyAccountType, error)
NewFastlyAccountTypeFromValue returns a pointer to a valid FastlyAccountType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *FastlyAccountType) GetAllowedValues() []FastlyAccountType
GetAllowedValues reeturns the list of possible values.
func (v FastlyAccountType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v FastlyAccountType) Ptr() *FastlyAccountType
Ptr returns reference to FastlyAccountType value.
func (v *FastlyAccountType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
FastlyAccountUpdateRequest Payload schema when updating a Fastly account.
type FastlyAccountUpdateRequest struct {
// Data object for updating a Fastly account.
Data FastlyAccountUpdateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountUpdateRequest(data FastlyAccountUpdateRequestData) *FastlyAccountUpdateRequest
NewFastlyAccountUpdateRequest instantiates a new FastlyAccountUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountUpdateRequestWithDefaults() *FastlyAccountUpdateRequest
NewFastlyAccountUpdateRequestWithDefaults instantiates a new FastlyAccountUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountUpdateRequest) GetData() FastlyAccountUpdateRequestData
GetData returns the Data field value.
func (o *FastlyAccountUpdateRequest) GetDataOk() (*FastlyAccountUpdateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o FastlyAccountUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountUpdateRequest) SetData(v FastlyAccountUpdateRequestData)
SetData sets field value.
func (o *FastlyAccountUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountUpdateRequestAttributes Attributes object for updating a Fastly account.
type FastlyAccountUpdateRequestAttributes struct {
// The API key of the Fastly account.
ApiKey *string `json:"api_key,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountUpdateRequestAttributes() *FastlyAccountUpdateRequestAttributes
NewFastlyAccountUpdateRequestAttributes instantiates a new FastlyAccountUpdateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountUpdateRequestAttributesWithDefaults() *FastlyAccountUpdateRequestAttributes
NewFastlyAccountUpdateRequestAttributesWithDefaults instantiates a new FastlyAccountUpdateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountUpdateRequestAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value if set, zero value otherwise.
func (o *FastlyAccountUpdateRequestAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyAccountUpdateRequestAttributes) HasApiKey() bool
HasApiKey returns a boolean if a field has been set.
func (o FastlyAccountUpdateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountUpdateRequestAttributes) SetApiKey(v string)
SetApiKey gets a reference to the given string and assigns it to the ApiKey field.
func (o *FastlyAccountUpdateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountUpdateRequestData Data object for updating a Fastly account.
type FastlyAccountUpdateRequestData struct {
// Attributes object for updating a Fastly account.
Attributes *FastlyAccountUpdateRequestAttributes `json:"attributes,omitempty"`
// The JSON:API type for this API. Should always be `fastly-accounts`.
Type *FastlyAccountType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountUpdateRequestData() *FastlyAccountUpdateRequestData
NewFastlyAccountUpdateRequestData instantiates a new FastlyAccountUpdateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountUpdateRequestDataWithDefaults() *FastlyAccountUpdateRequestData
NewFastlyAccountUpdateRequestDataWithDefaults instantiates a new FastlyAccountUpdateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountUpdateRequestData) GetAttributes() FastlyAccountUpdateRequestAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *FastlyAccountUpdateRequestData) GetAttributesOk() (*FastlyAccountUpdateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyAccountUpdateRequestData) GetType() FastlyAccountType
GetType returns the Type field value if set, zero value otherwise.
func (o *FastlyAccountUpdateRequestData) GetTypeOk() (*FastlyAccountType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyAccountUpdateRequestData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *FastlyAccountUpdateRequestData) HasType() bool
HasType returns a boolean if a field has been set.
func (o FastlyAccountUpdateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountUpdateRequestData) SetAttributes(v FastlyAccountUpdateRequestAttributes)
SetAttributes gets a reference to the given FastlyAccountUpdateRequestAttributes and assigns it to the Attributes field.
func (o *FastlyAccountUpdateRequestData) SetType(v FastlyAccountType)
SetType gets a reference to the given FastlyAccountType and assigns it to the Type field.
func (o *FastlyAccountUpdateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyAccountsResponse The expected response schema when getting Fastly accounts.
type FastlyAccountsResponse struct {
// The JSON:API data schema.
Data []FastlyAccountResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyAccountsResponse() *FastlyAccountsResponse
NewFastlyAccountsResponse instantiates a new FastlyAccountsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyAccountsResponseWithDefaults() *FastlyAccountsResponse
NewFastlyAccountsResponseWithDefaults instantiates a new FastlyAccountsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyAccountsResponse) GetData() []FastlyAccountResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *FastlyAccountsResponse) GetDataOk() (*[]FastlyAccountResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyAccountsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o FastlyAccountsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyAccountsResponse) SetData(v []FastlyAccountResponseData)
SetData gets a reference to the given []FastlyAccountResponseData and assigns it to the Data field.
func (o *FastlyAccountsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyIntegrationApi service type
type FastlyIntegrationApi datadog.Service
func NewFastlyIntegrationApi(client *datadog.APIClient) *FastlyIntegrationApi
NewFastlyIntegrationApi Returns NewFastlyIntegrationApi.
func (a *FastlyIntegrationApi) CreateFastlyAccount(ctx _context.Context, body FastlyAccountCreateRequest) (FastlyAccountResponse, *_nethttp.Response, error)
CreateFastlyAccount Add Fastly account. Create a Fastly account.
func (a *FastlyIntegrationApi) CreateFastlyService(ctx _context.Context, accountId string, body FastlyServiceRequest) (FastlyServiceResponse, *_nethttp.Response, error)
CreateFastlyService Add Fastly service. Create a Fastly service for an account.
func (a *FastlyIntegrationApi) DeleteFastlyAccount(ctx _context.Context, accountId string) (*_nethttp.Response, error)
DeleteFastlyAccount Delete Fastly account. Delete a Fastly account.
func (a *FastlyIntegrationApi) DeleteFastlyService(ctx _context.Context, accountId string, serviceId string) (*_nethttp.Response, error)
DeleteFastlyService Delete Fastly service. Delete a Fastly service for an account.
func (a *FastlyIntegrationApi) GetFastlyAccount(ctx _context.Context, accountId string) (FastlyAccountResponse, *_nethttp.Response, error)
GetFastlyAccount Get Fastly account. Get a Fastly account.
func (a *FastlyIntegrationApi) GetFastlyService(ctx _context.Context, accountId string, serviceId string) (FastlyServiceResponse, *_nethttp.Response, error)
GetFastlyService Get Fastly service. Get a Fastly service for an account.
func (a *FastlyIntegrationApi) ListFastlyAccounts(ctx _context.Context) (FastlyAccountsResponse, *_nethttp.Response, error)
ListFastlyAccounts List Fastly accounts. List Fastly accounts.
func (a *FastlyIntegrationApi) ListFastlyServices(ctx _context.Context, accountId string) (FastlyServicesResponse, *_nethttp.Response, error)
ListFastlyServices List Fastly services. List Fastly services for an account.
func (a *FastlyIntegrationApi) UpdateFastlyAccount(ctx _context.Context, accountId string, body FastlyAccountUpdateRequest) (FastlyAccountResponse, *_nethttp.Response, error)
UpdateFastlyAccount Update Fastly account. Update a Fastly account.
func (a *FastlyIntegrationApi) UpdateFastlyService(ctx _context.Context, accountId string, serviceId string, body FastlyServiceRequest) (FastlyServiceResponse, *_nethttp.Response, error)
UpdateFastlyService Update Fastly service. Update a Fastly service for an account.
FastlyService The schema representation of a Fastly service.
type FastlyService struct {
// The id of the Fastly service
Id string `json:"id"`
// A list of tags for the Fastly service.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyService(id string) *FastlyService
NewFastlyService instantiates a new FastlyService object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyServiceWithDefaults() *FastlyService
NewFastlyServiceWithDefaults instantiates a new FastlyService object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyService) GetId() string
GetId returns the Id field value.
func (o *FastlyService) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *FastlyService) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *FastlyService) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyService) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o FastlyService) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyService) SetId(v string)
SetId sets field value.
func (o *FastlyService) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *FastlyService) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyServiceAttributes Attributes object for Fastly service requests.
type FastlyServiceAttributes struct {
// A list of tags for the Fastly service.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyServiceAttributes() *FastlyServiceAttributes
NewFastlyServiceAttributes instantiates a new FastlyServiceAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyServiceAttributesWithDefaults() *FastlyServiceAttributes
NewFastlyServiceAttributesWithDefaults instantiates a new FastlyServiceAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyServiceAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *FastlyServiceAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyServiceAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o FastlyServiceAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyServiceAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *FastlyServiceAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyServiceData Data object for Fastly service requests.
type FastlyServiceData struct {
// Attributes object for Fastly service requests.
Attributes *FastlyServiceAttributes `json:"attributes,omitempty"`
// The ID of the Fastly service.
Id string `json:"id"`
// The JSON:API type for this API. Should always be `fastly-services`.
Type FastlyServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyServiceData(id string, typeVar FastlyServiceType) *FastlyServiceData
NewFastlyServiceData instantiates a new FastlyServiceData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyServiceDataWithDefaults() *FastlyServiceData
NewFastlyServiceDataWithDefaults instantiates a new FastlyServiceData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyServiceData) GetAttributes() FastlyServiceAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *FastlyServiceData) GetAttributesOk() (*FastlyServiceAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyServiceData) GetId() string
GetId returns the Id field value.
func (o *FastlyServiceData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *FastlyServiceData) GetType() FastlyServiceType
GetType returns the Type field value.
func (o *FastlyServiceData) GetTypeOk() (*FastlyServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *FastlyServiceData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o FastlyServiceData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyServiceData) SetAttributes(v FastlyServiceAttributes)
SetAttributes gets a reference to the given FastlyServiceAttributes and assigns it to the Attributes field.
func (o *FastlyServiceData) SetId(v string)
SetId sets field value.
func (o *FastlyServiceData) SetType(v FastlyServiceType)
SetType sets field value.
func (o *FastlyServiceData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyServiceRequest Payload schema for Fastly service requests.
type FastlyServiceRequest struct {
// Data object for Fastly service requests.
Data FastlyServiceData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyServiceRequest(data FastlyServiceData) *FastlyServiceRequest
NewFastlyServiceRequest instantiates a new FastlyServiceRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyServiceRequestWithDefaults() *FastlyServiceRequest
NewFastlyServiceRequestWithDefaults instantiates a new FastlyServiceRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyServiceRequest) GetData() FastlyServiceData
GetData returns the Data field value.
func (o *FastlyServiceRequest) GetDataOk() (*FastlyServiceData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o FastlyServiceRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyServiceRequest) SetData(v FastlyServiceData)
SetData sets field value.
func (o *FastlyServiceRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyServiceResponse The expected response schema when getting a Fastly service.
type FastlyServiceResponse struct {
// Data object for Fastly service requests.
Data *FastlyServiceData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyServiceResponse() *FastlyServiceResponse
NewFastlyServiceResponse instantiates a new FastlyServiceResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyServiceResponseWithDefaults() *FastlyServiceResponse
NewFastlyServiceResponseWithDefaults instantiates a new FastlyServiceResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyServiceResponse) GetData() FastlyServiceData
GetData returns the Data field value if set, zero value otherwise.
func (o *FastlyServiceResponse) GetDataOk() (*FastlyServiceData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyServiceResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o FastlyServiceResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyServiceResponse) SetData(v FastlyServiceData)
SetData gets a reference to the given FastlyServiceData and assigns it to the Data field.
func (o *FastlyServiceResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FastlyServiceType The JSON:API type for this API. Should always be `fastly-services`.
type FastlyServiceType string
List of FastlyServiceType.
const (
FASTLYSERVICETYPE_FASTLY_SERVICES FastlyServiceType = "fastly-services"
)
func NewFastlyServiceTypeFromValue(v string) (*FastlyServiceType, error)
NewFastlyServiceTypeFromValue returns a pointer to a valid FastlyServiceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *FastlyServiceType) GetAllowedValues() []FastlyServiceType
GetAllowedValues reeturns the list of possible values.
func (v FastlyServiceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v FastlyServiceType) Ptr() *FastlyServiceType
Ptr returns reference to FastlyServiceType value.
func (v *FastlyServiceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
FastlyServicesResponse The expected response schema when getting Fastly services.
type FastlyServicesResponse struct {
// The JSON:API data schema.
Data []FastlyServiceResponse `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFastlyServicesResponse() *FastlyServicesResponse
NewFastlyServicesResponse instantiates a new FastlyServicesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFastlyServicesResponseWithDefaults() *FastlyServicesResponse
NewFastlyServicesResponseWithDefaults instantiates a new FastlyServicesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FastlyServicesResponse) GetData() []FastlyServiceResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *FastlyServicesResponse) GetDataOk() (*[]FastlyServiceResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FastlyServicesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o FastlyServicesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FastlyServicesResponse) SetData(v []FastlyServiceResponse)
SetData gets a reference to the given []FastlyServiceResponse and assigns it to the Data field.
func (o *FastlyServicesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Finding A single finding without the message and resource configuration.
type Finding struct {
// The JSON:API attributes of the finding.
Attributes *FindingAttributes `json:"attributes,omitempty"`
// The unique ID for this finding.
Id *string `json:"id,omitempty"`
// The JSON:API type for findings.
Type *FindingType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFinding() *Finding
NewFinding instantiates a new Finding object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFindingWithDefaults() *Finding
NewFindingWithDefaults instantiates a new Finding object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Finding) GetAttributes() FindingAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Finding) GetAttributesOk() (*FindingAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Finding) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Finding) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Finding) GetType() FindingType
GetType returns the Type field value if set, zero value otherwise.
func (o *Finding) GetTypeOk() (*FindingType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Finding) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Finding) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Finding) HasType() bool
HasType returns a boolean if a field has been set.
func (o Finding) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Finding) SetAttributes(v FindingAttributes)
SetAttributes gets a reference to the given FindingAttributes and assigns it to the Attributes field.
func (o *Finding) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Finding) SetType(v FindingType)
SetType gets a reference to the given FindingType and assigns it to the Type field.
func (o *Finding) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FindingAttributes The JSON:API attributes of the finding.
type FindingAttributes struct {
// The evaluation of the finding.
Evaluation *FindingEvaluation `json:"evaluation,omitempty"`
// The date on which the evaluation for this finding changed (Unix ms).
EvaluationChangedAt *int64 `json:"evaluation_changed_at,omitempty"`
// Information about the mute status of this finding.
Mute *FindingMute `json:"mute,omitempty"`
// The resource name of this finding.
Resource *string `json:"resource,omitempty"`
// The date on which the resource was discovered (Unix ms).
ResourceDiscoveryDate *int64 `json:"resource_discovery_date,omitempty"`
// The resource type of this finding.
ResourceType *string `json:"resource_type,omitempty"`
// The rule that triggered this finding.
Rule *FindingRule `json:"rule,omitempty"`
// The status of the finding.
Status *FindingStatus `json:"status,omitempty"`
// The tags associated with this finding.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFindingAttributes() *FindingAttributes
NewFindingAttributes instantiates a new FindingAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFindingAttributesWithDefaults() *FindingAttributes
NewFindingAttributesWithDefaults instantiates a new FindingAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FindingAttributes) GetEvaluation() FindingEvaluation
GetEvaluation returns the Evaluation field value if set, zero value otherwise.
func (o *FindingAttributes) GetEvaluationChangedAt() int64
GetEvaluationChangedAt returns the EvaluationChangedAt field value if set, zero value otherwise.
func (o *FindingAttributes) GetEvaluationChangedAtOk() (*int64, bool)
GetEvaluationChangedAtOk returns a tuple with the EvaluationChangedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) GetEvaluationOk() (*FindingEvaluation, bool)
GetEvaluationOk returns a tuple with the Evaluation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) GetMute() FindingMute
GetMute returns the Mute field value if set, zero value otherwise.
func (o *FindingAttributes) GetMuteOk() (*FindingMute, bool)
GetMuteOk returns a tuple with the Mute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) GetResource() string
GetResource returns the Resource field value if set, zero value otherwise.
func (o *FindingAttributes) GetResourceDiscoveryDate() int64
GetResourceDiscoveryDate returns the ResourceDiscoveryDate field value if set, zero value otherwise.
func (o *FindingAttributes) GetResourceDiscoveryDateOk() (*int64, bool)
GetResourceDiscoveryDateOk returns a tuple with the ResourceDiscoveryDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) GetResourceOk() (*string, bool)
GetResourceOk returns a tuple with the Resource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value if set, zero value otherwise.
func (o *FindingAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) GetRule() FindingRule
GetRule returns the Rule field value if set, zero value otherwise.
func (o *FindingAttributes) GetRuleOk() (*FindingRule, bool)
GetRuleOk returns a tuple with the Rule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) GetStatus() FindingStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *FindingAttributes) GetStatusOk() (*FindingStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *FindingAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingAttributes) HasEvaluation() bool
HasEvaluation returns a boolean if a field has been set.
func (o *FindingAttributes) HasEvaluationChangedAt() bool
HasEvaluationChangedAt returns a boolean if a field has been set.
func (o *FindingAttributes) HasMute() bool
HasMute returns a boolean if a field has been set.
func (o *FindingAttributes) HasResource() bool
HasResource returns a boolean if a field has been set.
func (o *FindingAttributes) HasResourceDiscoveryDate() bool
HasResourceDiscoveryDate returns a boolean if a field has been set.
func (o *FindingAttributes) HasResourceType() bool
HasResourceType returns a boolean if a field has been set.
func (o *FindingAttributes) HasRule() bool
HasRule returns a boolean if a field has been set.
func (o *FindingAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *FindingAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o FindingAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FindingAttributes) SetEvaluation(v FindingEvaluation)
SetEvaluation gets a reference to the given FindingEvaluation and assigns it to the Evaluation field.
func (o *FindingAttributes) SetEvaluationChangedAt(v int64)
SetEvaluationChangedAt gets a reference to the given int64 and assigns it to the EvaluationChangedAt field.
func (o *FindingAttributes) SetMute(v FindingMute)
SetMute gets a reference to the given FindingMute and assigns it to the Mute field.
func (o *FindingAttributes) SetResource(v string)
SetResource gets a reference to the given string and assigns it to the Resource field.
func (o *FindingAttributes) SetResourceDiscoveryDate(v int64)
SetResourceDiscoveryDate gets a reference to the given int64 and assigns it to the ResourceDiscoveryDate field.
func (o *FindingAttributes) SetResourceType(v string)
SetResourceType gets a reference to the given string and assigns it to the ResourceType field.
func (o *FindingAttributes) SetRule(v FindingRule)
SetRule gets a reference to the given FindingRule and assigns it to the Rule field.
func (o *FindingAttributes) SetStatus(v FindingStatus)
SetStatus gets a reference to the given FindingStatus and assigns it to the Status field.
func (o *FindingAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *FindingAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FindingEvaluation The evaluation of the finding.
type FindingEvaluation string
List of FindingEvaluation.
const (
FINDINGEVALUATION_PASS FindingEvaluation = "pass"
FINDINGEVALUATION_FAIL FindingEvaluation = "fail"
)
func NewFindingEvaluationFromValue(v string) (*FindingEvaluation, error)
NewFindingEvaluationFromValue returns a pointer to a valid FindingEvaluation for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *FindingEvaluation) GetAllowedValues() []FindingEvaluation
GetAllowedValues reeturns the list of possible values.
func (v FindingEvaluation) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v FindingEvaluation) Ptr() *FindingEvaluation
Ptr returns reference to FindingEvaluation value.
func (v *FindingEvaluation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
FindingMute Information about the mute status of this finding.
type FindingMute struct {
// Additional information about the reason why this finding is muted or unmuted.
Description *string `json:"description,omitempty"`
// The expiration date of the mute or unmute action (Unix ms).
ExpirationDate *int64 `json:"expiration_date,omitempty"`
// Whether this finding is muted or unmuted.
Muted *bool `json:"muted,omitempty"`
// The reason why this finding is muted or unmuted.
Reason *FindingMuteReason `json:"reason,omitempty"`
// The start of the mute period.
StartDate *int64 `json:"start_date,omitempty"`
// The ID of the user who muted or unmuted this finding.
Uuid *string `json:"uuid,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
}
func NewFindingMute() *FindingMute
NewFindingMute instantiates a new FindingMute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFindingMuteWithDefaults() *FindingMute
NewFindingMuteWithDefaults instantiates a new FindingMute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FindingMute) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *FindingMute) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingMute) GetExpirationDate() int64
GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise.
func (o *FindingMute) GetExpirationDateOk() (*int64, bool)
GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingMute) GetMuted() bool
GetMuted returns the Muted field value if set, zero value otherwise.
func (o *FindingMute) GetMutedOk() (*bool, bool)
GetMutedOk returns a tuple with the Muted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingMute) GetReason() FindingMuteReason
GetReason returns the Reason field value if set, zero value otherwise.
func (o *FindingMute) GetReasonOk() (*FindingMuteReason, bool)
GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingMute) GetStartDate() int64
GetStartDate returns the StartDate field value if set, zero value otherwise.
func (o *FindingMute) GetStartDateOk() (*int64, bool)
GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingMute) GetUuid() string
GetUuid returns the Uuid field value if set, zero value otherwise.
func (o *FindingMute) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingMute) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *FindingMute) HasExpirationDate() bool
HasExpirationDate returns a boolean if a field has been set.
func (o *FindingMute) HasMuted() bool
HasMuted returns a boolean if a field has been set.
func (o *FindingMute) HasReason() bool
HasReason returns a boolean if a field has been set.
func (o *FindingMute) HasStartDate() bool
HasStartDate returns a boolean if a field has been set.
func (o *FindingMute) HasUuid() bool
HasUuid returns a boolean if a field has been set.
func (o FindingMute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FindingMute) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *FindingMute) SetExpirationDate(v int64)
SetExpirationDate gets a reference to the given int64 and assigns it to the ExpirationDate field.
func (o *FindingMute) SetMuted(v bool)
SetMuted gets a reference to the given bool and assigns it to the Muted field.
func (o *FindingMute) SetReason(v FindingMuteReason)
SetReason gets a reference to the given FindingMuteReason and assigns it to the Reason field.
func (o *FindingMute) SetStartDate(v int64)
SetStartDate gets a reference to the given int64 and assigns it to the StartDate field.
func (o *FindingMute) SetUuid(v string)
SetUuid gets a reference to the given string and assigns it to the Uuid field.
func (o *FindingMute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FindingMuteReason The reason why this finding is muted or unmuted.
type FindingMuteReason string
List of FindingMuteReason.
const (
FINDINGMUTEREASON_PENDING_FIX FindingMuteReason = "PENDING_FIX"
FINDINGMUTEREASON_FALSE_POSITIVE FindingMuteReason = "FALSE_POSITIVE"
FINDINGMUTEREASON_ACCEPTED_RISK FindingMuteReason = "ACCEPTED_RISK"
FINDINGMUTEREASON_NO_PENDING_FIX FindingMuteReason = "NO_PENDING_FIX"
FINDINGMUTEREASON_HUMAN_ERROR FindingMuteReason = "HUMAN_ERROR"
FINDINGMUTEREASON_NO_LONGER_ACCEPTED_RISK FindingMuteReason = "NO_LONGER_ACCEPTED_RISK"
FINDINGMUTEREASON_OTHER FindingMuteReason = "OTHER"
)
func NewFindingMuteReasonFromValue(v string) (*FindingMuteReason, error)
NewFindingMuteReasonFromValue returns a pointer to a valid FindingMuteReason for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *FindingMuteReason) GetAllowedValues() []FindingMuteReason
GetAllowedValues reeturns the list of possible values.
func (v FindingMuteReason) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v FindingMuteReason) Ptr() *FindingMuteReason
Ptr returns reference to FindingMuteReason value.
func (v *FindingMuteReason) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
FindingRule The rule that triggered this finding.
type FindingRule struct {
// The ID of the rule that triggered this finding.
Id *string `json:"id,omitempty"`
// The name of the rule that triggered this finding.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
}
func NewFindingRule() *FindingRule
NewFindingRule instantiates a new FindingRule object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFindingRuleWithDefaults() *FindingRule
NewFindingRuleWithDefaults instantiates a new FindingRule object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FindingRule) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *FindingRule) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingRule) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *FindingRule) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FindingRule) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FindingRule) HasName() bool
HasName returns a boolean if a field has been set.
func (o FindingRule) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FindingRule) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *FindingRule) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *FindingRule) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FindingStatus The status of the finding.
type FindingStatus string
List of FindingStatus.
const (
FINDINGSTATUS_CRITICAL FindingStatus = "critical"
FINDINGSTATUS_HIGH FindingStatus = "high"
FINDINGSTATUS_MEDIUM FindingStatus = "medium"
FINDINGSTATUS_LOW FindingStatus = "low"
FINDINGSTATUS_INFO FindingStatus = "info"
)
func NewFindingStatusFromValue(v string) (*FindingStatus, error)
NewFindingStatusFromValue returns a pointer to a valid FindingStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *FindingStatus) GetAllowedValues() []FindingStatus
GetAllowedValues reeturns the list of possible values.
func (v FindingStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v FindingStatus) Ptr() *FindingStatus
Ptr returns reference to FindingStatus value.
func (v *FindingStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
FindingType The JSON:API type for findings.
type FindingType string
List of FindingType.
const (
FINDINGTYPE_FINDING FindingType = "finding"
)
func NewFindingTypeFromValue(v string) (*FindingType, error)
NewFindingTypeFromValue returns a pointer to a valid FindingType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *FindingType) GetAllowedValues() []FindingType
GetAllowedValues reeturns the list of possible values.
func (v FindingType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v FindingType) Ptr() *FindingType
Ptr returns reference to FindingType value.
func (v *FindingType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
FormulaLimit Message for specifying limits to the number of values returned by a query. This limit is only for scalar queries and has no effect on timeseries queries.
type FormulaLimit struct {
// The number of results to which to limit.
Count *int32 `json:"count,omitempty"`
// Direction of sort.
Order *QuerySortOrder `json:"order,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFormulaLimit() *FormulaLimit
NewFormulaLimit instantiates a new FormulaLimit object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFormulaLimitWithDefaults() *FormulaLimit
NewFormulaLimitWithDefaults instantiates a new FormulaLimit object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FormulaLimit) GetCount() int32
GetCount returns the Count field value if set, zero value otherwise.
func (o *FormulaLimit) GetCountOk() (*int32, bool)
GetCountOk returns a tuple with the Count field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FormulaLimit) GetOrder() QuerySortOrder
GetOrder returns the Order field value if set, zero value otherwise.
func (o *FormulaLimit) GetOrderOk() (*QuerySortOrder, bool)
GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FormulaLimit) HasCount() bool
HasCount returns a boolean if a field has been set.
func (o *FormulaLimit) HasOrder() bool
HasOrder returns a boolean if a field has been set.
func (o FormulaLimit) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FormulaLimit) SetCount(v int32)
SetCount gets a reference to the given int32 and assigns it to the Count field.
func (o *FormulaLimit) SetOrder(v QuerySortOrder)
SetOrder gets a reference to the given QuerySortOrder and assigns it to the Order field.
func (o *FormulaLimit) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FullAPIKey Datadog API key.
type FullAPIKey struct {
// Attributes of a full API key.
Attributes *FullAPIKeyAttributes `json:"attributes,omitempty"`
// ID of the API key.
Id *string `json:"id,omitempty"`
// Resources related to the API key.
Relationships *APIKeyRelationships `json:"relationships,omitempty"`
// API Keys resource type.
Type *APIKeysType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFullAPIKey() *FullAPIKey
NewFullAPIKey instantiates a new FullAPIKey object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFullAPIKeyWithDefaults() *FullAPIKey
NewFullAPIKeyWithDefaults instantiates a new FullAPIKey object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FullAPIKey) GetAttributes() FullAPIKeyAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *FullAPIKey) GetAttributesOk() (*FullAPIKeyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKey) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *FullAPIKey) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKey) GetRelationships() APIKeyRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *FullAPIKey) GetRelationshipsOk() (*APIKeyRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKey) GetType() APIKeysType
GetType returns the Type field value if set, zero value otherwise.
func (o *FullAPIKey) GetTypeOk() (*APIKeysType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKey) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *FullAPIKey) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FullAPIKey) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *FullAPIKey) HasType() bool
HasType returns a boolean if a field has been set.
func (o FullAPIKey) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FullAPIKey) SetAttributes(v FullAPIKeyAttributes)
SetAttributes gets a reference to the given FullAPIKeyAttributes and assigns it to the Attributes field.
func (o *FullAPIKey) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *FullAPIKey) SetRelationships(v APIKeyRelationships)
SetRelationships gets a reference to the given APIKeyRelationships and assigns it to the Relationships field.
func (o *FullAPIKey) SetType(v APIKeysType)
SetType gets a reference to the given APIKeysType and assigns it to the Type field.
func (o *FullAPIKey) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FullAPIKeyAttributes Attributes of a full API key.
type FullAPIKeyAttributes struct {
// Creation date of the API key.
CreatedAt *string `json:"created_at,omitempty"`
// The API key.
Key *string `json:"key,omitempty"`
// The last four characters of the API key.
Last4 *string `json:"last4,omitempty"`
// Date the API key was last modified.
ModifiedAt *string `json:"modified_at,omitempty"`
// Name of the API key.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFullAPIKeyAttributes() *FullAPIKeyAttributes
NewFullAPIKeyAttributes instantiates a new FullAPIKeyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFullAPIKeyAttributesWithDefaults() *FullAPIKeyAttributes
NewFullAPIKeyAttributesWithDefaults instantiates a new FullAPIKeyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FullAPIKeyAttributes) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) GetKey() string
GetKey returns the Key field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) GetLast4() string
GetLast4 returns the Last4 field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetLast4Ok() (*string, bool)
GetLast4Ok returns a tuple with the Last4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) GetModifiedAt() string
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetModifiedAtOk() (*string, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *FullAPIKeyAttributes) HasKey() bool
HasKey returns a boolean if a field has been set.
func (o *FullAPIKeyAttributes) HasLast4() bool
HasLast4 returns a boolean if a field has been set.
func (o *FullAPIKeyAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *FullAPIKeyAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o FullAPIKeyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FullAPIKeyAttributes) SetCreatedAt(v string)
SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
func (o *FullAPIKeyAttributes) SetKey(v string)
SetKey gets a reference to the given string and assigns it to the Key field.
func (o *FullAPIKeyAttributes) SetLast4(v string)
SetLast4 gets a reference to the given string and assigns it to the Last4 field.
func (o *FullAPIKeyAttributes) SetModifiedAt(v string)
SetModifiedAt gets a reference to the given string and assigns it to the ModifiedAt field.
func (o *FullAPIKeyAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *FullAPIKeyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FullApplicationKey Datadog application key.
type FullApplicationKey struct {
// Attributes of a full application key.
Attributes *FullApplicationKeyAttributes `json:"attributes,omitempty"`
// ID of the application key.
Id *string `json:"id,omitempty"`
// Resources related to the application key.
Relationships *ApplicationKeyRelationships `json:"relationships,omitempty"`
// Application Keys resource type.
Type *ApplicationKeysType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFullApplicationKey() *FullApplicationKey
NewFullApplicationKey instantiates a new FullApplicationKey object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFullApplicationKeyWithDefaults() *FullApplicationKey
NewFullApplicationKeyWithDefaults instantiates a new FullApplicationKey object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FullApplicationKey) GetAttributes() FullApplicationKeyAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *FullApplicationKey) GetAttributesOk() (*FullApplicationKeyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKey) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *FullApplicationKey) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKey) GetRelationships() ApplicationKeyRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *FullApplicationKey) GetRelationshipsOk() (*ApplicationKeyRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKey) GetType() ApplicationKeysType
GetType returns the Type field value if set, zero value otherwise.
func (o *FullApplicationKey) GetTypeOk() (*ApplicationKeysType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKey) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *FullApplicationKey) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FullApplicationKey) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *FullApplicationKey) HasType() bool
HasType returns a boolean if a field has been set.
func (o FullApplicationKey) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FullApplicationKey) SetAttributes(v FullApplicationKeyAttributes)
SetAttributes gets a reference to the given FullApplicationKeyAttributes and assigns it to the Attributes field.
func (o *FullApplicationKey) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *FullApplicationKey) SetRelationships(v ApplicationKeyRelationships)
SetRelationships gets a reference to the given ApplicationKeyRelationships and assigns it to the Relationships field.
func (o *FullApplicationKey) SetType(v ApplicationKeysType)
SetType gets a reference to the given ApplicationKeysType and assigns it to the Type field.
func (o *FullApplicationKey) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FullApplicationKeyAttributes Attributes of a full application key.
type FullApplicationKeyAttributes struct {
// Creation date of the application key.
CreatedAt *string `json:"created_at,omitempty"`
// The application key.
Key *string `json:"key,omitempty"`
// The last four characters of the application key.
Last4 *string `json:"last4,omitempty"`
// Name of the application key.
Name *string `json:"name,omitempty"`
// Array of scopes to grant the application key.
Scopes datadog.NullableList[string] `json:"scopes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFullApplicationKeyAttributes() *FullApplicationKeyAttributes
NewFullApplicationKeyAttributes instantiates a new FullApplicationKeyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFullApplicationKeyAttributesWithDefaults() *FullApplicationKeyAttributes
NewFullApplicationKeyAttributesWithDefaults instantiates a new FullApplicationKeyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FullApplicationKeyAttributes) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *FullApplicationKeyAttributes) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKeyAttributes) GetKey() string
GetKey returns the Key field value if set, zero value otherwise.
func (o *FullApplicationKeyAttributes) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKeyAttributes) GetLast4() string
GetLast4 returns the Last4 field value if set, zero value otherwise.
func (o *FullApplicationKeyAttributes) GetLast4Ok() (*string, bool)
GetLast4Ok returns a tuple with the Last4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKeyAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *FullApplicationKeyAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKeyAttributes) GetScopes() []string
GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FullApplicationKeyAttributes) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *FullApplicationKeyAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *FullApplicationKeyAttributes) HasKey() bool
HasKey returns a boolean if a field has been set.
func (o *FullApplicationKeyAttributes) HasLast4() bool
HasLast4 returns a boolean if a field has been set.
func (o *FullApplicationKeyAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *FullApplicationKeyAttributes) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o FullApplicationKeyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FullApplicationKeyAttributes) SetCreatedAt(v string)
SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
func (o *FullApplicationKeyAttributes) SetKey(v string)
SetKey gets a reference to the given string and assigns it to the Key field.
func (o *FullApplicationKeyAttributes) SetLast4(v string)
SetLast4 gets a reference to the given string and assigns it to the Last4 field.
func (o *FullApplicationKeyAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *FullApplicationKeyAttributes) SetScopes(v []string)
SetScopes gets a reference to the given datadog.NullableList[string] and assigns it to the Scopes field.
func (o *FullApplicationKeyAttributes) SetScopesNil()
SetScopesNil sets the value for Scopes to be an explicit nil.
func (o *FullApplicationKeyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *FullApplicationKeyAttributes) UnsetScopes()
UnsetScopes ensures that no value is present for Scopes, not even an explicit nil.
GCPIntegrationApi service type
type GCPIntegrationApi datadog.Service
func NewGCPIntegrationApi(client *datadog.APIClient) *GCPIntegrationApi
NewGCPIntegrationApi Returns NewGCPIntegrationApi.
func (a *GCPIntegrationApi) CreateGCPSTSAccount(ctx _context.Context, body GCPSTSServiceAccountCreateRequest) (GCPSTSServiceAccountResponse, *_nethttp.Response, error)
CreateGCPSTSAccount Create a new entry for your service account. Create a new entry within Datadog for your STS enabled service account.
func (a *GCPIntegrationApi) DeleteGCPSTSAccount(ctx _context.Context, accountId string) (*_nethttp.Response, error)
DeleteGCPSTSAccount Delete an STS enabled GCP Account. Delete an STS enabled GCP account from within Datadog.
func (a *GCPIntegrationApi) GetGCPSTSDelegate(ctx _context.Context) (GCPSTSDelegateAccountResponse, *_nethttp.Response, error)
GetGCPSTSDelegate List delegate account. List your Datadog-GCP STS delegate account configured in your Datadog account.
func (a *GCPIntegrationApi) ListGCPSTSAccounts(ctx _context.Context) (GCPSTSServiceAccountsResponse, *_nethttp.Response, error)
ListGCPSTSAccounts List all GCP STS-enabled service accounts. List all GCP STS-enabled service accounts configured in your Datadog account.
func (a *GCPIntegrationApi) MakeGCPSTSDelegate(ctx _context.Context, o ...MakeGCPSTSDelegateOptionalParameters) (GCPSTSDelegateAccountResponse, *_nethttp.Response, error)
MakeGCPSTSDelegate Create a Datadog GCP principal. Create a Datadog GCP principal.
func (a *GCPIntegrationApi) UpdateGCPSTSAccount(ctx _context.Context, accountId string, body GCPSTSServiceAccountUpdateRequest) (GCPSTSServiceAccountResponse, *_nethttp.Response, error)
UpdateGCPSTSAccount Update STS Service Account. Update an STS enabled service account.
GCPSTSDelegateAccount Datadog principal service account info.
type GCPSTSDelegateAccount struct {
// Your delegate account attributes.
Attributes *GCPSTSDelegateAccountAttributes `json:"attributes,omitempty"`
// The ID of the delegate service account.
Id *string `json:"id,omitempty"`
// The type of account.
Type *GCPSTSDelegateAccountType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSDelegateAccount() *GCPSTSDelegateAccount
NewGCPSTSDelegateAccount instantiates a new GCPSTSDelegateAccount object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSDelegateAccountWithDefaults() *GCPSTSDelegateAccount
NewGCPSTSDelegateAccountWithDefaults instantiates a new GCPSTSDelegateAccount object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSDelegateAccount) GetAttributes() GCPSTSDelegateAccountAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *GCPSTSDelegateAccount) GetAttributesOk() (*GCPSTSDelegateAccountAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSDelegateAccount) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *GCPSTSDelegateAccount) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSDelegateAccount) GetType() GCPSTSDelegateAccountType
GetType returns the Type field value if set, zero value otherwise.
func (o *GCPSTSDelegateAccount) GetTypeOk() (*GCPSTSDelegateAccountType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSDelegateAccount) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *GCPSTSDelegateAccount) HasId() bool
HasId returns a boolean if a field has been set.
func (o *GCPSTSDelegateAccount) HasType() bool
HasType returns a boolean if a field has been set.
func (o GCPSTSDelegateAccount) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSDelegateAccount) SetAttributes(v GCPSTSDelegateAccountAttributes)
SetAttributes gets a reference to the given GCPSTSDelegateAccountAttributes and assigns it to the Attributes field.
func (o *GCPSTSDelegateAccount) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *GCPSTSDelegateAccount) SetType(v GCPSTSDelegateAccountType)
SetType gets a reference to the given GCPSTSDelegateAccountType and assigns it to the Type field.
func (o *GCPSTSDelegateAccount) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSDelegateAccountAttributes Your delegate account attributes.
type GCPSTSDelegateAccountAttributes struct {
// Your organization's Datadog principal email address.
DelegateAccountEmail *string `json:"delegate_account_email,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSDelegateAccountAttributes() *GCPSTSDelegateAccountAttributes
NewGCPSTSDelegateAccountAttributes instantiates a new GCPSTSDelegateAccountAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSDelegateAccountAttributesWithDefaults() *GCPSTSDelegateAccountAttributes
NewGCPSTSDelegateAccountAttributesWithDefaults instantiates a new GCPSTSDelegateAccountAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSDelegateAccountAttributes) GetDelegateAccountEmail() string
GetDelegateAccountEmail returns the DelegateAccountEmail field value if set, zero value otherwise.
func (o *GCPSTSDelegateAccountAttributes) GetDelegateAccountEmailOk() (*string, bool)
GetDelegateAccountEmailOk returns a tuple with the DelegateAccountEmail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSDelegateAccountAttributes) HasDelegateAccountEmail() bool
HasDelegateAccountEmail returns a boolean if a field has been set.
func (o GCPSTSDelegateAccountAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSDelegateAccountAttributes) SetDelegateAccountEmail(v string)
SetDelegateAccountEmail gets a reference to the given string and assigns it to the DelegateAccountEmail field.
func (o *GCPSTSDelegateAccountAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSDelegateAccountResponse Your delegate service account response data.
type GCPSTSDelegateAccountResponse struct {
// Datadog principal service account info.
Data *GCPSTSDelegateAccount `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSDelegateAccountResponse() *GCPSTSDelegateAccountResponse
NewGCPSTSDelegateAccountResponse instantiates a new GCPSTSDelegateAccountResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSDelegateAccountResponseWithDefaults() *GCPSTSDelegateAccountResponse
NewGCPSTSDelegateAccountResponseWithDefaults instantiates a new GCPSTSDelegateAccountResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSDelegateAccountResponse) GetData() GCPSTSDelegateAccount
GetData returns the Data field value if set, zero value otherwise.
func (o *GCPSTSDelegateAccountResponse) GetDataOk() (*GCPSTSDelegateAccount, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSDelegateAccountResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o GCPSTSDelegateAccountResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSDelegateAccountResponse) SetData(v GCPSTSDelegateAccount)
SetData gets a reference to the given GCPSTSDelegateAccount and assigns it to the Data field.
func (o *GCPSTSDelegateAccountResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSDelegateAccountType The type of account.
type GCPSTSDelegateAccountType string
List of GCPSTSDelegateAccountType.
const (
GCPSTSDELEGATEACCOUNTTYPE_GCP_STS_DELEGATE GCPSTSDelegateAccountType = "gcp_sts_delegate"
)
func NewGCPSTSDelegateAccountTypeFromValue(v string) (*GCPSTSDelegateAccountType, error)
NewGCPSTSDelegateAccountTypeFromValue returns a pointer to a valid GCPSTSDelegateAccountType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *GCPSTSDelegateAccountType) GetAllowedValues() []GCPSTSDelegateAccountType
GetAllowedValues reeturns the list of possible values.
func (v GCPSTSDelegateAccountType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v GCPSTSDelegateAccountType) Ptr() *GCPSTSDelegateAccountType
Ptr returns reference to GCPSTSDelegateAccountType value.
func (v *GCPSTSDelegateAccountType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
GCPSTSServiceAccount Info on your service account.
type GCPSTSServiceAccount struct {
// Attributes associated with your service account.
Attributes *GCPSTSServiceAccountAttributes `json:"attributes,omitempty"`
// Your service account's unique ID.
Id *string `json:"id,omitempty"`
// Additional information related to your service account.
Meta *GCPServiceAccountMeta `json:"meta,omitempty"`
// The type of account.
Type *GCPServiceAccountType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSServiceAccount() *GCPSTSServiceAccount
NewGCPSTSServiceAccount instantiates a new GCPSTSServiceAccount object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSServiceAccountWithDefaults() *GCPSTSServiceAccount
NewGCPSTSServiceAccountWithDefaults instantiates a new GCPSTSServiceAccount object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSServiceAccount) GetAttributes() GCPSTSServiceAccountAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *GCPSTSServiceAccount) GetAttributesOk() (*GCPSTSServiceAccountAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccount) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *GCPSTSServiceAccount) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccount) GetMeta() GCPServiceAccountMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *GCPSTSServiceAccount) GetMetaOk() (*GCPServiceAccountMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccount) GetType() GCPServiceAccountType
GetType returns the Type field value if set, zero value otherwise.
func (o *GCPSTSServiceAccount) GetTypeOk() (*GCPServiceAccountType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccount) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *GCPSTSServiceAccount) HasId() bool
HasId returns a boolean if a field has been set.
func (o *GCPSTSServiceAccount) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o *GCPSTSServiceAccount) HasType() bool
HasType returns a boolean if a field has been set.
func (o GCPSTSServiceAccount) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSServiceAccount) SetAttributes(v GCPSTSServiceAccountAttributes)
SetAttributes gets a reference to the given GCPSTSServiceAccountAttributes and assigns it to the Attributes field.
func (o *GCPSTSServiceAccount) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *GCPSTSServiceAccount) SetMeta(v GCPServiceAccountMeta)
SetMeta gets a reference to the given GCPServiceAccountMeta and assigns it to the Meta field.
func (o *GCPSTSServiceAccount) SetType(v GCPServiceAccountType)
SetType gets a reference to the given GCPServiceAccountType and assigns it to the Type field.
func (o *GCPSTSServiceAccount) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSServiceAccountAttributes Attributes associated with your service account.
type GCPSTSServiceAccountAttributes struct {
// Silence monitors for expected GCE instance shutdowns.
Automute *bool `json:"automute,omitempty"`
// Your service account email address.
ClientEmail *string `json:"client_email,omitempty"`
// Your Host Filters.
HostFilters []string `json:"host_filters,omitempty"`
// When enabled, Datadog performs configuration checks across your Google Cloud environment by continuously scanning every resource.
IsCspmEnabled *bool `json:"is_cspm_enabled,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSServiceAccountAttributes() *GCPSTSServiceAccountAttributes
NewGCPSTSServiceAccountAttributes instantiates a new GCPSTSServiceAccountAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSServiceAccountAttributesWithDefaults() *GCPSTSServiceAccountAttributes
NewGCPSTSServiceAccountAttributesWithDefaults instantiates a new GCPSTSServiceAccountAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSServiceAccountAttributes) GetAutomute() bool
GetAutomute returns the Automute field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountAttributes) GetAutomuteOk() (*bool, bool)
GetAutomuteOk returns a tuple with the Automute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountAttributes) GetClientEmail() string
GetClientEmail returns the ClientEmail field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountAttributes) GetClientEmailOk() (*string, bool)
GetClientEmailOk returns a tuple with the ClientEmail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountAttributes) GetHostFilters() []string
GetHostFilters returns the HostFilters field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountAttributes) GetHostFiltersOk() (*[]string, bool)
GetHostFiltersOk returns a tuple with the HostFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountAttributes) GetIsCspmEnabled() bool
GetIsCspmEnabled returns the IsCspmEnabled field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountAttributes) GetIsCspmEnabledOk() (*bool, bool)
GetIsCspmEnabledOk returns a tuple with the IsCspmEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountAttributes) HasAutomute() bool
HasAutomute returns a boolean if a field has been set.
func (o *GCPSTSServiceAccountAttributes) HasClientEmail() bool
HasClientEmail returns a boolean if a field has been set.
func (o *GCPSTSServiceAccountAttributes) HasHostFilters() bool
HasHostFilters returns a boolean if a field has been set.
func (o *GCPSTSServiceAccountAttributes) HasIsCspmEnabled() bool
HasIsCspmEnabled returns a boolean if a field has been set.
func (o GCPSTSServiceAccountAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSServiceAccountAttributes) SetAutomute(v bool)
SetAutomute gets a reference to the given bool and assigns it to the Automute field.
func (o *GCPSTSServiceAccountAttributes) SetClientEmail(v string)
SetClientEmail gets a reference to the given string and assigns it to the ClientEmail field.
func (o *GCPSTSServiceAccountAttributes) SetHostFilters(v []string)
SetHostFilters gets a reference to the given []string and assigns it to the HostFilters field.
func (o *GCPSTSServiceAccountAttributes) SetIsCspmEnabled(v bool)
SetIsCspmEnabled gets a reference to the given bool and assigns it to the IsCspmEnabled field.
func (o *GCPSTSServiceAccountAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSServiceAccountCreateRequest Data on your newly generated service account.
type GCPSTSServiceAccountCreateRequest struct {
// Additional metadata on your generated service account.
Data *GCPSTSServiceAccountData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSServiceAccountCreateRequest() *GCPSTSServiceAccountCreateRequest
NewGCPSTSServiceAccountCreateRequest instantiates a new GCPSTSServiceAccountCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSServiceAccountCreateRequestWithDefaults() *GCPSTSServiceAccountCreateRequest
NewGCPSTSServiceAccountCreateRequestWithDefaults instantiates a new GCPSTSServiceAccountCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSServiceAccountCreateRequest) GetData() GCPSTSServiceAccountData
GetData returns the Data field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountCreateRequest) GetDataOk() (*GCPSTSServiceAccountData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountCreateRequest) HasData() bool
HasData returns a boolean if a field has been set.
func (o GCPSTSServiceAccountCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSServiceAccountCreateRequest) SetData(v GCPSTSServiceAccountData)
SetData gets a reference to the given GCPSTSServiceAccountData and assigns it to the Data field.
func (o *GCPSTSServiceAccountCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSServiceAccountData Additional metadata on your generated service account.
type GCPSTSServiceAccountData struct {
// Attributes associated with your service account.
Attributes *GCPSTSServiceAccountAttributes `json:"attributes,omitempty"`
// The type of account.
Type *GCPServiceAccountType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSServiceAccountData() *GCPSTSServiceAccountData
NewGCPSTSServiceAccountData instantiates a new GCPSTSServiceAccountData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSServiceAccountDataWithDefaults() *GCPSTSServiceAccountData
NewGCPSTSServiceAccountDataWithDefaults instantiates a new GCPSTSServiceAccountData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSServiceAccountData) GetAttributes() GCPSTSServiceAccountAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountData) GetAttributesOk() (*GCPSTSServiceAccountAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountData) GetType() GCPServiceAccountType
GetType returns the Type field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountData) GetTypeOk() (*GCPServiceAccountType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *GCPSTSServiceAccountData) HasType() bool
HasType returns a boolean if a field has been set.
func (o GCPSTSServiceAccountData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSServiceAccountData) SetAttributes(v GCPSTSServiceAccountAttributes)
SetAttributes gets a reference to the given GCPSTSServiceAccountAttributes and assigns it to the Attributes field.
func (o *GCPSTSServiceAccountData) SetType(v GCPServiceAccountType)
SetType gets a reference to the given GCPServiceAccountType and assigns it to the Type field.
func (o *GCPSTSServiceAccountData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSServiceAccountResponse The account creation response.
type GCPSTSServiceAccountResponse struct {
// Info on your service account.
Data *GCPSTSServiceAccount `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSServiceAccountResponse() *GCPSTSServiceAccountResponse
NewGCPSTSServiceAccountResponse instantiates a new GCPSTSServiceAccountResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSServiceAccountResponseWithDefaults() *GCPSTSServiceAccountResponse
NewGCPSTSServiceAccountResponseWithDefaults instantiates a new GCPSTSServiceAccountResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSServiceAccountResponse) GetData() GCPSTSServiceAccount
GetData returns the Data field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountResponse) GetDataOk() (*GCPSTSServiceAccount, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o GCPSTSServiceAccountResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSServiceAccountResponse) SetData(v GCPSTSServiceAccount)
SetData gets a reference to the given GCPSTSServiceAccount and assigns it to the Data field.
func (o *GCPSTSServiceAccountResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSServiceAccountUpdateRequest Service account info.
type GCPSTSServiceAccountUpdateRequest struct {
// Data on your service account.
Data *GCPSTSServiceAccountUpdateRequestData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSServiceAccountUpdateRequest() *GCPSTSServiceAccountUpdateRequest
NewGCPSTSServiceAccountUpdateRequest instantiates a new GCPSTSServiceAccountUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSServiceAccountUpdateRequestWithDefaults() *GCPSTSServiceAccountUpdateRequest
NewGCPSTSServiceAccountUpdateRequestWithDefaults instantiates a new GCPSTSServiceAccountUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSServiceAccountUpdateRequest) GetData() GCPSTSServiceAccountUpdateRequestData
GetData returns the Data field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountUpdateRequest) GetDataOk() (*GCPSTSServiceAccountUpdateRequestData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountUpdateRequest) HasData() bool
HasData returns a boolean if a field has been set.
func (o GCPSTSServiceAccountUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSServiceAccountUpdateRequest) SetData(v GCPSTSServiceAccountUpdateRequestData)
SetData gets a reference to the given GCPSTSServiceAccountUpdateRequestData and assigns it to the Data field.
func (o *GCPSTSServiceAccountUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSServiceAccountUpdateRequestData Data on your service account.
type GCPSTSServiceAccountUpdateRequestData struct {
// Attributes associated with your service account.
Attributes *GCPSTSServiceAccountAttributes `json:"attributes,omitempty"`
// Your service account's unique ID.
Id *string `json:"id,omitempty"`
// The type of account.
Type *GCPServiceAccountType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSServiceAccountUpdateRequestData() *GCPSTSServiceAccountUpdateRequestData
NewGCPSTSServiceAccountUpdateRequestData instantiates a new GCPSTSServiceAccountUpdateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSServiceAccountUpdateRequestDataWithDefaults() *GCPSTSServiceAccountUpdateRequestData
NewGCPSTSServiceAccountUpdateRequestDataWithDefaults instantiates a new GCPSTSServiceAccountUpdateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSServiceAccountUpdateRequestData) GetAttributes() GCPSTSServiceAccountAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountUpdateRequestData) GetAttributesOk() (*GCPSTSServiceAccountAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountUpdateRequestData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountUpdateRequestData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountUpdateRequestData) GetType() GCPServiceAccountType
GetType returns the Type field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountUpdateRequestData) GetTypeOk() (*GCPServiceAccountType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountUpdateRequestData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *GCPSTSServiceAccountUpdateRequestData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *GCPSTSServiceAccountUpdateRequestData) HasType() bool
HasType returns a boolean if a field has been set.
func (o GCPSTSServiceAccountUpdateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSServiceAccountUpdateRequestData) SetAttributes(v GCPSTSServiceAccountAttributes)
SetAttributes gets a reference to the given GCPSTSServiceAccountAttributes and assigns it to the Attributes field.
func (o *GCPSTSServiceAccountUpdateRequestData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *GCPSTSServiceAccountUpdateRequestData) SetType(v GCPServiceAccountType)
SetType gets a reference to the given GCPServiceAccountType and assigns it to the Type field.
func (o *GCPSTSServiceAccountUpdateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPSTSServiceAccountsResponse Object containing all your STS enabled accounts.
type GCPSTSServiceAccountsResponse struct {
// Array of GCP STS enabled service accounts.
Data []GCPSTSServiceAccount `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPSTSServiceAccountsResponse() *GCPSTSServiceAccountsResponse
NewGCPSTSServiceAccountsResponse instantiates a new GCPSTSServiceAccountsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPSTSServiceAccountsResponseWithDefaults() *GCPSTSServiceAccountsResponse
NewGCPSTSServiceAccountsResponseWithDefaults instantiates a new GCPSTSServiceAccountsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPSTSServiceAccountsResponse) GetData() []GCPSTSServiceAccount
GetData returns the Data field value if set, zero value otherwise.
func (o *GCPSTSServiceAccountsResponse) GetDataOk() (*[]GCPSTSServiceAccount, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPSTSServiceAccountsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o GCPSTSServiceAccountsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPSTSServiceAccountsResponse) SetData(v []GCPSTSServiceAccount)
SetData gets a reference to the given []GCPSTSServiceAccount and assigns it to the Data field.
func (o *GCPSTSServiceAccountsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPServiceAccountMeta Additional information related to your service account.
type GCPServiceAccountMeta struct {
// The current list of projects accessible from your service account.
AccessibleProjects []string `json:"accessible_projects,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGCPServiceAccountMeta() *GCPServiceAccountMeta
NewGCPServiceAccountMeta instantiates a new GCPServiceAccountMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGCPServiceAccountMetaWithDefaults() *GCPServiceAccountMeta
NewGCPServiceAccountMetaWithDefaults instantiates a new GCPServiceAccountMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GCPServiceAccountMeta) GetAccessibleProjects() []string
GetAccessibleProjects returns the AccessibleProjects field value if set, zero value otherwise.
func (o *GCPServiceAccountMeta) GetAccessibleProjectsOk() (*[]string, bool)
GetAccessibleProjectsOk returns a tuple with the AccessibleProjects field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GCPServiceAccountMeta) HasAccessibleProjects() bool
HasAccessibleProjects returns a boolean if a field has been set.
func (o GCPServiceAccountMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GCPServiceAccountMeta) SetAccessibleProjects(v []string)
SetAccessibleProjects gets a reference to the given []string and assigns it to the AccessibleProjects field.
func (o *GCPServiceAccountMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GCPServiceAccountType The type of account.
type GCPServiceAccountType string
List of GCPServiceAccountType.
const (
GCPSERVICEACCOUNTTYPE_GCP_SERVICE_ACCOUNT GCPServiceAccountType = "gcp_service_account"
)
func NewGCPServiceAccountTypeFromValue(v string) (*GCPServiceAccountType, error)
NewGCPServiceAccountTypeFromValue returns a pointer to a valid GCPServiceAccountType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *GCPServiceAccountType) GetAllowedValues() []GCPServiceAccountType
GetAllowedValues reeturns the list of possible values.
func (v GCPServiceAccountType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v GCPServiceAccountType) Ptr() *GCPServiceAccountType
Ptr returns reference to GCPServiceAccountType value.
func (v *GCPServiceAccountType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
GetAPIKeyOptionalParameters holds optional parameters for GetAPIKey.
type GetAPIKeyOptionalParameters struct {
Include *string
}
func NewGetAPIKeyOptionalParameters() *GetAPIKeyOptionalParameters
NewGetAPIKeyOptionalParameters creates an empty struct for parameters.
func (r *GetAPIKeyOptionalParameters) WithInclude(include string) *GetAPIKeyOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetApplicationKeyOptionalParameters holds optional parameters for GetApplicationKey.
type GetApplicationKeyOptionalParameters struct {
Include *string
}
func NewGetApplicationKeyOptionalParameters() *GetApplicationKeyOptionalParameters
NewGetApplicationKeyOptionalParameters creates an empty struct for parameters.
func (r *GetApplicationKeyOptionalParameters) WithInclude(include string) *GetApplicationKeyOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetCostByOrgOptionalParameters holds optional parameters for GetCostByOrg.
type GetCostByOrgOptionalParameters struct {
EndMonth *time.Time
}
func NewGetCostByOrgOptionalParameters() *GetCostByOrgOptionalParameters
NewGetCostByOrgOptionalParameters creates an empty struct for parameters.
func (r *GetCostByOrgOptionalParameters) WithEndMonth(endMonth time.Time) *GetCostByOrgOptionalParameters
WithEndMonth sets the corresponding parameter name and returns the struct.
GetDowntimeOptionalParameters holds optional parameters for GetDowntime.
type GetDowntimeOptionalParameters struct {
Include *string
}
func NewGetDowntimeOptionalParameters() *GetDowntimeOptionalParameters
NewGetDowntimeOptionalParameters creates an empty struct for parameters.
func (r *GetDowntimeOptionalParameters) WithInclude(include string) *GetDowntimeOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetEstimatedCostByOrgOptionalParameters holds optional parameters for GetEstimatedCostByOrg.
type GetEstimatedCostByOrgOptionalParameters struct {
View *string
StartMonth *time.Time
EndMonth *time.Time
StartDate *time.Time
EndDate *time.Time
}
func NewGetEstimatedCostByOrgOptionalParameters() *GetEstimatedCostByOrgOptionalParameters
NewGetEstimatedCostByOrgOptionalParameters creates an empty struct for parameters.
func (r *GetEstimatedCostByOrgOptionalParameters) WithEndDate(endDate time.Time) *GetEstimatedCostByOrgOptionalParameters
WithEndDate sets the corresponding parameter name and returns the struct.
func (r *GetEstimatedCostByOrgOptionalParameters) WithEndMonth(endMonth time.Time) *GetEstimatedCostByOrgOptionalParameters
WithEndMonth sets the corresponding parameter name and returns the struct.
func (r *GetEstimatedCostByOrgOptionalParameters) WithStartDate(startDate time.Time) *GetEstimatedCostByOrgOptionalParameters
WithStartDate sets the corresponding parameter name and returns the struct.
func (r *GetEstimatedCostByOrgOptionalParameters) WithStartMonth(startMonth time.Time) *GetEstimatedCostByOrgOptionalParameters
WithStartMonth sets the corresponding parameter name and returns the struct.
func (r *GetEstimatedCostByOrgOptionalParameters) WithView(view string) *GetEstimatedCostByOrgOptionalParameters
WithView sets the corresponding parameter name and returns the struct.
GetFindingOptionalParameters holds optional parameters for GetFinding.
type GetFindingOptionalParameters struct {
SnapshotTimestamp *int64
}
func NewGetFindingOptionalParameters() *GetFindingOptionalParameters
NewGetFindingOptionalParameters creates an empty struct for parameters.
func (r *GetFindingOptionalParameters) WithSnapshotTimestamp(snapshotTimestamp int64) *GetFindingOptionalParameters
WithSnapshotTimestamp sets the corresponding parameter name and returns the struct.
GetFindingResponse The expected response schema when getting a finding.
type GetFindingResponse struct {
// A single finding with with message and resource configuration.
Data DetailedFinding `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGetFindingResponse(data DetailedFinding) *GetFindingResponse
NewGetFindingResponse instantiates a new GetFindingResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGetFindingResponseWithDefaults() *GetFindingResponse
NewGetFindingResponseWithDefaults instantiates a new GetFindingResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GetFindingResponse) GetData() DetailedFinding
GetData returns the Data field value.
func (o *GetFindingResponse) GetDataOk() (*DetailedFinding, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o GetFindingResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GetFindingResponse) SetData(v DetailedFinding)
SetData sets field value.
func (o *GetFindingResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GetHistoricalCostByOrgOptionalParameters holds optional parameters for GetHistoricalCostByOrg.
type GetHistoricalCostByOrgOptionalParameters struct {
View *string
EndMonth *time.Time
}
func NewGetHistoricalCostByOrgOptionalParameters() *GetHistoricalCostByOrgOptionalParameters
NewGetHistoricalCostByOrgOptionalParameters creates an empty struct for parameters.
func (r *GetHistoricalCostByOrgOptionalParameters) WithEndMonth(endMonth time.Time) *GetHistoricalCostByOrgOptionalParameters
WithEndMonth sets the corresponding parameter name and returns the struct.
func (r *GetHistoricalCostByOrgOptionalParameters) WithView(view string) *GetHistoricalCostByOrgOptionalParameters
WithView sets the corresponding parameter name and returns the struct.
GetHourlyUsageOptionalParameters holds optional parameters for GetHourlyUsage.
type GetHourlyUsageOptionalParameters struct {
FilterTimestampEnd *time.Time
FilterIncludeDescendants *bool
FilterIncludeBreakdown *bool
FilterVersions *string
PageLimit *int32
PageNextRecordId *string
}
func NewGetHourlyUsageOptionalParameters() *GetHourlyUsageOptionalParameters
NewGetHourlyUsageOptionalParameters creates an empty struct for parameters.
func (r *GetHourlyUsageOptionalParameters) WithFilterIncludeBreakdown(filterIncludeBreakdown bool) *GetHourlyUsageOptionalParameters
WithFilterIncludeBreakdown sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithFilterIncludeDescendants(filterIncludeDescendants bool) *GetHourlyUsageOptionalParameters
WithFilterIncludeDescendants sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithFilterTimestampEnd(filterTimestampEnd time.Time) *GetHourlyUsageOptionalParameters
WithFilterTimestampEnd sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithFilterVersions(filterVersions string) *GetHourlyUsageOptionalParameters
WithFilterVersions sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithPageLimit(pageLimit int32) *GetHourlyUsageOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithPageNextRecordId(pageNextRecordId string) *GetHourlyUsageOptionalParameters
WithPageNextRecordId sets the corresponding parameter name and returns the struct.
GetIncidentOptionalParameters holds optional parameters for GetIncident.
type GetIncidentOptionalParameters struct {
Include *[]IncidentRelatedObject
}
func NewGetIncidentOptionalParameters() *GetIncidentOptionalParameters
NewGetIncidentOptionalParameters creates an empty struct for parameters.
func (r *GetIncidentOptionalParameters) WithInclude(include []IncidentRelatedObject) *GetIncidentOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetIncidentServiceOptionalParameters holds optional parameters for GetIncidentService.
type GetIncidentServiceOptionalParameters struct {
Include *IncidentRelatedObject
}
func NewGetIncidentServiceOptionalParameters() *GetIncidentServiceOptionalParameters
NewGetIncidentServiceOptionalParameters creates an empty struct for parameters.
func (r *GetIncidentServiceOptionalParameters) WithInclude(include IncidentRelatedObject) *GetIncidentServiceOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetIncidentTeamOptionalParameters holds optional parameters for GetIncidentTeam.
type GetIncidentTeamOptionalParameters struct {
Include *IncidentRelatedObject
}
func NewGetIncidentTeamOptionalParameters() *GetIncidentTeamOptionalParameters
NewGetIncidentTeamOptionalParameters creates an empty struct for parameters.
func (r *GetIncidentTeamOptionalParameters) WithInclude(include IncidentRelatedObject) *GetIncidentTeamOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetServiceDefinitionOptionalParameters holds optional parameters for GetServiceDefinition.
type GetServiceDefinitionOptionalParameters struct {
SchemaVersion *ServiceDefinitionSchemaVersions
}
func NewGetServiceDefinitionOptionalParameters() *GetServiceDefinitionOptionalParameters
NewGetServiceDefinitionOptionalParameters creates an empty struct for parameters.
func (r *GetServiceDefinitionOptionalParameters) WithSchemaVersion(schemaVersion ServiceDefinitionSchemaVersions) *GetServiceDefinitionOptionalParameters
WithSchemaVersion sets the corresponding parameter name and returns the struct.
GetTeamMembershipsOptionalParameters holds optional parameters for GetTeamMemberships.
type GetTeamMembershipsOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *GetTeamMembershipsSort
FilterKeyword *string
}
func NewGetTeamMembershipsOptionalParameters() *GetTeamMembershipsOptionalParameters
NewGetTeamMembershipsOptionalParameters creates an empty struct for parameters.
func (r *GetTeamMembershipsOptionalParameters) WithFilterKeyword(filterKeyword string) *GetTeamMembershipsOptionalParameters
WithFilterKeyword sets the corresponding parameter name and returns the struct.
func (r *GetTeamMembershipsOptionalParameters) WithPageNumber(pageNumber int64) *GetTeamMembershipsOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *GetTeamMembershipsOptionalParameters) WithPageSize(pageSize int64) *GetTeamMembershipsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *GetTeamMembershipsOptionalParameters) WithSort(sort GetTeamMembershipsSort) *GetTeamMembershipsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
GetTeamMembershipsSort Specifies the order of returned team memberships
type GetTeamMembershipsSort string
List of GetTeamMembershipsSort.
const (
GETTEAMMEMBERSHIPSSORT_MANAGER_NAME GetTeamMembershipsSort = "manager_name"
GETTEAMMEMBERSHIPSSORT__MANAGER_NAME GetTeamMembershipsSort = "-manager_name"
GETTEAMMEMBERSHIPSSORT_NAME GetTeamMembershipsSort = "name"
GETTEAMMEMBERSHIPSSORT__NAME GetTeamMembershipsSort = "-name"
GETTEAMMEMBERSHIPSSORT_HANDLE GetTeamMembershipsSort = "handle"
GETTEAMMEMBERSHIPSSORT__HANDLE GetTeamMembershipsSort = "-handle"
GETTEAMMEMBERSHIPSSORT_EMAIL GetTeamMembershipsSort = "email"
GETTEAMMEMBERSHIPSSORT__EMAIL GetTeamMembershipsSort = "-email"
)
func NewGetTeamMembershipsSortFromValue(v string) (*GetTeamMembershipsSort, error)
NewGetTeamMembershipsSortFromValue returns a pointer to a valid GetTeamMembershipsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *GetTeamMembershipsSort) GetAllowedValues() []GetTeamMembershipsSort
GetAllowedValues reeturns the list of possible values.
func (v GetTeamMembershipsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v GetTeamMembershipsSort) Ptr() *GetTeamMembershipsSort
Ptr returns reference to GetTeamMembershipsSort value.
func (v *GetTeamMembershipsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
GetUsageApplicationSecurityMonitoringOptionalParameters holds optional parameters for GetUsageApplicationSecurityMonitoring.
type GetUsageApplicationSecurityMonitoringOptionalParameters struct {
EndHr *time.Time
}
func NewGetUsageApplicationSecurityMonitoringOptionalParameters() *GetUsageApplicationSecurityMonitoringOptionalParameters
NewGetUsageApplicationSecurityMonitoringOptionalParameters creates an empty struct for parameters.
func (r *GetUsageApplicationSecurityMonitoringOptionalParameters) WithEndHr(endHr time.Time) *GetUsageApplicationSecurityMonitoringOptionalParameters
WithEndHr sets the corresponding parameter name and returns the struct.
GetUsageLambdaTracedInvocationsOptionalParameters holds optional parameters for GetUsageLambdaTracedInvocations.
type GetUsageLambdaTracedInvocationsOptionalParameters struct {
EndHr *time.Time
}
func NewGetUsageLambdaTracedInvocationsOptionalParameters() *GetUsageLambdaTracedInvocationsOptionalParameters
NewGetUsageLambdaTracedInvocationsOptionalParameters creates an empty struct for parameters.
func (r *GetUsageLambdaTracedInvocationsOptionalParameters) WithEndHr(endHr time.Time) *GetUsageLambdaTracedInvocationsOptionalParameters
WithEndHr sets the corresponding parameter name and returns the struct.
GetUsageObservabilityPipelinesOptionalParameters holds optional parameters for GetUsageObservabilityPipelines.
type GetUsageObservabilityPipelinesOptionalParameters struct {
EndHr *time.Time
}
func NewGetUsageObservabilityPipelinesOptionalParameters() *GetUsageObservabilityPipelinesOptionalParameters
NewGetUsageObservabilityPipelinesOptionalParameters creates an empty struct for parameters.
func (r *GetUsageObservabilityPipelinesOptionalParameters) WithEndHr(endHr time.Time) *GetUsageObservabilityPipelinesOptionalParameters
WithEndHr sets the corresponding parameter name and returns the struct.
GroupScalarColumn A column containing the tag keys and values in a group.
type GroupScalarColumn struct {
// The name of the tag key or group.
Name *string `json:"name,omitempty"`
// The type of column present.
Type *string `json:"type,omitempty"`
// The array of tag values for each group found for the results of the formulas or queries.
Values [][]string `json:"values,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewGroupScalarColumn() *GroupScalarColumn
NewGroupScalarColumn instantiates a new GroupScalarColumn object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewGroupScalarColumnWithDefaults() *GroupScalarColumn
NewGroupScalarColumnWithDefaults instantiates a new GroupScalarColumn object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *GroupScalarColumn) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *GroupScalarColumn) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GroupScalarColumn) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *GroupScalarColumn) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GroupScalarColumn) GetValues() [][]string
GetValues returns the Values field value if set, zero value otherwise.
func (o *GroupScalarColumn) GetValuesOk() (*[][]string, bool)
GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *GroupScalarColumn) HasName() bool
HasName returns a boolean if a field has been set.
func (o *GroupScalarColumn) HasType() bool
HasType returns a boolean if a field has been set.
func (o *GroupScalarColumn) HasValues() bool
HasValues returns a boolean if a field has been set.
func (o GroupScalarColumn) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *GroupScalarColumn) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *GroupScalarColumn) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *GroupScalarColumn) SetValues(v [][]string)
SetValues gets a reference to the given [][]string and assigns it to the Values field.
func (o *GroupScalarColumn) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HTTPCIAppError List of errors.
type HTTPCIAppError struct {
// Error message.
Detail *string `json:"detail,omitempty"`
// Error code.
Status *string `json:"status,omitempty"`
// Error title.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHTTPCIAppError() *HTTPCIAppError
NewHTTPCIAppError instantiates a new HTTPCIAppError object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHTTPCIAppErrorWithDefaults() *HTTPCIAppError
NewHTTPCIAppErrorWithDefaults instantiates a new HTTPCIAppError object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HTTPCIAppError) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *HTTPCIAppError) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPCIAppError) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *HTTPCIAppError) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPCIAppError) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *HTTPCIAppError) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPCIAppError) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *HTTPCIAppError) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *HTTPCIAppError) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o HTTPCIAppError) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HTTPCIAppError) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *HTTPCIAppError) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *HTTPCIAppError) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *HTTPCIAppError) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HTTPCIAppErrors Errors occurred.
type HTTPCIAppErrors struct {
// Structured errors.
Errors []HTTPCIAppError `json:"errors,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHTTPCIAppErrors() *HTTPCIAppErrors
NewHTTPCIAppErrors instantiates a new HTTPCIAppErrors object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHTTPCIAppErrorsWithDefaults() *HTTPCIAppErrors
NewHTTPCIAppErrorsWithDefaults instantiates a new HTTPCIAppErrors object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HTTPCIAppErrors) GetErrors() []HTTPCIAppError
GetErrors returns the Errors field value if set, zero value otherwise.
func (o *HTTPCIAppErrors) GetErrorsOk() (*[]HTTPCIAppError, bool)
GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPCIAppErrors) HasErrors() bool
HasErrors returns a boolean if a field has been set.
func (o HTTPCIAppErrors) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HTTPCIAppErrors) SetErrors(v []HTTPCIAppError)
SetErrors gets a reference to the given []HTTPCIAppError and assigns it to the Errors field.
func (o *HTTPCIAppErrors) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HTTPLogError List of errors.
type HTTPLogError struct {
// Error message.
Detail *string `json:"detail,omitempty"`
// Error code.
Status *string `json:"status,omitempty"`
// Error title.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHTTPLogError() *HTTPLogError
NewHTTPLogError instantiates a new HTTPLogError object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHTTPLogErrorWithDefaults() *HTTPLogError
NewHTTPLogErrorWithDefaults instantiates a new HTTPLogError object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HTTPLogError) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *HTTPLogError) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogError) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *HTTPLogError) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogError) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *HTTPLogError) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogError) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *HTTPLogError) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *HTTPLogError) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o HTTPLogError) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HTTPLogError) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *HTTPLogError) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *HTTPLogError) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *HTTPLogError) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HTTPLogErrors Invalid query performed.
type HTTPLogErrors struct {
// Structured errors.
Errors []HTTPLogError `json:"errors,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHTTPLogErrors() *HTTPLogErrors
NewHTTPLogErrors instantiates a new HTTPLogErrors object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHTTPLogErrorsWithDefaults() *HTTPLogErrors
NewHTTPLogErrorsWithDefaults instantiates a new HTTPLogErrors object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HTTPLogErrors) GetErrors() []HTTPLogError
GetErrors returns the Errors field value if set, zero value otherwise.
func (o *HTTPLogErrors) GetErrorsOk() (*[]HTTPLogError, bool)
GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogErrors) HasErrors() bool
HasErrors returns a boolean if a field has been set.
func (o HTTPLogErrors) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HTTPLogErrors) SetErrors(v []HTTPLogError)
SetErrors gets a reference to the given []HTTPLogError and assigns it to the Errors field.
func (o *HTTPLogErrors) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HTTPLogItem Logs that are sent over HTTP.
type HTTPLogItem struct {
// The integration name associated with your log: the technology from which the log originated.
// When it matches an integration name, Datadog automatically installs the corresponding parsers and facets.
// See [reserved attributes](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes).
Ddsource *string `json:"ddsource,omitempty"`
// Tags associated with your logs.
Ddtags *string `json:"ddtags,omitempty"`
// The name of the originating host of the log.
Hostname *string `json:"hostname,omitempty"`
// The message [reserved attribute](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes)
// of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry.
// That value is then highlighted and displayed in the Logstream, where it is indexed for full text search.
Message string `json:"message"`
// The name of the application or service generating the log events.
// It is used to switch from Logs to APM, so make sure you define the same value when you use both products.
// See [reserved attributes](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes).
Service *string `json:"service,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]string
}
func NewHTTPLogItem(message string) *HTTPLogItem
NewHTTPLogItem instantiates a new HTTPLogItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHTTPLogItemWithDefaults() *HTTPLogItem
NewHTTPLogItemWithDefaults instantiates a new HTTPLogItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HTTPLogItem) GetDdsource() string
GetDdsource returns the Ddsource field value if set, zero value otherwise.
func (o *HTTPLogItem) GetDdsourceOk() (*string, bool)
GetDdsourceOk returns a tuple with the Ddsource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogItem) GetDdtags() string
GetDdtags returns the Ddtags field value if set, zero value otherwise.
func (o *HTTPLogItem) GetDdtagsOk() (*string, bool)
GetDdtagsOk returns a tuple with the Ddtags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogItem) GetHostname() string
GetHostname returns the Hostname field value if set, zero value otherwise.
func (o *HTTPLogItem) GetHostnameOk() (*string, bool)
GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogItem) GetMessage() string
GetMessage returns the Message field value.
func (o *HTTPLogItem) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (o *HTTPLogItem) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *HTTPLogItem) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogItem) HasDdsource() bool
HasDdsource returns a boolean if a field has been set.
func (o *HTTPLogItem) HasDdtags() bool
HasDdtags returns a boolean if a field has been set.
func (o *HTTPLogItem) HasHostname() bool
HasHostname returns a boolean if a field has been set.
func (o *HTTPLogItem) HasService() bool
HasService returns a boolean if a field has been set.
func (o HTTPLogItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HTTPLogItem) SetDdsource(v string)
SetDdsource gets a reference to the given string and assigns it to the Ddsource field.
func (o *HTTPLogItem) SetDdtags(v string)
SetDdtags gets a reference to the given string and assigns it to the Ddtags field.
func (o *HTTPLogItem) SetHostname(v string)
SetHostname gets a reference to the given string and assigns it to the Hostname field.
func (o *HTTPLogItem) SetMessage(v string)
SetMessage sets field value.
func (o *HTTPLogItem) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *HTTPLogItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsage Hourly usage for a product family for an org.
type HourlyUsage struct {
// Attributes of hourly usage for a product family for an org for a time period.
Attributes *HourlyUsageAttributes `json:"attributes,omitempty"`
// Unique ID of the response.
Id *string `json:"id,omitempty"`
// Type of usage data.
Type *UsageTimeSeriesType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsage() *HourlyUsage
NewHourlyUsage instantiates a new HourlyUsage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageWithDefaults() *HourlyUsage
NewHourlyUsageWithDefaults instantiates a new HourlyUsage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsage) GetAttributes() HourlyUsageAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *HourlyUsage) GetAttributesOk() (*HourlyUsageAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsage) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *HourlyUsage) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsage) GetType() UsageTimeSeriesType
GetType returns the Type field value if set, zero value otherwise.
func (o *HourlyUsage) GetTypeOk() (*UsageTimeSeriesType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsage) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *HourlyUsage) HasId() bool
HasId returns a boolean if a field has been set.
func (o *HourlyUsage) HasType() bool
HasType returns a boolean if a field has been set.
func (o HourlyUsage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsage) SetAttributes(v HourlyUsageAttributes)
SetAttributes gets a reference to the given HourlyUsageAttributes and assigns it to the Attributes field.
func (o *HourlyUsage) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *HourlyUsage) SetType(v UsageTimeSeriesType)
SetType gets a reference to the given UsageTimeSeriesType and assigns it to the Type field.
func (o *HourlyUsage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsageAttributes Attributes of hourly usage for a product family for an org for a time period.
type HourlyUsageAttributes struct {
// List of the measured usage values for the product family for the org for the time period.
Measurements []HourlyUsageMeasurement `json:"measurements,omitempty"`
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The product for which usage is being reported.
ProductFamily *string `json:"product_family,omitempty"`
// The organization public ID.
PublicId *string `json:"public_id,omitempty"`
// The region of the Datadog instance that the organization belongs to.
Region *string `json:"region,omitempty"`
// Datetime in ISO-8601 format, UTC. The hour for the usage.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsageAttributes() *HourlyUsageAttributes
NewHourlyUsageAttributes instantiates a new HourlyUsageAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageAttributesWithDefaults() *HourlyUsageAttributes
NewHourlyUsageAttributesWithDefaults instantiates a new HourlyUsageAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsageAttributes) GetMeasurements() []HourlyUsageMeasurement
GetMeasurements returns the Measurements field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetMeasurementsOk() (*[]HourlyUsageMeasurement, bool)
GetMeasurementsOk returns a tuple with the Measurements field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetOrgName() string
GetOrgName returns the OrgName field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetOrgNameOk() (*string, bool)
GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetProductFamily() string
GetProductFamily returns the ProductFamily field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetProductFamilyOk() (*string, bool)
GetProductFamilyOk returns a tuple with the ProductFamily field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetPublicId() string
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetPublicIdOk() (*string, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetRegion() string
GetRegion returns the Region field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetRegionOk() (*string, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) HasMeasurements() bool
HasMeasurements returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasOrgName() bool
HasOrgName returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasProductFamily() bool
HasProductFamily returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o HourlyUsageAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsageAttributes) SetMeasurements(v []HourlyUsageMeasurement)
SetMeasurements gets a reference to the given []HourlyUsageMeasurement and assigns it to the Measurements field.
func (o *HourlyUsageAttributes) SetOrgName(v string)
SetOrgName gets a reference to the given string and assigns it to the OrgName field.
func (o *HourlyUsageAttributes) SetProductFamily(v string)
SetProductFamily gets a reference to the given string and assigns it to the ProductFamily field.
func (o *HourlyUsageAttributes) SetPublicId(v string)
SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *HourlyUsageAttributes) SetRegion(v string)
SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *HourlyUsageAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *HourlyUsageAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsageMeasurement Usage amount for a given usage type.
type HourlyUsageMeasurement struct {
// Type of usage.
UsageType *string `json:"usage_type,omitempty"`
// Contains the number measured for the given usage_type during the hour.
Value datadog.NullableInt64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsageMeasurement() *HourlyUsageMeasurement
NewHourlyUsageMeasurement instantiates a new HourlyUsageMeasurement object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageMeasurementWithDefaults() *HourlyUsageMeasurement
NewHourlyUsageMeasurementWithDefaults instantiates a new HourlyUsageMeasurement object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsageMeasurement) GetUsageType() string
GetUsageType returns the UsageType field value if set, zero value otherwise.
func (o *HourlyUsageMeasurement) GetUsageTypeOk() (*string, bool)
GetUsageTypeOk returns a tuple with the UsageType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageMeasurement) GetValue() int64
GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HourlyUsageMeasurement) GetValueOk() (*int64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *HourlyUsageMeasurement) HasUsageType() bool
HasUsageType returns a boolean if a field has been set.
func (o *HourlyUsageMeasurement) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o HourlyUsageMeasurement) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsageMeasurement) SetUsageType(v string)
SetUsageType gets a reference to the given string and assigns it to the UsageType field.
func (o *HourlyUsageMeasurement) SetValue(v int64)
SetValue gets a reference to the given datadog.NullableInt64 and assigns it to the Value field.
func (o *HourlyUsageMeasurement) SetValueNil()
SetValueNil sets the value for Value to be an explicit nil.
func (o *HourlyUsageMeasurement) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *HourlyUsageMeasurement) UnsetValue()
UnsetValue ensures that no value is present for Value, not even an explicit nil.
HourlyUsageMetadata The object containing document metadata.
type HourlyUsageMetadata struct {
// The metadata for the current pagination.
Pagination *HourlyUsagePagination `json:"pagination,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsageMetadata() *HourlyUsageMetadata
NewHourlyUsageMetadata instantiates a new HourlyUsageMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageMetadataWithDefaults() *HourlyUsageMetadata
NewHourlyUsageMetadataWithDefaults instantiates a new HourlyUsageMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsageMetadata) GetPagination() HourlyUsagePagination
GetPagination returns the Pagination field value if set, zero value otherwise.
func (o *HourlyUsageMetadata) GetPaginationOk() (*HourlyUsagePagination, bool)
GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageMetadata) HasPagination() bool
HasPagination returns a boolean if a field has been set.
func (o HourlyUsageMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsageMetadata) SetPagination(v HourlyUsagePagination)
SetPagination gets a reference to the given HourlyUsagePagination and assigns it to the Pagination field.
func (o *HourlyUsageMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsagePagination The metadata for the current pagination.
type HourlyUsagePagination struct {
// The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`.
NextRecordId datadog.NullableString `json:"next_record_id,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsagePagination() *HourlyUsagePagination
NewHourlyUsagePagination instantiates a new HourlyUsagePagination object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsagePaginationWithDefaults() *HourlyUsagePagination
NewHourlyUsagePaginationWithDefaults instantiates a new HourlyUsagePagination object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsagePagination) GetNextRecordId() string
GetNextRecordId returns the NextRecordId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HourlyUsagePagination) GetNextRecordIdOk() (*string, bool)
GetNextRecordIdOk returns a tuple with the NextRecordId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *HourlyUsagePagination) HasNextRecordId() bool
HasNextRecordId returns a boolean if a field has been set.
func (o HourlyUsagePagination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsagePagination) SetNextRecordId(v string)
SetNextRecordId gets a reference to the given datadog.NullableString and assigns it to the NextRecordId field.
func (o *HourlyUsagePagination) SetNextRecordIdNil()
SetNextRecordIdNil sets the value for NextRecordId to be an explicit nil.
func (o *HourlyUsagePagination) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *HourlyUsagePagination) UnsetNextRecordId()
UnsetNextRecordId ensures that no value is present for NextRecordId, not even an explicit nil.
HourlyUsageResponse Hourly usage response.
type HourlyUsageResponse struct {
// Response containing hourly usage.
Data []HourlyUsage `json:"data,omitempty"`
// The object containing document metadata.
Meta *HourlyUsageMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsageResponse() *HourlyUsageResponse
NewHourlyUsageResponse instantiates a new HourlyUsageResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageResponseWithDefaults() *HourlyUsageResponse
NewHourlyUsageResponseWithDefaults instantiates a new HourlyUsageResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsageResponse) GetData() []HourlyUsage
GetData returns the Data field value if set, zero value otherwise.
func (o *HourlyUsageResponse) GetDataOk() (*[]HourlyUsage, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageResponse) GetMeta() HourlyUsageMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *HourlyUsageResponse) GetMetaOk() (*HourlyUsageMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *HourlyUsageResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o HourlyUsageResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsageResponse) SetData(v []HourlyUsage)
SetData gets a reference to the given []HourlyUsage and assigns it to the Data field.
func (o *HourlyUsageResponse) SetMeta(v HourlyUsageMetadata)
SetMeta gets a reference to the given HourlyUsageMetadata and assigns it to the Meta field.
func (o *HourlyUsageResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsageType Usage type that is being measured.
type HourlyUsageType string
List of HourlyUsageType.
const (
HOURLYUSAGETYPE_APP_SEC_HOST_COUNT HourlyUsageType = "app_sec_host_count"
HOURLYUSAGETYPE_OBSERVABILITY_PIPELINES_BYTES_PROCESSSED HourlyUsageType = "observability_pipelines_bytes_processed"
HOURLYUSAGETYPE_LAMBDA_TRACED_INVOCATIONS_COUNT HourlyUsageType = "lambda_traced_invocations_count"
)
func NewHourlyUsageTypeFromValue(v string) (*HourlyUsageType, error)
NewHourlyUsageTypeFromValue returns a pointer to a valid HourlyUsageType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *HourlyUsageType) GetAllowedValues() []HourlyUsageType
GetAllowedValues reeturns the list of possible values.
func (v HourlyUsageType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v HourlyUsageType) Ptr() *HourlyUsageType
Ptr returns reference to HourlyUsageType value.
func (v *HourlyUsageType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IPAllowlistApi service type
type IPAllowlistApi datadog.Service
func NewIPAllowlistApi(client *datadog.APIClient) *IPAllowlistApi
NewIPAllowlistApi Returns NewIPAllowlistApi.
func (a *IPAllowlistApi) GetIPAllowlist(ctx _context.Context) (IPAllowlistResponse, *_nethttp.Response, error)
GetIPAllowlist Get IP Allowlist. Returns the IP allowlist and its enabled or disabled state.
func (a *IPAllowlistApi) UpdateIPAllowlist(ctx _context.Context, body IPAllowlistUpdateRequest) (IPAllowlistResponse, *_nethttp.Response, error)
UpdateIPAllowlist Update IP Allowlist. Edit the entries in the IP allowlist, and enable or disable it.
IPAllowlistAttributes Attributes of the IP allowlist.
type IPAllowlistAttributes struct {
// Whether the IP allowlist logic is enabled or not.
Enabled *bool `json:"enabled,omitempty"`
// Array of entries in the IP allowlist.
Entries []IPAllowlistEntry `json:"entries,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIPAllowlistAttributes() *IPAllowlistAttributes
NewIPAllowlistAttributes instantiates a new IPAllowlistAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIPAllowlistAttributesWithDefaults() *IPAllowlistAttributes
NewIPAllowlistAttributesWithDefaults instantiates a new IPAllowlistAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IPAllowlistAttributes) GetEnabled() bool
GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *IPAllowlistAttributes) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistAttributes) GetEntries() []IPAllowlistEntry
GetEntries returns the Entries field value if set, zero value otherwise.
func (o *IPAllowlistAttributes) GetEntriesOk() (*[]IPAllowlistEntry, bool)
GetEntriesOk returns a tuple with the Entries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistAttributes) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *IPAllowlistAttributes) HasEntries() bool
HasEntries returns a boolean if a field has been set.
func (o IPAllowlistAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IPAllowlistAttributes) SetEnabled(v bool)
SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *IPAllowlistAttributes) SetEntries(v []IPAllowlistEntry)
SetEntries gets a reference to the given []IPAllowlistEntry and assigns it to the Entries field.
func (o *IPAllowlistAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IPAllowlistData IP allowlist data.
type IPAllowlistData struct {
// Attributes of the IP allowlist.
Attributes *IPAllowlistAttributes `json:"attributes,omitempty"`
// The unique identifier of the org.
Id *string `json:"id,omitempty"`
// IP allowlist type.
Type IPAllowlistType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIPAllowlistData(typeVar IPAllowlistType) *IPAllowlistData
NewIPAllowlistData instantiates a new IPAllowlistData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIPAllowlistDataWithDefaults() *IPAllowlistData
NewIPAllowlistDataWithDefaults instantiates a new IPAllowlistData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IPAllowlistData) GetAttributes() IPAllowlistAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IPAllowlistData) GetAttributesOk() (*IPAllowlistAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IPAllowlistData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistData) GetType() IPAllowlistType
GetType returns the Type field value.
func (o *IPAllowlistData) GetTypeOk() (*IPAllowlistType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IPAllowlistData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IPAllowlistData) HasId() bool
HasId returns a boolean if a field has been set.
func (o IPAllowlistData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IPAllowlistData) SetAttributes(v IPAllowlistAttributes)
SetAttributes gets a reference to the given IPAllowlistAttributes and assigns it to the Attributes field.
func (o *IPAllowlistData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IPAllowlistData) SetType(v IPAllowlistType)
SetType sets field value.
func (o *IPAllowlistData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IPAllowlistEntry IP allowlist entry object.
type IPAllowlistEntry struct {
// Data of the IP allowlist entry object.
Data IPAllowlistEntryData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIPAllowlistEntry(data IPAllowlistEntryData) *IPAllowlistEntry
NewIPAllowlistEntry instantiates a new IPAllowlistEntry object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIPAllowlistEntryWithDefaults() *IPAllowlistEntry
NewIPAllowlistEntryWithDefaults instantiates a new IPAllowlistEntry object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IPAllowlistEntry) GetData() IPAllowlistEntryData
GetData returns the Data field value.
func (o *IPAllowlistEntry) GetDataOk() (*IPAllowlistEntryData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IPAllowlistEntry) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IPAllowlistEntry) SetData(v IPAllowlistEntryData)
SetData sets field value.
func (o *IPAllowlistEntry) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IPAllowlistEntryAttributes Attributes of the IP allowlist entry.
type IPAllowlistEntryAttributes struct {
// The CIDR block describing the IP range of the entry.
CidrBlock *string `json:"cidr_block,omitempty"`
// Creation time of the entry.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last entry modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// A note describing the IP allowlist entry.
Note *string `json:"note,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIPAllowlistEntryAttributes() *IPAllowlistEntryAttributes
NewIPAllowlistEntryAttributes instantiates a new IPAllowlistEntryAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIPAllowlistEntryAttributesWithDefaults() *IPAllowlistEntryAttributes
NewIPAllowlistEntryAttributesWithDefaults instantiates a new IPAllowlistEntryAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IPAllowlistEntryAttributes) GetCidrBlock() string
GetCidrBlock returns the CidrBlock field value if set, zero value otherwise.
func (o *IPAllowlistEntryAttributes) GetCidrBlockOk() (*string, bool)
GetCidrBlockOk returns a tuple with the CidrBlock field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistEntryAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *IPAllowlistEntryAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistEntryAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *IPAllowlistEntryAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistEntryAttributes) GetNote() string
GetNote returns the Note field value if set, zero value otherwise.
func (o *IPAllowlistEntryAttributes) GetNoteOk() (*string, bool)
GetNoteOk returns a tuple with the Note field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistEntryAttributes) HasCidrBlock() bool
HasCidrBlock returns a boolean if a field has been set.
func (o *IPAllowlistEntryAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *IPAllowlistEntryAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *IPAllowlistEntryAttributes) HasNote() bool
HasNote returns a boolean if a field has been set.
func (o IPAllowlistEntryAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IPAllowlistEntryAttributes) SetCidrBlock(v string)
SetCidrBlock gets a reference to the given string and assigns it to the CidrBlock field.
func (o *IPAllowlistEntryAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *IPAllowlistEntryAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *IPAllowlistEntryAttributes) SetNote(v string)
SetNote gets a reference to the given string and assigns it to the Note field.
func (o *IPAllowlistEntryAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IPAllowlistEntryData Data of the IP allowlist entry object.
type IPAllowlistEntryData struct {
// Attributes of the IP allowlist entry.
Attributes *IPAllowlistEntryAttributes `json:"attributes,omitempty"`
// The unique identifier of the IP allowlist entry.
Id *string `json:"id,omitempty"`
// IP allowlist Entry type.
Type IPAllowlistEntryType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIPAllowlistEntryData(typeVar IPAllowlistEntryType) *IPAllowlistEntryData
NewIPAllowlistEntryData instantiates a new IPAllowlistEntryData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIPAllowlistEntryDataWithDefaults() *IPAllowlistEntryData
NewIPAllowlistEntryDataWithDefaults instantiates a new IPAllowlistEntryData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IPAllowlistEntryData) GetAttributes() IPAllowlistEntryAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IPAllowlistEntryData) GetAttributesOk() (*IPAllowlistEntryAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistEntryData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IPAllowlistEntryData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistEntryData) GetType() IPAllowlistEntryType
GetType returns the Type field value.
func (o *IPAllowlistEntryData) GetTypeOk() (*IPAllowlistEntryType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IPAllowlistEntryData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IPAllowlistEntryData) HasId() bool
HasId returns a boolean if a field has been set.
func (o IPAllowlistEntryData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IPAllowlistEntryData) SetAttributes(v IPAllowlistEntryAttributes)
SetAttributes gets a reference to the given IPAllowlistEntryAttributes and assigns it to the Attributes field.
func (o *IPAllowlistEntryData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IPAllowlistEntryData) SetType(v IPAllowlistEntryType)
SetType sets field value.
func (o *IPAllowlistEntryData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IPAllowlistEntryType IP allowlist Entry type.
type IPAllowlistEntryType string
List of IPAllowlistEntryType.
const (
IPALLOWLISTENTRYTYPE_IP_ALLOWLIST_ENTRY IPAllowlistEntryType = "ip_allowlist_entry"
)
func NewIPAllowlistEntryTypeFromValue(v string) (*IPAllowlistEntryType, error)
NewIPAllowlistEntryTypeFromValue returns a pointer to a valid IPAllowlistEntryType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IPAllowlistEntryType) GetAllowedValues() []IPAllowlistEntryType
GetAllowedValues reeturns the list of possible values.
func (v IPAllowlistEntryType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IPAllowlistEntryType) Ptr() *IPAllowlistEntryType
Ptr returns reference to IPAllowlistEntryType value.
func (v *IPAllowlistEntryType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IPAllowlistResponse Response containing information about the IP allowlist.
type IPAllowlistResponse struct {
// IP allowlist data.
Data *IPAllowlistData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIPAllowlistResponse() *IPAllowlistResponse
NewIPAllowlistResponse instantiates a new IPAllowlistResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIPAllowlistResponseWithDefaults() *IPAllowlistResponse
NewIPAllowlistResponseWithDefaults instantiates a new IPAllowlistResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IPAllowlistResponse) GetData() IPAllowlistData
GetData returns the Data field value if set, zero value otherwise.
func (o *IPAllowlistResponse) GetDataOk() (*IPAllowlistData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IPAllowlistResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o IPAllowlistResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IPAllowlistResponse) SetData(v IPAllowlistData)
SetData gets a reference to the given IPAllowlistData and assigns it to the Data field.
func (o *IPAllowlistResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IPAllowlistType IP allowlist type.
type IPAllowlistType string
List of IPAllowlistType.
const (
IPALLOWLISTTYPE_IP_ALLOWLIST IPAllowlistType = "ip_allowlist"
)
func NewIPAllowlistTypeFromValue(v string) (*IPAllowlistType, error)
NewIPAllowlistTypeFromValue returns a pointer to a valid IPAllowlistType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IPAllowlistType) GetAllowedValues() []IPAllowlistType
GetAllowedValues reeturns the list of possible values.
func (v IPAllowlistType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IPAllowlistType) Ptr() *IPAllowlistType
Ptr returns reference to IPAllowlistType value.
func (v *IPAllowlistType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IPAllowlistUpdateRequest Update the IP allowlist.
type IPAllowlistUpdateRequest struct {
// IP allowlist data.
Data IPAllowlistData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIPAllowlistUpdateRequest(data IPAllowlistData) *IPAllowlistUpdateRequest
NewIPAllowlistUpdateRequest instantiates a new IPAllowlistUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIPAllowlistUpdateRequestWithDefaults() *IPAllowlistUpdateRequest
NewIPAllowlistUpdateRequestWithDefaults instantiates a new IPAllowlistUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IPAllowlistUpdateRequest) GetData() IPAllowlistData
GetData returns the Data field value.
func (o *IPAllowlistUpdateRequest) GetDataOk() (*IPAllowlistData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IPAllowlistUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IPAllowlistUpdateRequest) SetData(v IPAllowlistData)
SetData sets field value.
func (o *IPAllowlistUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IdPMetadataFormData The form data submitted to upload IdP metadata
type IdPMetadataFormData struct {
// The IdP metadata XML file
IdpFile **os.File `json:"idp_file,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIdPMetadataFormData() *IdPMetadataFormData
NewIdPMetadataFormData instantiates a new IdPMetadataFormData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIdPMetadataFormDataWithDefaults() *IdPMetadataFormData
NewIdPMetadataFormDataWithDefaults instantiates a new IdPMetadataFormData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IdPMetadataFormData) GetIdpFile() *os.File
GetIdpFile returns the IdpFile field value if set, zero value otherwise.
func (o *IdPMetadataFormData) GetIdpFileOk() (**os.File, bool)
GetIdpFileOk returns a tuple with the IdpFile field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IdPMetadataFormData) HasIdpFile() bool
HasIdpFile returns a boolean if a field has been set.
func (o IdPMetadataFormData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IdPMetadataFormData) SetIdpFile(v *os.File)
SetIdpFile gets a reference to the given *os.File and assigns it to the IdpFile field.
func (o *IdPMetadataFormData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentAttachmentType The type of the incident attachment attributes.
type IncidentAttachmentAttachmentType string
List of IncidentAttachmentAttachmentType.
const (
INCIDENTATTACHMENTATTACHMENTTYPE_LINK IncidentAttachmentAttachmentType = "link"
INCIDENTATTACHMENTATTACHMENTTYPE_POSTMORTEM IncidentAttachmentAttachmentType = "postmortem"
)
func NewIncidentAttachmentAttachmentTypeFromValue(v string) (*IncidentAttachmentAttachmentType, error)
NewIncidentAttachmentAttachmentTypeFromValue returns a pointer to a valid IncidentAttachmentAttachmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentAttachmentType) GetAllowedValues() []IncidentAttachmentAttachmentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentAttachmentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentAttachmentType) Ptr() *IncidentAttachmentAttachmentType
Ptr returns reference to IncidentAttachmentAttachmentType value.
func (v *IncidentAttachmentAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentAttributes - The attributes object for an attachment.
type IncidentAttachmentAttributes struct {
IncidentAttachmentPostmortemAttributes *IncidentAttachmentPostmortemAttributes
IncidentAttachmentLinkAttributes *IncidentAttachmentLinkAttributes
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentAttachmentLinkAttributesAsIncidentAttachmentAttributes(v *IncidentAttachmentLinkAttributes) IncidentAttachmentAttributes
IncidentAttachmentLinkAttributesAsIncidentAttachmentAttributes is a convenience function that returns IncidentAttachmentLinkAttributes wrapped in IncidentAttachmentAttributes.
func IncidentAttachmentPostmortemAttributesAsIncidentAttachmentAttributes(v *IncidentAttachmentPostmortemAttributes) IncidentAttachmentAttributes
IncidentAttachmentPostmortemAttributesAsIncidentAttachmentAttributes is a convenience function that returns IncidentAttachmentPostmortemAttributes wrapped in IncidentAttachmentAttributes.
func (obj *IncidentAttachmentAttributes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentAttachmentAttributes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentAttachmentAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentAttachmentData A single incident attachment.
type IncidentAttachmentData struct {
// The attributes object for an attachment.
Attributes IncidentAttachmentAttributes `json:"attributes"`
// A unique identifier that represents the incident attachment.
Id string `json:"id"`
// The incident attachment's relationships.
Relationships IncidentAttachmentRelationships `json:"relationships"`
// The incident attachment resource type.
Type IncidentAttachmentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentData(attributes IncidentAttachmentAttributes, id string, relationships IncidentAttachmentRelationships, typeVar IncidentAttachmentType) *IncidentAttachmentData
NewIncidentAttachmentData instantiates a new IncidentAttachmentData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentDataWithDefaults() *IncidentAttachmentData
NewIncidentAttachmentDataWithDefaults instantiates a new IncidentAttachmentData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentData) GetAttributes() IncidentAttachmentAttributes
GetAttributes returns the Attributes field value.
func (o *IncidentAttachmentData) GetAttributesOk() (*IncidentAttachmentAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentData) GetId() string
GetId returns the Id field value.
func (o *IncidentAttachmentData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentData) GetRelationships() IncidentAttachmentRelationships
GetRelationships returns the Relationships field value.
func (o *IncidentAttachmentData) GetRelationshipsOk() (*IncidentAttachmentRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentData) GetType() IncidentAttachmentType
GetType returns the Type field value.
func (o *IncidentAttachmentData) GetTypeOk() (*IncidentAttachmentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o IncidentAttachmentData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentData) SetAttributes(v IncidentAttachmentAttributes)
SetAttributes sets field value.
func (o *IncidentAttachmentData) SetId(v string)
SetId sets field value.
func (o *IncidentAttachmentData) SetRelationships(v IncidentAttachmentRelationships)
SetRelationships sets field value.
func (o *IncidentAttachmentData) SetType(v IncidentAttachmentType)
SetType sets field value.
func (o *IncidentAttachmentData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentLinkAttachmentType The type of link attachment attributes.
type IncidentAttachmentLinkAttachmentType string
List of IncidentAttachmentLinkAttachmentType.
const (
INCIDENTATTACHMENTLINKATTACHMENTTYPE_LINK IncidentAttachmentLinkAttachmentType = "link"
)
func NewIncidentAttachmentLinkAttachmentTypeFromValue(v string) (*IncidentAttachmentLinkAttachmentType, error)
NewIncidentAttachmentLinkAttachmentTypeFromValue returns a pointer to a valid IncidentAttachmentLinkAttachmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentLinkAttachmentType) GetAllowedValues() []IncidentAttachmentLinkAttachmentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentLinkAttachmentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentLinkAttachmentType) Ptr() *IncidentAttachmentLinkAttachmentType
Ptr returns reference to IncidentAttachmentLinkAttachmentType value.
func (v *IncidentAttachmentLinkAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentLinkAttributes The attributes object for a link attachment.
type IncidentAttachmentLinkAttributes struct {
// The link attachment.
Attachment IncidentAttachmentLinkAttributesAttachmentObject `json:"attachment"`
// The type of link attachment attributes.
AttachmentType IncidentAttachmentLinkAttachmentType `json:"attachment_type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentLinkAttributes(attachment IncidentAttachmentLinkAttributesAttachmentObject, attachmentType IncidentAttachmentLinkAttachmentType) *IncidentAttachmentLinkAttributes
NewIncidentAttachmentLinkAttributes instantiates a new IncidentAttachmentLinkAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentLinkAttributesWithDefaults() *IncidentAttachmentLinkAttributes
NewIncidentAttachmentLinkAttributesWithDefaults instantiates a new IncidentAttachmentLinkAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentLinkAttributes) GetAttachment() IncidentAttachmentLinkAttributesAttachmentObject
GetAttachment returns the Attachment field value.
func (o *IncidentAttachmentLinkAttributes) GetAttachmentOk() (*IncidentAttachmentLinkAttributesAttachmentObject, bool)
GetAttachmentOk returns a tuple with the Attachment field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentLinkAttributes) GetAttachmentType() IncidentAttachmentLinkAttachmentType
GetAttachmentType returns the AttachmentType field value.
func (o *IncidentAttachmentLinkAttributes) GetAttachmentTypeOk() (*IncidentAttachmentLinkAttachmentType, bool)
GetAttachmentTypeOk returns a tuple with the AttachmentType field value and a boolean to check if the value has been set.
func (o IncidentAttachmentLinkAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentLinkAttributes) SetAttachment(v IncidentAttachmentLinkAttributesAttachmentObject)
SetAttachment sets field value.
func (o *IncidentAttachmentLinkAttributes) SetAttachmentType(v IncidentAttachmentLinkAttachmentType)
SetAttachmentType sets field value.
func (o *IncidentAttachmentLinkAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentLinkAttributesAttachmentObject The link attachment.
type IncidentAttachmentLinkAttributesAttachmentObject struct {
// The URL of this link attachment.
DocumentUrl string `json:"documentUrl"`
// The title of this link attachment.
Title string `json:"title"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentLinkAttributesAttachmentObject(documentUrl string, title string) *IncidentAttachmentLinkAttributesAttachmentObject
NewIncidentAttachmentLinkAttributesAttachmentObject instantiates a new IncidentAttachmentLinkAttributesAttachmentObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentLinkAttributesAttachmentObjectWithDefaults() *IncidentAttachmentLinkAttributesAttachmentObject
NewIncidentAttachmentLinkAttributesAttachmentObjectWithDefaults instantiates a new IncidentAttachmentLinkAttributesAttachmentObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) GetDocumentUrl() string
GetDocumentUrl returns the DocumentUrl field value.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) GetDocumentUrlOk() (*string, bool)
GetDocumentUrlOk returns a tuple with the DocumentUrl field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) GetTitle() string
GetTitle returns the Title field value.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o IncidentAttachmentLinkAttributesAttachmentObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) SetDocumentUrl(v string)
SetDocumentUrl sets field value.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) SetTitle(v string)
SetTitle sets field value.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentPostmortemAttachmentType The type of postmortem attachment attributes.
type IncidentAttachmentPostmortemAttachmentType string
List of IncidentAttachmentPostmortemAttachmentType.
const (
INCIDENTATTACHMENTPOSTMORTEMATTACHMENTTYPE_POSTMORTEM IncidentAttachmentPostmortemAttachmentType = "postmortem"
)
func NewIncidentAttachmentPostmortemAttachmentTypeFromValue(v string) (*IncidentAttachmentPostmortemAttachmentType, error)
NewIncidentAttachmentPostmortemAttachmentTypeFromValue returns a pointer to a valid IncidentAttachmentPostmortemAttachmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentPostmortemAttachmentType) GetAllowedValues() []IncidentAttachmentPostmortemAttachmentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentPostmortemAttachmentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentPostmortemAttachmentType) Ptr() *IncidentAttachmentPostmortemAttachmentType
Ptr returns reference to IncidentAttachmentPostmortemAttachmentType value.
func (v *IncidentAttachmentPostmortemAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentPostmortemAttributes The attributes object for a postmortem attachment.
type IncidentAttachmentPostmortemAttributes struct {
// The postmortem attachment.
Attachment IncidentAttachmentsPostmortemAttributesAttachmentObject `json:"attachment"`
// The type of postmortem attachment attributes.
AttachmentType IncidentAttachmentPostmortemAttachmentType `json:"attachment_type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentPostmortemAttributes(attachment IncidentAttachmentsPostmortemAttributesAttachmentObject, attachmentType IncidentAttachmentPostmortemAttachmentType) *IncidentAttachmentPostmortemAttributes
NewIncidentAttachmentPostmortemAttributes instantiates a new IncidentAttachmentPostmortemAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentPostmortemAttributesWithDefaults() *IncidentAttachmentPostmortemAttributes
NewIncidentAttachmentPostmortemAttributesWithDefaults instantiates a new IncidentAttachmentPostmortemAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentPostmortemAttributes) GetAttachment() IncidentAttachmentsPostmortemAttributesAttachmentObject
GetAttachment returns the Attachment field value.
func (o *IncidentAttachmentPostmortemAttributes) GetAttachmentOk() (*IncidentAttachmentsPostmortemAttributesAttachmentObject, bool)
GetAttachmentOk returns a tuple with the Attachment field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentPostmortemAttributes) GetAttachmentType() IncidentAttachmentPostmortemAttachmentType
GetAttachmentType returns the AttachmentType field value.
func (o *IncidentAttachmentPostmortemAttributes) GetAttachmentTypeOk() (*IncidentAttachmentPostmortemAttachmentType, bool)
GetAttachmentTypeOk returns a tuple with the AttachmentType field value and a boolean to check if the value has been set.
func (o IncidentAttachmentPostmortemAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentPostmortemAttributes) SetAttachment(v IncidentAttachmentsPostmortemAttributesAttachmentObject)
SetAttachment sets field value.
func (o *IncidentAttachmentPostmortemAttributes) SetAttachmentType(v IncidentAttachmentPostmortemAttachmentType)
SetAttachmentType sets field value.
func (o *IncidentAttachmentPostmortemAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentRelatedObject The object related to an incident attachment.
type IncidentAttachmentRelatedObject string
List of IncidentAttachmentRelatedObject.
const (
INCIDENTATTACHMENTRELATEDOBJECT_USERS IncidentAttachmentRelatedObject = "users"
)
func NewIncidentAttachmentRelatedObjectFromValue(v string) (*IncidentAttachmentRelatedObject, error)
NewIncidentAttachmentRelatedObjectFromValue returns a pointer to a valid IncidentAttachmentRelatedObject for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentRelatedObject) GetAllowedValues() []IncidentAttachmentRelatedObject
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentRelatedObject) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentRelatedObject) Ptr() *IncidentAttachmentRelatedObject
Ptr returns reference to IncidentAttachmentRelatedObject value.
func (v *IncidentAttachmentRelatedObject) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentRelationships The incident attachment's relationships.
type IncidentAttachmentRelationships struct {
// Relationship to user.
LastModifiedByUser *RelationshipToUser `json:"last_modified_by_user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentRelationships() *IncidentAttachmentRelationships
NewIncidentAttachmentRelationships instantiates a new IncidentAttachmentRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentRelationshipsWithDefaults() *IncidentAttachmentRelationships
NewIncidentAttachmentRelationshipsWithDefaults instantiates a new IncidentAttachmentRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentRelationships) GetLastModifiedByUser() RelationshipToUser
GetLastModifiedByUser returns the LastModifiedByUser field value if set, zero value otherwise.
func (o *IncidentAttachmentRelationships) GetLastModifiedByUserOk() (*RelationshipToUser, bool)
GetLastModifiedByUserOk returns a tuple with the LastModifiedByUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentRelationships) HasLastModifiedByUser() bool
HasLastModifiedByUser returns a boolean if a field has been set.
func (o IncidentAttachmentRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentRelationships) SetLastModifiedByUser(v RelationshipToUser)
SetLastModifiedByUser gets a reference to the given RelationshipToUser and assigns it to the LastModifiedByUser field.
func (o *IncidentAttachmentRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentType The incident attachment resource type.
type IncidentAttachmentType string
List of IncidentAttachmentType.
const (
INCIDENTATTACHMENTTYPE_INCIDENT_ATTACHMENTS IncidentAttachmentType = "incident_attachments"
)
func NewIncidentAttachmentTypeFromValue(v string) (*IncidentAttachmentType, error)
NewIncidentAttachmentTypeFromValue returns a pointer to a valid IncidentAttachmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentType) GetAllowedValues() []IncidentAttachmentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentType) Ptr() *IncidentAttachmentType
Ptr returns reference to IncidentAttachmentType value.
func (v *IncidentAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentUpdateAttributes - Incident attachment attributes.
type IncidentAttachmentUpdateAttributes struct {
IncidentAttachmentPostmortemAttributes *IncidentAttachmentPostmortemAttributes
IncidentAttachmentLinkAttributes *IncidentAttachmentLinkAttributes
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentAttachmentLinkAttributesAsIncidentAttachmentUpdateAttributes(v *IncidentAttachmentLinkAttributes) IncidentAttachmentUpdateAttributes
IncidentAttachmentLinkAttributesAsIncidentAttachmentUpdateAttributes is a convenience function that returns IncidentAttachmentLinkAttributes wrapped in IncidentAttachmentUpdateAttributes.
func IncidentAttachmentPostmortemAttributesAsIncidentAttachmentUpdateAttributes(v *IncidentAttachmentPostmortemAttributes) IncidentAttachmentUpdateAttributes
IncidentAttachmentPostmortemAttributesAsIncidentAttachmentUpdateAttributes is a convenience function that returns IncidentAttachmentPostmortemAttributes wrapped in IncidentAttachmentUpdateAttributes.
func (obj *IncidentAttachmentUpdateAttributes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentAttachmentUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentAttachmentUpdateAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentAttachmentUpdateData A single incident attachment.
type IncidentAttachmentUpdateData struct {
// Incident attachment attributes.
Attributes *IncidentAttachmentUpdateAttributes `json:"attributes,omitempty"`
// A unique identifier that represents the incident attachment.
Id *string `json:"id,omitempty"`
// The incident attachment resource type.
Type IncidentAttachmentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentUpdateData(typeVar IncidentAttachmentType) *IncidentAttachmentUpdateData
NewIncidentAttachmentUpdateData instantiates a new IncidentAttachmentUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentUpdateDataWithDefaults() *IncidentAttachmentUpdateData
NewIncidentAttachmentUpdateDataWithDefaults instantiates a new IncidentAttachmentUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentUpdateData) GetAttributes() IncidentAttachmentUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentAttachmentUpdateData) GetAttributesOk() (*IncidentAttachmentUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IncidentAttachmentUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateData) GetType() IncidentAttachmentType
GetType returns the Type field value.
func (o *IncidentAttachmentUpdateData) GetTypeOk() (*IncidentAttachmentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentAttachmentUpdateData) HasId() bool
HasId returns a boolean if a field has been set.
func (o IncidentAttachmentUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentUpdateData) SetAttributes(v IncidentAttachmentUpdateAttributes)
SetAttributes gets a reference to the given IncidentAttachmentUpdateAttributes and assigns it to the Attributes field.
func (o *IncidentAttachmentUpdateData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IncidentAttachmentUpdateData) SetType(v IncidentAttachmentType)
SetType sets field value.
func (o *IncidentAttachmentUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentUpdateRequest The update request for an incident's attachments.
type IncidentAttachmentUpdateRequest struct {
// An array of incident attachments. An attachment object without an "id" key indicates that you want to
// create that attachment. An attachment object without an "attributes" key indicates that you want to
// delete that attachment. An attachment object with both the "id" key and a populated "attributes" object
// indicates that you want to update that attachment.
Data []IncidentAttachmentUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentUpdateRequest(data []IncidentAttachmentUpdateData) *IncidentAttachmentUpdateRequest
NewIncidentAttachmentUpdateRequest instantiates a new IncidentAttachmentUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentUpdateRequestWithDefaults() *IncidentAttachmentUpdateRequest
NewIncidentAttachmentUpdateRequestWithDefaults instantiates a new IncidentAttachmentUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentUpdateRequest) GetData() []IncidentAttachmentUpdateData
GetData returns the Data field value.
func (o *IncidentAttachmentUpdateRequest) GetDataOk() (*[]IncidentAttachmentUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentAttachmentUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentUpdateRequest) SetData(v []IncidentAttachmentUpdateData)
SetData sets field value.
func (o *IncidentAttachmentUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentUpdateResponse The response object containing the created or updated incident attachments.
type IncidentAttachmentUpdateResponse struct {
// An array of incident attachments. Only the attachments that were created or updated by the request are
// returned.
Data []IncidentAttachmentData `json:"data"`
// Included related resources that the user requested.
Included []IncidentAttachmentsResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentUpdateResponse(data []IncidentAttachmentData) *IncidentAttachmentUpdateResponse
NewIncidentAttachmentUpdateResponse instantiates a new IncidentAttachmentUpdateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentUpdateResponseWithDefaults() *IncidentAttachmentUpdateResponse
NewIncidentAttachmentUpdateResponseWithDefaults instantiates a new IncidentAttachmentUpdateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentUpdateResponse) GetData() []IncidentAttachmentData
GetData returns the Data field value.
func (o *IncidentAttachmentUpdateResponse) GetDataOk() (*[]IncidentAttachmentData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateResponse) GetIncluded() []IncidentAttachmentsResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentAttachmentUpdateResponse) GetIncludedOk() (*[]IncidentAttachmentsResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentAttachmentUpdateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentUpdateResponse) SetData(v []IncidentAttachmentData)
SetData sets field value.
func (o *IncidentAttachmentUpdateResponse) SetIncluded(v []IncidentAttachmentsResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentAttachmentsResponseIncludedItem and assigns it to the Included field.
func (o *IncidentAttachmentUpdateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentsPostmortemAttributesAttachmentObject The postmortem attachment.
type IncidentAttachmentsPostmortemAttributesAttachmentObject struct {
// The URL of this notebook attachment.
DocumentUrl string `json:"documentUrl"`
// The title of this postmortem attachment.
Title string `json:"title"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentsPostmortemAttributesAttachmentObject(documentUrl string, title string) *IncidentAttachmentsPostmortemAttributesAttachmentObject
NewIncidentAttachmentsPostmortemAttributesAttachmentObject instantiates a new IncidentAttachmentsPostmortemAttributesAttachmentObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentsPostmortemAttributesAttachmentObjectWithDefaults() *IncidentAttachmentsPostmortemAttributesAttachmentObject
NewIncidentAttachmentsPostmortemAttributesAttachmentObjectWithDefaults instantiates a new IncidentAttachmentsPostmortemAttributesAttachmentObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) GetDocumentUrl() string
GetDocumentUrl returns the DocumentUrl field value.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) GetDocumentUrlOk() (*string, bool)
GetDocumentUrlOk returns a tuple with the DocumentUrl field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) GetTitle() string
GetTitle returns the Title field value.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o IncidentAttachmentsPostmortemAttributesAttachmentObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) SetDocumentUrl(v string)
SetDocumentUrl sets field value.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) SetTitle(v string)
SetTitle sets field value.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentsResponse The response object containing an incident's attachments.
type IncidentAttachmentsResponse struct {
// An array of incident attachments.
Data []IncidentAttachmentData `json:"data"`
// Included related resources that the user requested.
Included []IncidentAttachmentsResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentsResponse(data []IncidentAttachmentData) *IncidentAttachmentsResponse
NewIncidentAttachmentsResponse instantiates a new IncidentAttachmentsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentsResponseWithDefaults() *IncidentAttachmentsResponse
NewIncidentAttachmentsResponseWithDefaults instantiates a new IncidentAttachmentsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentsResponse) GetData() []IncidentAttachmentData
GetData returns the Data field value.
func (o *IncidentAttachmentsResponse) GetDataOk() (*[]IncidentAttachmentData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentsResponse) GetIncluded() []IncidentAttachmentsResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentAttachmentsResponse) GetIncludedOk() (*[]IncidentAttachmentsResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentAttachmentsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentsResponse) SetData(v []IncidentAttachmentData)
SetData sets field value.
func (o *IncidentAttachmentsResponse) SetIncluded(v []IncidentAttachmentsResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentAttachmentsResponseIncludedItem and assigns it to the Included field.
func (o *IncidentAttachmentsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentsResponseIncludedItem - An object related to an attachment that is included in the response.
type IncidentAttachmentsResponseIncludedItem struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsIncidentAttachmentsResponseIncludedItem(v *User) IncidentAttachmentsResponseIncludedItem
UserAsIncidentAttachmentsResponseIncludedItem is a convenience function that returns User wrapped in IncidentAttachmentsResponseIncludedItem.
func (obj *IncidentAttachmentsResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentAttachmentsResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentAttachmentsResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentCreateAttributes The incident's attributes for a create request.
type IncidentCreateAttributes struct {
// Required if `customer_impacted:"true"`. A summary of the impact customers experienced during the incident.
CustomerImpactScope *string `json:"customer_impact_scope,omitempty"`
// A flag indicating whether the incident caused customer impact.
CustomerImpacted bool `json:"customer_impacted"`
// A condensed view of the user-defined fields for which to create initial selections.
Fields map[string]IncidentFieldAttributes `json:"fields,omitempty"`
// An array of initial timeline cells to be placed at the beginning of the incident timeline.
InitialCells []IncidentTimelineCellCreateAttributes `json:"initial_cells,omitempty"`
// Notification handles that will be notified of the incident at creation.
NotificationHandles []IncidentNotificationHandle `json:"notification_handles,omitempty"`
// The title of the incident, which summarizes what happened.
Title string `json:"title"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentCreateAttributes(customerImpacted bool, title string) *IncidentCreateAttributes
NewIncidentCreateAttributes instantiates a new IncidentCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentCreateAttributesWithDefaults() *IncidentCreateAttributes
NewIncidentCreateAttributesWithDefaults instantiates a new IncidentCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentCreateAttributes) GetCustomerImpactScope() string
GetCustomerImpactScope returns the CustomerImpactScope field value if set, zero value otherwise.
func (o *IncidentCreateAttributes) GetCustomerImpactScopeOk() (*string, bool)
GetCustomerImpactScopeOk returns a tuple with the CustomerImpactScope field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetCustomerImpacted() bool
GetCustomerImpacted returns the CustomerImpacted field value.
func (o *IncidentCreateAttributes) GetCustomerImpactedOk() (*bool, bool)
GetCustomerImpactedOk returns a tuple with the CustomerImpacted field value and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetFields() map[string]IncidentFieldAttributes
GetFields returns the Fields field value if set, zero value otherwise.
func (o *IncidentCreateAttributes) GetFieldsOk() (*map[string]IncidentFieldAttributes, bool)
GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetInitialCells() []IncidentTimelineCellCreateAttributes
GetInitialCells returns the InitialCells field value if set, zero value otherwise.
func (o *IncidentCreateAttributes) GetInitialCellsOk() (*[]IncidentTimelineCellCreateAttributes, bool)
GetInitialCellsOk returns a tuple with the InitialCells field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetNotificationHandles() []IncidentNotificationHandle
GetNotificationHandles returns the NotificationHandles field value if set, zero value otherwise.
func (o *IncidentCreateAttributes) GetNotificationHandlesOk() (*[]IncidentNotificationHandle, bool)
GetNotificationHandlesOk returns a tuple with the NotificationHandles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetTitle() string
GetTitle returns the Title field value.
func (o *IncidentCreateAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) HasCustomerImpactScope() bool
HasCustomerImpactScope returns a boolean if a field has been set.
func (o *IncidentCreateAttributes) HasFields() bool
HasFields returns a boolean if a field has been set.
func (o *IncidentCreateAttributes) HasInitialCells() bool
HasInitialCells returns a boolean if a field has been set.
func (o *IncidentCreateAttributes) HasNotificationHandles() bool
HasNotificationHandles returns a boolean if a field has been set.
func (o IncidentCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentCreateAttributes) SetCustomerImpactScope(v string)
SetCustomerImpactScope gets a reference to the given string and assigns it to the CustomerImpactScope field.
func (o *IncidentCreateAttributes) SetCustomerImpacted(v bool)
SetCustomerImpacted sets field value.
func (o *IncidentCreateAttributes) SetFields(v map[string]IncidentFieldAttributes)
SetFields gets a reference to the given map[string]IncidentFieldAttributes and assigns it to the Fields field.
func (o *IncidentCreateAttributes) SetInitialCells(v []IncidentTimelineCellCreateAttributes)
SetInitialCells gets a reference to the given []IncidentTimelineCellCreateAttributes and assigns it to the InitialCells field.
func (o *IncidentCreateAttributes) SetNotificationHandles(v []IncidentNotificationHandle)
SetNotificationHandles gets a reference to the given []IncidentNotificationHandle and assigns it to the NotificationHandles field.
func (o *IncidentCreateAttributes) SetTitle(v string)
SetTitle sets field value.
func (o *IncidentCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentCreateData Incident data for a create request.
type IncidentCreateData struct {
// The incident's attributes for a create request.
Attributes IncidentCreateAttributes `json:"attributes"`
// The relationships the incident will have with other resources once created.
Relationships *IncidentCreateRelationships `json:"relationships,omitempty"`
// Incident resource type.
Type IncidentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentCreateData(attributes IncidentCreateAttributes, typeVar IncidentType) *IncidentCreateData
NewIncidentCreateData instantiates a new IncidentCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentCreateDataWithDefaults() *IncidentCreateData
NewIncidentCreateDataWithDefaults instantiates a new IncidentCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentCreateData) GetAttributes() IncidentCreateAttributes
GetAttributes returns the Attributes field value.
func (o *IncidentCreateData) GetAttributesOk() (*IncidentCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *IncidentCreateData) GetRelationships() IncidentCreateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentCreateData) GetRelationshipsOk() (*IncidentCreateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateData) GetType() IncidentType
GetType returns the Type field value.
func (o *IncidentCreateData) GetTypeOk() (*IncidentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentCreateData) SetAttributes(v IncidentCreateAttributes)
SetAttributes sets field value.
func (o *IncidentCreateData) SetRelationships(v IncidentCreateRelationships)
SetRelationships gets a reference to the given IncidentCreateRelationships and assigns it to the Relationships field.
func (o *IncidentCreateData) SetType(v IncidentType)
SetType sets field value.
func (o *IncidentCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentCreateRelationships The relationships the incident will have with other resources once created.
type IncidentCreateRelationships struct {
// Relationship to user.
CommanderUser NullableRelationshipToUser `json:"commander_user"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentCreateRelationships(commanderUser NullableRelationshipToUser) *IncidentCreateRelationships
NewIncidentCreateRelationships instantiates a new IncidentCreateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentCreateRelationshipsWithDefaults() *IncidentCreateRelationships
NewIncidentCreateRelationshipsWithDefaults instantiates a new IncidentCreateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentCreateRelationships) GetCommanderUser() NullableRelationshipToUser
GetCommanderUser returns the CommanderUser field value.
func (o *IncidentCreateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)
GetCommanderUserOk returns a tuple with the CommanderUser field value and a boolean to check if the value has been set.
func (o IncidentCreateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentCreateRelationships) SetCommanderUser(v NullableRelationshipToUser)
SetCommanderUser sets field value.
func (o *IncidentCreateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentCreateRequest Create request for an incident.
type IncidentCreateRequest struct {
// Incident data for a create request.
Data IncidentCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentCreateRequest(data IncidentCreateData) *IncidentCreateRequest
NewIncidentCreateRequest instantiates a new IncidentCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentCreateRequestWithDefaults() *IncidentCreateRequest
NewIncidentCreateRequestWithDefaults instantiates a new IncidentCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentCreateRequest) GetData() IncidentCreateData
GetData returns the Data field value.
func (o *IncidentCreateRequest) GetDataOk() (*IncidentCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentCreateRequest) SetData(v IncidentCreateData)
SetData sets field value.
func (o *IncidentCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentFieldAttributes - Dynamic fields for which selections can be made, with field names as keys.
type IncidentFieldAttributes struct {
IncidentFieldAttributesSingleValue *IncidentFieldAttributesSingleValue
IncidentFieldAttributesMultipleValue *IncidentFieldAttributesMultipleValue
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentFieldAttributesMultipleValueAsIncidentFieldAttributes(v *IncidentFieldAttributesMultipleValue) IncidentFieldAttributes
IncidentFieldAttributesMultipleValueAsIncidentFieldAttributes is a convenience function that returns IncidentFieldAttributesMultipleValue wrapped in IncidentFieldAttributes.
func IncidentFieldAttributesSingleValueAsIncidentFieldAttributes(v *IncidentFieldAttributesSingleValue) IncidentFieldAttributes
IncidentFieldAttributesSingleValueAsIncidentFieldAttributes is a convenience function that returns IncidentFieldAttributesSingleValue wrapped in IncidentFieldAttributes.
func (obj *IncidentFieldAttributes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentFieldAttributes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentFieldAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentFieldAttributesMultipleValue A field with potentially multiple values selected.
type IncidentFieldAttributesMultipleValue struct {
// Type of the multiple value field definitions.
Type *IncidentFieldAttributesValueType `json:"type,omitempty"`
// The multiple values selected for this field.
Value datadog.NullableList[string] `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentFieldAttributesMultipleValue() *IncidentFieldAttributesMultipleValue
NewIncidentFieldAttributesMultipleValue instantiates a new IncidentFieldAttributesMultipleValue object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentFieldAttributesMultipleValueWithDefaults() *IncidentFieldAttributesMultipleValue
NewIncidentFieldAttributesMultipleValueWithDefaults instantiates a new IncidentFieldAttributesMultipleValue object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentFieldAttributesMultipleValue) GetType() IncidentFieldAttributesValueType
GetType returns the Type field value if set, zero value otherwise.
func (o *IncidentFieldAttributesMultipleValue) GetTypeOk() (*IncidentFieldAttributesValueType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentFieldAttributesMultipleValue) GetValue() []string
GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentFieldAttributesMultipleValue) GetValueOk() (*[]string, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentFieldAttributesMultipleValue) HasType() bool
HasType returns a boolean if a field has been set.
func (o *IncidentFieldAttributesMultipleValue) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o IncidentFieldAttributesMultipleValue) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentFieldAttributesMultipleValue) SetType(v IncidentFieldAttributesValueType)
SetType gets a reference to the given IncidentFieldAttributesValueType and assigns it to the Type field.
func (o *IncidentFieldAttributesMultipleValue) SetValue(v []string)
SetValue gets a reference to the given datadog.NullableList[string] and assigns it to the Value field.
func (o *IncidentFieldAttributesMultipleValue) SetValueNil()
SetValueNil sets the value for Value to be an explicit nil.
func (o *IncidentFieldAttributesMultipleValue) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentFieldAttributesMultipleValue) UnsetValue()
UnsetValue ensures that no value is present for Value, not even an explicit nil.
IncidentFieldAttributesSingleValue A field with a single value selected.
type IncidentFieldAttributesSingleValue struct {
// Type of the single value field definitions.
Type *IncidentFieldAttributesSingleValueType `json:"type,omitempty"`
// The single value selected for this field.
Value datadog.NullableString `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentFieldAttributesSingleValue() *IncidentFieldAttributesSingleValue
NewIncidentFieldAttributesSingleValue instantiates a new IncidentFieldAttributesSingleValue object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentFieldAttributesSingleValueWithDefaults() *IncidentFieldAttributesSingleValue
NewIncidentFieldAttributesSingleValueWithDefaults instantiates a new IncidentFieldAttributesSingleValue object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentFieldAttributesSingleValue) GetType() IncidentFieldAttributesSingleValueType
GetType returns the Type field value if set, zero value otherwise.
func (o *IncidentFieldAttributesSingleValue) GetTypeOk() (*IncidentFieldAttributesSingleValueType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentFieldAttributesSingleValue) GetValue() string
GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentFieldAttributesSingleValue) GetValueOk() (*string, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentFieldAttributesSingleValue) HasType() bool
HasType returns a boolean if a field has been set.
func (o *IncidentFieldAttributesSingleValue) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o IncidentFieldAttributesSingleValue) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentFieldAttributesSingleValue) SetType(v IncidentFieldAttributesSingleValueType)
SetType gets a reference to the given IncidentFieldAttributesSingleValueType and assigns it to the Type field.
func (o *IncidentFieldAttributesSingleValue) SetValue(v string)
SetValue gets a reference to the given datadog.NullableString and assigns it to the Value field.
func (o *IncidentFieldAttributesSingleValue) SetValueNil()
SetValueNil sets the value for Value to be an explicit nil.
func (o *IncidentFieldAttributesSingleValue) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentFieldAttributesSingleValue) UnsetValue()
UnsetValue ensures that no value is present for Value, not even an explicit nil.
IncidentFieldAttributesSingleValueType Type of the single value field definitions.
type IncidentFieldAttributesSingleValueType string
List of IncidentFieldAttributesSingleValueType.
const (
INCIDENTFIELDATTRIBUTESSINGLEVALUETYPE_DROPDOWN IncidentFieldAttributesSingleValueType = "dropdown"
INCIDENTFIELDATTRIBUTESSINGLEVALUETYPE_TEXTBOX IncidentFieldAttributesSingleValueType = "textbox"
)
func NewIncidentFieldAttributesSingleValueTypeFromValue(v string) (*IncidentFieldAttributesSingleValueType, error)
NewIncidentFieldAttributesSingleValueTypeFromValue returns a pointer to a valid IncidentFieldAttributesSingleValueType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentFieldAttributesSingleValueType) GetAllowedValues() []IncidentFieldAttributesSingleValueType
GetAllowedValues reeturns the list of possible values.
func (v IncidentFieldAttributesSingleValueType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentFieldAttributesSingleValueType) Ptr() *IncidentFieldAttributesSingleValueType
Ptr returns reference to IncidentFieldAttributesSingleValueType value.
func (v *IncidentFieldAttributesSingleValueType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentFieldAttributesValueType Type of the multiple value field definitions.
type IncidentFieldAttributesValueType string
List of IncidentFieldAttributesValueType.
const (
INCIDENTFIELDATTRIBUTESVALUETYPE_MULTISELECT IncidentFieldAttributesValueType = "multiselect"
INCIDENTFIELDATTRIBUTESVALUETYPE_TEXTARRAY IncidentFieldAttributesValueType = "textarray"
INCIDENTFIELDATTRIBUTESVALUETYPE_METRICTAG IncidentFieldAttributesValueType = "metrictag"
INCIDENTFIELDATTRIBUTESVALUETYPE_AUTOCOMPLETE IncidentFieldAttributesValueType = "autocomplete"
)
func NewIncidentFieldAttributesValueTypeFromValue(v string) (*IncidentFieldAttributesValueType, error)
NewIncidentFieldAttributesValueTypeFromValue returns a pointer to a valid IncidentFieldAttributesValueType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentFieldAttributesValueType) GetAllowedValues() []IncidentFieldAttributesValueType
GetAllowedValues reeturns the list of possible values.
func (v IncidentFieldAttributesValueType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentFieldAttributesValueType) Ptr() *IncidentFieldAttributesValueType
Ptr returns reference to IncidentFieldAttributesValueType value.
func (v *IncidentFieldAttributesValueType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataAttributes Incident integration metadata's attributes for a create request.
type IncidentIntegrationMetadataAttributes struct {
// UUID of the incident this integration metadata is connected to.
IncidentId *string `json:"incident_id,omitempty"`
// A number indicating the type of integration this metadata is for. 1 indicates Slack;
// 8 indicates Jira.
IntegrationType int32 `json:"integration_type"`
// Incident integration metadata's metadata attribute.
Metadata IncidentIntegrationMetadataMetadata `json:"metadata"`
// A number indicating the status of this integration metadata. 0 indicates unknown;
// 1 indicates pending; 2 indicates complete; 3 indicates manually created;
// 4 indicates manually updated; 5 indicates failed.
Status *int32 `json:"status,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentIntegrationMetadataAttributes(integrationType int32, metadata IncidentIntegrationMetadataMetadata) *IncidentIntegrationMetadataAttributes
NewIncidentIntegrationMetadataAttributes instantiates a new IncidentIntegrationMetadataAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentIntegrationMetadataAttributesWithDefaults() *IncidentIntegrationMetadataAttributes
NewIncidentIntegrationMetadataAttributesWithDefaults instantiates a new IncidentIntegrationMetadataAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentIntegrationMetadataAttributes) GetIncidentId() string
GetIncidentId returns the IncidentId field value if set, zero value otherwise.
func (o *IncidentIntegrationMetadataAttributes) GetIncidentIdOk() (*string, bool)
GetIncidentIdOk returns a tuple with the IncidentId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataAttributes) GetIntegrationType() int32
GetIntegrationType returns the IntegrationType field value.
func (o *IncidentIntegrationMetadataAttributes) GetIntegrationTypeOk() (*int32, bool)
GetIntegrationTypeOk returns a tuple with the IntegrationType field value and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataAttributes) GetMetadata() IncidentIntegrationMetadataMetadata
GetMetadata returns the Metadata field value.
func (o *IncidentIntegrationMetadataAttributes) GetMetadataOk() (*IncidentIntegrationMetadataMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataAttributes) GetStatus() int32
GetStatus returns the Status field value if set, zero value otherwise.
func (o *IncidentIntegrationMetadataAttributes) GetStatusOk() (*int32, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataAttributes) HasIncidentId() bool
HasIncidentId returns a boolean if a field has been set.
func (o *IncidentIntegrationMetadataAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o IncidentIntegrationMetadataAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentIntegrationMetadataAttributes) SetIncidentId(v string)
SetIncidentId gets a reference to the given string and assigns it to the IncidentId field.
func (o *IncidentIntegrationMetadataAttributes) SetIntegrationType(v int32)
SetIntegrationType sets field value.
func (o *IncidentIntegrationMetadataAttributes) SetMetadata(v IncidentIntegrationMetadataMetadata)
SetMetadata sets field value.
func (o *IncidentIntegrationMetadataAttributes) SetStatus(v int32)
SetStatus gets a reference to the given int32 and assigns it to the Status field.
func (o *IncidentIntegrationMetadataAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataCreateData Incident integration metadata data for a create request.
type IncidentIntegrationMetadataCreateData struct {
// Incident integration metadata's attributes for a create request.
Attributes IncidentIntegrationMetadataAttributes `json:"attributes"`
// Integration metadata resource type.
Type IncidentIntegrationMetadataType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentIntegrationMetadataCreateData(attributes IncidentIntegrationMetadataAttributes, typeVar IncidentIntegrationMetadataType) *IncidentIntegrationMetadataCreateData
NewIncidentIntegrationMetadataCreateData instantiates a new IncidentIntegrationMetadataCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentIntegrationMetadataCreateDataWithDefaults() *IncidentIntegrationMetadataCreateData
NewIncidentIntegrationMetadataCreateDataWithDefaults instantiates a new IncidentIntegrationMetadataCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentIntegrationMetadataCreateData) GetAttributes() IncidentIntegrationMetadataAttributes
GetAttributes returns the Attributes field value.
func (o *IncidentIntegrationMetadataCreateData) GetAttributesOk() (*IncidentIntegrationMetadataAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataCreateData) GetType() IncidentIntegrationMetadataType
GetType returns the Type field value.
func (o *IncidentIntegrationMetadataCreateData) GetTypeOk() (*IncidentIntegrationMetadataType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o IncidentIntegrationMetadataCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentIntegrationMetadataCreateData) SetAttributes(v IncidentIntegrationMetadataAttributes)
SetAttributes sets field value.
func (o *IncidentIntegrationMetadataCreateData) SetType(v IncidentIntegrationMetadataType)
SetType sets field value.
func (o *IncidentIntegrationMetadataCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataCreateRequest Create request for an incident integration metadata.
type IncidentIntegrationMetadataCreateRequest struct {
// Incident integration metadata data for a create request.
Data IncidentIntegrationMetadataCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentIntegrationMetadataCreateRequest(data IncidentIntegrationMetadataCreateData) *IncidentIntegrationMetadataCreateRequest
NewIncidentIntegrationMetadataCreateRequest instantiates a new IncidentIntegrationMetadataCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentIntegrationMetadataCreateRequestWithDefaults() *IncidentIntegrationMetadataCreateRequest
NewIncidentIntegrationMetadataCreateRequestWithDefaults instantiates a new IncidentIntegrationMetadataCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentIntegrationMetadataCreateRequest) GetData() IncidentIntegrationMetadataCreateData
GetData returns the Data field value.
func (o *IncidentIntegrationMetadataCreateRequest) GetDataOk() (*IncidentIntegrationMetadataCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentIntegrationMetadataCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentIntegrationMetadataCreateRequest) SetData(v IncidentIntegrationMetadataCreateData)
SetData sets field value.
func (o *IncidentIntegrationMetadataCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataListResponse Response with a list of incident integration metadata.
type IncidentIntegrationMetadataListResponse struct {
// An array of incident integration metadata.
Data []IncidentIntegrationMetadataResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentIntegrationMetadataResponseIncludedItem `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentIntegrationMetadataListResponse(data []IncidentIntegrationMetadataResponseData) *IncidentIntegrationMetadataListResponse
NewIncidentIntegrationMetadataListResponse instantiates a new IncidentIntegrationMetadataListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentIntegrationMetadataListResponseWithDefaults() *IncidentIntegrationMetadataListResponse
NewIncidentIntegrationMetadataListResponseWithDefaults instantiates a new IncidentIntegrationMetadataListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentIntegrationMetadataListResponse) GetData() []IncidentIntegrationMetadataResponseData
GetData returns the Data field value.
func (o *IncidentIntegrationMetadataListResponse) GetDataOk() (*[]IncidentIntegrationMetadataResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataListResponse) GetIncluded() []IncidentIntegrationMetadataResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentIntegrationMetadataListResponse) GetIncludedOk() (*[]IncidentIntegrationMetadataResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataListResponse) GetMeta() IncidentResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentIntegrationMetadataListResponse) GetMetaOk() (*IncidentResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataListResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentIntegrationMetadataListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentIntegrationMetadataListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentIntegrationMetadataListResponse) SetData(v []IncidentIntegrationMetadataResponseData)
SetData sets field value.
func (o *IncidentIntegrationMetadataListResponse) SetIncluded(v []IncidentIntegrationMetadataResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentIntegrationMetadataResponseIncludedItem and assigns it to the Included field.
func (o *IncidentIntegrationMetadataListResponse) SetMeta(v IncidentResponseMeta)
SetMeta gets a reference to the given IncidentResponseMeta and assigns it to the Meta field.
func (o *IncidentIntegrationMetadataListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataMetadata - Incident integration metadata's metadata attribute.
type IncidentIntegrationMetadataMetadata struct {
SlackIntegrationMetadata *SlackIntegrationMetadata
JiraIntegrationMetadata *JiraIntegrationMetadata
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func JiraIntegrationMetadataAsIncidentIntegrationMetadataMetadata(v *JiraIntegrationMetadata) IncidentIntegrationMetadataMetadata
JiraIntegrationMetadataAsIncidentIntegrationMetadataMetadata is a convenience function that returns JiraIntegrationMetadata wrapped in IncidentIntegrationMetadataMetadata.
func SlackIntegrationMetadataAsIncidentIntegrationMetadataMetadata(v *SlackIntegrationMetadata) IncidentIntegrationMetadataMetadata
SlackIntegrationMetadataAsIncidentIntegrationMetadataMetadata is a convenience function that returns SlackIntegrationMetadata wrapped in IncidentIntegrationMetadataMetadata.
func (obj *IncidentIntegrationMetadataMetadata) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentIntegrationMetadataMetadata) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentIntegrationMetadataMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentIntegrationMetadataPatchData Incident integration metadata data for a patch request.
type IncidentIntegrationMetadataPatchData struct {
// Incident integration metadata's attributes for a create request.
Attributes IncidentIntegrationMetadataAttributes `json:"attributes"`
// Integration metadata resource type.
Type IncidentIntegrationMetadataType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentIntegrationMetadataPatchData(attributes IncidentIntegrationMetadataAttributes, typeVar IncidentIntegrationMetadataType) *IncidentIntegrationMetadataPatchData
NewIncidentIntegrationMetadataPatchData instantiates a new IncidentIntegrationMetadataPatchData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentIntegrationMetadataPatchDataWithDefaults() *IncidentIntegrationMetadataPatchData
NewIncidentIntegrationMetadataPatchDataWithDefaults instantiates a new IncidentIntegrationMetadataPatchData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentIntegrationMetadataPatchData) GetAttributes() IncidentIntegrationMetadataAttributes
GetAttributes returns the Attributes field value.
func (o *IncidentIntegrationMetadataPatchData) GetAttributesOk() (*IncidentIntegrationMetadataAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataPatchData) GetType() IncidentIntegrationMetadataType
GetType returns the Type field value.
func (o *IncidentIntegrationMetadataPatchData) GetTypeOk() (*IncidentIntegrationMetadataType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o IncidentIntegrationMetadataPatchData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentIntegrationMetadataPatchData) SetAttributes(v IncidentIntegrationMetadataAttributes)
SetAttributes sets field value.
func (o *IncidentIntegrationMetadataPatchData) SetType(v IncidentIntegrationMetadataType)
SetType sets field value.
func (o *IncidentIntegrationMetadataPatchData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataPatchRequest Patch request for an incident integration metadata.
type IncidentIntegrationMetadataPatchRequest struct {
// Incident integration metadata data for a patch request.
Data IncidentIntegrationMetadataPatchData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentIntegrationMetadataPatchRequest(data IncidentIntegrationMetadataPatchData) *IncidentIntegrationMetadataPatchRequest
NewIncidentIntegrationMetadataPatchRequest instantiates a new IncidentIntegrationMetadataPatchRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentIntegrationMetadataPatchRequestWithDefaults() *IncidentIntegrationMetadataPatchRequest
NewIncidentIntegrationMetadataPatchRequestWithDefaults instantiates a new IncidentIntegrationMetadataPatchRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentIntegrationMetadataPatchRequest) GetData() IncidentIntegrationMetadataPatchData
GetData returns the Data field value.
func (o *IncidentIntegrationMetadataPatchRequest) GetDataOk() (*IncidentIntegrationMetadataPatchData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentIntegrationMetadataPatchRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentIntegrationMetadataPatchRequest) SetData(v IncidentIntegrationMetadataPatchData)
SetData sets field value.
func (o *IncidentIntegrationMetadataPatchRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataResponse Response with an incident integration metadata.
type IncidentIntegrationMetadataResponse struct {
// Incident integration metadata from a response.
Data IncidentIntegrationMetadataResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentIntegrationMetadataResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentIntegrationMetadataResponse(data IncidentIntegrationMetadataResponseData) *IncidentIntegrationMetadataResponse
NewIncidentIntegrationMetadataResponse instantiates a new IncidentIntegrationMetadataResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentIntegrationMetadataResponseWithDefaults() *IncidentIntegrationMetadataResponse
NewIncidentIntegrationMetadataResponseWithDefaults instantiates a new IncidentIntegrationMetadataResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentIntegrationMetadataResponse) GetData() IncidentIntegrationMetadataResponseData
GetData returns the Data field value.
func (o *IncidentIntegrationMetadataResponse) GetDataOk() (*IncidentIntegrationMetadataResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataResponse) GetIncluded() []IncidentIntegrationMetadataResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentIntegrationMetadataResponse) GetIncludedOk() (*[]IncidentIntegrationMetadataResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentIntegrationMetadataResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentIntegrationMetadataResponse) SetData(v IncidentIntegrationMetadataResponseData)
SetData sets field value.
func (o *IncidentIntegrationMetadataResponse) SetIncluded(v []IncidentIntegrationMetadataResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentIntegrationMetadataResponseIncludedItem and assigns it to the Included field.
func (o *IncidentIntegrationMetadataResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataResponseData Incident integration metadata from a response.
type IncidentIntegrationMetadataResponseData struct {
// Incident integration metadata's attributes for a create request.
Attributes *IncidentIntegrationMetadataAttributes `json:"attributes,omitempty"`
// The incident integration metadata's ID.
Id string `json:"id"`
// Integration metadata resource type.
Type IncidentIntegrationMetadataType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentIntegrationMetadataResponseData(id string, typeVar IncidentIntegrationMetadataType) *IncidentIntegrationMetadataResponseData
NewIncidentIntegrationMetadataResponseData instantiates a new IncidentIntegrationMetadataResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentIntegrationMetadataResponseDataWithDefaults() *IncidentIntegrationMetadataResponseData
NewIncidentIntegrationMetadataResponseDataWithDefaults instantiates a new IncidentIntegrationMetadataResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentIntegrationMetadataResponseData) GetAttributes() IncidentIntegrationMetadataAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentIntegrationMetadataResponseData) GetAttributesOk() (*IncidentIntegrationMetadataAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataResponseData) GetId() string
GetId returns the Id field value.
func (o *IncidentIntegrationMetadataResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataResponseData) GetType() IncidentIntegrationMetadataType
GetType returns the Type field value.
func (o *IncidentIntegrationMetadataResponseData) GetTypeOk() (*IncidentIntegrationMetadataType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentIntegrationMetadataResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o IncidentIntegrationMetadataResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentIntegrationMetadataResponseData) SetAttributes(v IncidentIntegrationMetadataAttributes)
SetAttributes gets a reference to the given IncidentIntegrationMetadataAttributes and assigns it to the Attributes field.
func (o *IncidentIntegrationMetadataResponseData) SetId(v string)
SetId sets field value.
func (o *IncidentIntegrationMetadataResponseData) SetType(v IncidentIntegrationMetadataType)
SetType sets field value.
func (o *IncidentIntegrationMetadataResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataResponseIncludedItem - An object related to an incident integration metadata that is included in the response.
type IncidentIntegrationMetadataResponseIncludedItem struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsIncidentIntegrationMetadataResponseIncludedItem(v *User) IncidentIntegrationMetadataResponseIncludedItem
UserAsIncidentIntegrationMetadataResponseIncludedItem is a convenience function that returns User wrapped in IncidentIntegrationMetadataResponseIncludedItem.
func (obj *IncidentIntegrationMetadataResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentIntegrationMetadataResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentIntegrationMetadataResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentIntegrationMetadataType Integration metadata resource type.
type IncidentIntegrationMetadataType string
List of IncidentIntegrationMetadataType.
const (
INCIDENTINTEGRATIONMETADATATYPE_INCIDENT_INTEGRATIONS IncidentIntegrationMetadataType = "incident_integrations"
)
func NewIncidentIntegrationMetadataTypeFromValue(v string) (*IncidentIntegrationMetadataType, error)
NewIncidentIntegrationMetadataTypeFromValue returns a pointer to a valid IncidentIntegrationMetadataType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentIntegrationMetadataType) GetAllowedValues() []IncidentIntegrationMetadataType
GetAllowedValues reeturns the list of possible values.
func (v IncidentIntegrationMetadataType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentIntegrationMetadataType) Ptr() *IncidentIntegrationMetadataType
Ptr returns reference to IncidentIntegrationMetadataType value.
func (v *IncidentIntegrationMetadataType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentNotificationHandle A notification handle that will be notified at incident creation.
type IncidentNotificationHandle struct {
// The name of the notified handle.
DisplayName *string `json:"display_name,omitempty"`
// The email address used for the notification.
Handle *string `json:"handle,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentNotificationHandle() *IncidentNotificationHandle
NewIncidentNotificationHandle instantiates a new IncidentNotificationHandle object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentNotificationHandleWithDefaults() *IncidentNotificationHandle
NewIncidentNotificationHandleWithDefaults instantiates a new IncidentNotificationHandle object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentNotificationHandle) GetDisplayName() string
GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *IncidentNotificationHandle) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentNotificationHandle) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *IncidentNotificationHandle) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentNotificationHandle) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (o *IncidentNotificationHandle) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o IncidentNotificationHandle) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentNotificationHandle) SetDisplayName(v string)
SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *IncidentNotificationHandle) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *IncidentNotificationHandle) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentPostmortemType Incident postmortem resource type.
type IncidentPostmortemType string
List of IncidentPostmortemType.
const (
INCIDENTPOSTMORTEMTYPE_INCIDENT_POSTMORTEMS IncidentPostmortemType = "incident_postmortems"
)
func NewIncidentPostmortemTypeFromValue(v string) (*IncidentPostmortemType, error)
NewIncidentPostmortemTypeFromValue returns a pointer to a valid IncidentPostmortemType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentPostmortemType) GetAllowedValues() []IncidentPostmortemType
GetAllowedValues reeturns the list of possible values.
func (v IncidentPostmortemType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentPostmortemType) Ptr() *IncidentPostmortemType
Ptr returns reference to IncidentPostmortemType value.
func (v *IncidentPostmortemType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentRelatedObject Object related to an incident.
type IncidentRelatedObject string
List of IncidentRelatedObject.
const (
INCIDENTRELATEDOBJECT_USERS IncidentRelatedObject = "users"
INCIDENTRELATEDOBJECT_ATTACHMENTS IncidentRelatedObject = "attachments"
)
func NewIncidentRelatedObjectFromValue(v string) (*IncidentRelatedObject, error)
NewIncidentRelatedObjectFromValue returns a pointer to a valid IncidentRelatedObject for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentRelatedObject) GetAllowedValues() []IncidentRelatedObject
GetAllowedValues reeturns the list of possible values.
func (v IncidentRelatedObject) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentRelatedObject) Ptr() *IncidentRelatedObject
Ptr returns reference to IncidentRelatedObject value.
func (v *IncidentRelatedObject) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentResponse Response with an incident.
type IncidentResponse struct {
// Incident data from a response.
Data IncidentResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponse(data IncidentResponseData) *IncidentResponse
NewIncidentResponse instantiates a new IncidentResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseWithDefaults() *IncidentResponse
NewIncidentResponseWithDefaults instantiates a new IncidentResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponse) GetData() IncidentResponseData
GetData returns the Data field value.
func (o *IncidentResponse) GetDataOk() (*IncidentResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentResponse) GetIncluded() []IncidentResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentResponse) GetIncludedOk() (*[]IncidentResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponse) SetData(v IncidentResponseData)
SetData sets field value.
func (o *IncidentResponse) SetIncluded(v []IncidentResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentResponseIncludedItem and assigns it to the Included field.
func (o *IncidentResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentResponseAttributes The incident's attributes from a response.
type IncidentResponseAttributes struct {
// Timestamp when the incident was created.
Created *time.Time `json:"created,omitempty"`
// Length of the incident's customer impact in seconds.
// Equals the difference between `customer_impact_start` and `customer_impact_end`.
CustomerImpactDuration *int64 `json:"customer_impact_duration,omitempty"`
// Timestamp when customers were no longer impacted by the incident.
CustomerImpactEnd datadog.NullableTime `json:"customer_impact_end,omitempty"`
// A summary of the impact customers experienced during the incident.
CustomerImpactScope datadog.NullableString `json:"customer_impact_scope,omitempty"`
// Timestamp when customers began being impacted by the incident.
CustomerImpactStart datadog.NullableTime `json:"customer_impact_start,omitempty"`
// A flag indicating whether the incident caused customer impact.
CustomerImpacted *bool `json:"customer_impacted,omitempty"`
// Timestamp when the incident was detected.
Detected datadog.NullableTime `json:"detected,omitempty"`
// A condensed view of the user-defined fields attached to incidents.
Fields map[string]IncidentFieldAttributes `json:"fields,omitempty"`
// Timestamp when the incident was last modified.
Modified *time.Time `json:"modified,omitempty"`
// Notification handles that will be notified of the incident during update.
NotificationHandles []IncidentNotificationHandle `json:"notification_handles,omitempty"`
// The monotonically increasing integer ID for the incident.
PublicId *int64 `json:"public_id,omitempty"`
// Timestamp when the incident's state was last changed from active or stable to resolved or completed.
Resolved datadog.NullableTime `json:"resolved,omitempty"`
// The amount of time in seconds to detect the incident.
// Equals the difference between `customer_impact_start` and `detected`.
TimeToDetect *int64 `json:"time_to_detect,omitempty"`
// The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`.
TimeToInternalResponse *int64 `json:"time_to_internal_response,omitempty"`
// The amount of time in seconds to resolve customer impact after detecting the issue. Equals the difference between `customer_impact_end` and `detected`.
TimeToRepair *int64 `json:"time_to_repair,omitempty"`
// The amount of time in seconds to resolve the incident after it was created. Equals the difference between `created` and `resolved`.
TimeToResolve *int64 `json:"time_to_resolve,omitempty"`
// The title of the incident, which summarizes what happened.
Title string `json:"title"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseAttributes(title string) *IncidentResponseAttributes
NewIncidentResponseAttributes instantiates a new IncidentResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseAttributesWithDefaults() *IncidentResponseAttributes
NewIncidentResponseAttributesWithDefaults instantiates a new IncidentResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetCustomerImpactDuration() int64
GetCustomerImpactDuration returns the CustomerImpactDuration field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCustomerImpactDurationOk() (*int64, bool)
GetCustomerImpactDurationOk returns a tuple with the CustomerImpactDuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetCustomerImpactEnd() time.Time
GetCustomerImpactEnd returns the CustomerImpactEnd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactEndOk() (*time.Time, bool)
GetCustomerImpactEndOk returns a tuple with the CustomerImpactEnd field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetCustomerImpactScope() string
GetCustomerImpactScope returns the CustomerImpactScope field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactScopeOk() (*string, bool)
GetCustomerImpactScopeOk returns a tuple with the CustomerImpactScope field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetCustomerImpactStart() time.Time
GetCustomerImpactStart returns the CustomerImpactStart field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactStartOk() (*time.Time, bool)
GetCustomerImpactStartOk returns a tuple with the CustomerImpactStart field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetCustomerImpacted() bool
GetCustomerImpacted returns the CustomerImpacted field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCustomerImpactedOk() (*bool, bool)
GetCustomerImpactedOk returns a tuple with the CustomerImpacted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetDetected() time.Time
GetDetected returns the Detected field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetDetectedOk() (*time.Time, bool)
GetDetectedOk returns a tuple with the Detected field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetFields() map[string]IncidentFieldAttributes
GetFields returns the Fields field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetFieldsOk() (*map[string]IncidentFieldAttributes, bool)
GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetNotificationHandles() []IncidentNotificationHandle
GetNotificationHandles returns the NotificationHandles field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetNotificationHandlesOk() (*[]IncidentNotificationHandle, bool)
GetNotificationHandlesOk returns a tuple with the NotificationHandles field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetPublicId() int64
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetPublicIdOk() (*int64, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetResolved() time.Time
GetResolved returns the Resolved field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetResolvedOk() (*time.Time, bool)
GetResolvedOk returns a tuple with the Resolved field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetTimeToDetect() int64
GetTimeToDetect returns the TimeToDetect field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToDetectOk() (*int64, bool)
GetTimeToDetectOk returns a tuple with the TimeToDetect field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToInternalResponse() int64
GetTimeToInternalResponse returns the TimeToInternalResponse field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToInternalResponseOk() (*int64, bool)
GetTimeToInternalResponseOk returns a tuple with the TimeToInternalResponse field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToRepair() int64
GetTimeToRepair returns the TimeToRepair field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToRepairOk() (*int64, bool)
GetTimeToRepairOk returns a tuple with the TimeToRepair field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToResolve() int64
GetTimeToResolve returns the TimeToResolve field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToResolveOk() (*int64, bool)
GetTimeToResolveOk returns a tuple with the TimeToResolve field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTitle() string
GetTitle returns the Title field value.
func (o *IncidentResponseAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactDuration() bool
HasCustomerImpactDuration returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactEnd() bool
HasCustomerImpactEnd returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactScope() bool
HasCustomerImpactScope returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactStart() bool
HasCustomerImpactStart returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpacted() bool
HasCustomerImpacted returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasDetected() bool
HasDetected returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasFields() bool
HasFields returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasNotificationHandles() bool
HasNotificationHandles returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasResolved() bool
HasResolved returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToDetect() bool
HasTimeToDetect returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToInternalResponse() bool
HasTimeToInternalResponse returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToRepair() bool
HasTimeToRepair returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToResolve() bool
HasTimeToResolve returns a boolean if a field has been set.
func (o IncidentResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *IncidentResponseAttributes) SetCustomerImpactDuration(v int64)
SetCustomerImpactDuration gets a reference to the given int64 and assigns it to the CustomerImpactDuration field.
func (o *IncidentResponseAttributes) SetCustomerImpactEnd(v time.Time)
SetCustomerImpactEnd gets a reference to the given datadog.NullableTime and assigns it to the CustomerImpactEnd field.
func (o *IncidentResponseAttributes) SetCustomerImpactEndNil()
SetCustomerImpactEndNil sets the value for CustomerImpactEnd to be an explicit nil.
func (o *IncidentResponseAttributes) SetCustomerImpactScope(v string)
SetCustomerImpactScope gets a reference to the given datadog.NullableString and assigns it to the CustomerImpactScope field.
func (o *IncidentResponseAttributes) SetCustomerImpactScopeNil()
SetCustomerImpactScopeNil sets the value for CustomerImpactScope to be an explicit nil.
func (o *IncidentResponseAttributes) SetCustomerImpactStart(v time.Time)
SetCustomerImpactStart gets a reference to the given datadog.NullableTime and assigns it to the CustomerImpactStart field.
func (o *IncidentResponseAttributes) SetCustomerImpactStartNil()
SetCustomerImpactStartNil sets the value for CustomerImpactStart to be an explicit nil.
func (o *IncidentResponseAttributes) SetCustomerImpacted(v bool)
SetCustomerImpacted gets a reference to the given bool and assigns it to the CustomerImpacted field.
func (o *IncidentResponseAttributes) SetDetected(v time.Time)
SetDetected gets a reference to the given datadog.NullableTime and assigns it to the Detected field.
func (o *IncidentResponseAttributes) SetDetectedNil()
SetDetectedNil sets the value for Detected to be an explicit nil.
func (o *IncidentResponseAttributes) SetFields(v map[string]IncidentFieldAttributes)
SetFields gets a reference to the given map[string]IncidentFieldAttributes and assigns it to the Fields field.
func (o *IncidentResponseAttributes) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *IncidentResponseAttributes) SetNotificationHandles(v []IncidentNotificationHandle)
SetNotificationHandles gets a reference to the given []IncidentNotificationHandle and assigns it to the NotificationHandles field.
func (o *IncidentResponseAttributes) SetPublicId(v int64)
SetPublicId gets a reference to the given int64 and assigns it to the PublicId field.
func (o *IncidentResponseAttributes) SetResolved(v time.Time)
SetResolved gets a reference to the given datadog.NullableTime and assigns it to the Resolved field.
func (o *IncidentResponseAttributes) SetResolvedNil()
SetResolvedNil sets the value for Resolved to be an explicit nil.
func (o *IncidentResponseAttributes) SetTimeToDetect(v int64)
SetTimeToDetect gets a reference to the given int64 and assigns it to the TimeToDetect field.
func (o *IncidentResponseAttributes) SetTimeToInternalResponse(v int64)
SetTimeToInternalResponse gets a reference to the given int64 and assigns it to the TimeToInternalResponse field.
func (o *IncidentResponseAttributes) SetTimeToRepair(v int64)
SetTimeToRepair gets a reference to the given int64 and assigns it to the TimeToRepair field.
func (o *IncidentResponseAttributes) SetTimeToResolve(v int64)
SetTimeToResolve gets a reference to the given int64 and assigns it to the TimeToResolve field.
func (o *IncidentResponseAttributes) SetTitle(v string)
SetTitle sets field value.
func (o *IncidentResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentResponseAttributes) UnsetCustomerImpactEnd()
UnsetCustomerImpactEnd ensures that no value is present for CustomerImpactEnd, not even an explicit nil.
func (o *IncidentResponseAttributes) UnsetCustomerImpactScope()
UnsetCustomerImpactScope ensures that no value is present for CustomerImpactScope, not even an explicit nil.
func (o *IncidentResponseAttributes) UnsetCustomerImpactStart()
UnsetCustomerImpactStart ensures that no value is present for CustomerImpactStart, not even an explicit nil.
func (o *IncidentResponseAttributes) UnsetDetected()
UnsetDetected ensures that no value is present for Detected, not even an explicit nil.
func (o *IncidentResponseAttributes) UnsetResolved()
UnsetResolved ensures that no value is present for Resolved, not even an explicit nil.
IncidentResponseData Incident data from a response.
type IncidentResponseData struct {
// The incident's attributes from a response.
Attributes *IncidentResponseAttributes `json:"attributes,omitempty"`
// The incident's ID.
Id string `json:"id"`
// The incident's relationships from a response.
Relationships *IncidentResponseRelationships `json:"relationships,omitempty"`
// Incident resource type.
Type IncidentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseData(id string, typeVar IncidentType) *IncidentResponseData
NewIncidentResponseData instantiates a new IncidentResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseDataWithDefaults() *IncidentResponseData
NewIncidentResponseDataWithDefaults instantiates a new IncidentResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseData) GetAttributes() IncidentResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentResponseData) GetAttributesOk() (*IncidentResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseData) GetId() string
GetId returns the Id field value.
func (o *IncidentResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentResponseData) GetRelationships() IncidentResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentResponseData) GetRelationshipsOk() (*IncidentResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseData) GetType() IncidentType
GetType returns the Type field value.
func (o *IncidentResponseData) GetTypeOk() (*IncidentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseData) SetAttributes(v IncidentResponseAttributes)
SetAttributes gets a reference to the given IncidentResponseAttributes and assigns it to the Attributes field.
func (o *IncidentResponseData) SetId(v string)
SetId sets field value.
func (o *IncidentResponseData) SetRelationships(v IncidentResponseRelationships)
SetRelationships gets a reference to the given IncidentResponseRelationships and assigns it to the Relationships field.
func (o *IncidentResponseData) SetType(v IncidentType)
SetType sets field value.
func (o *IncidentResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentResponseIncludedItem - An object related to an incident that is included in the response.
type IncidentResponseIncludedItem struct {
User *User
IncidentAttachmentData *IncidentAttachmentData
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentAttachmentDataAsIncidentResponseIncludedItem(v *IncidentAttachmentData) IncidentResponseIncludedItem
IncidentAttachmentDataAsIncidentResponseIncludedItem is a convenience function that returns IncidentAttachmentData wrapped in IncidentResponseIncludedItem.
func UserAsIncidentResponseIncludedItem(v *User) IncidentResponseIncludedItem
UserAsIncidentResponseIncludedItem is a convenience function that returns User wrapped in IncidentResponseIncludedItem.
func (obj *IncidentResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentResponseMeta The metadata object containing pagination metadata.
type IncidentResponseMeta struct {
// Pagination properties.
Pagination *IncidentResponseMetaPagination `json:"pagination,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseMeta() *IncidentResponseMeta
NewIncidentResponseMeta instantiates a new IncidentResponseMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseMetaWithDefaults() *IncidentResponseMeta
NewIncidentResponseMetaWithDefaults instantiates a new IncidentResponseMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseMeta) GetPagination() IncidentResponseMetaPagination
GetPagination returns the Pagination field value if set, zero value otherwise.
func (o *IncidentResponseMeta) GetPaginationOk() (*IncidentResponseMetaPagination, bool)
GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseMeta) HasPagination() bool
HasPagination returns a boolean if a field has been set.
func (o IncidentResponseMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseMeta) SetPagination(v IncidentResponseMetaPagination)
SetPagination gets a reference to the given IncidentResponseMetaPagination and assigns it to the Pagination field.
func (o *IncidentResponseMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentResponseMetaPagination Pagination properties.
type IncidentResponseMetaPagination struct {
// The index of the first element in the next page of results. Equal to page size added to the current offset.
NextOffset *int64 `json:"next_offset,omitempty"`
// The index of the first element in the results.
Offset *int64 `json:"offset,omitempty"`
// Maximum size of pages to return.
Size *int64 `json:"size,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseMetaPagination() *IncidentResponseMetaPagination
NewIncidentResponseMetaPagination instantiates a new IncidentResponseMetaPagination object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseMetaPaginationWithDefaults() *IncidentResponseMetaPagination
NewIncidentResponseMetaPaginationWithDefaults instantiates a new IncidentResponseMetaPagination object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseMetaPagination) GetNextOffset() int64
GetNextOffset returns the NextOffset field value if set, zero value otherwise.
func (o *IncidentResponseMetaPagination) GetNextOffsetOk() (*int64, bool)
GetNextOffsetOk returns a tuple with the NextOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseMetaPagination) GetOffset() int64
GetOffset returns the Offset field value if set, zero value otherwise.
func (o *IncidentResponseMetaPagination) GetOffsetOk() (*int64, bool)
GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseMetaPagination) GetSize() int64
GetSize returns the Size field value if set, zero value otherwise.
func (o *IncidentResponseMetaPagination) GetSizeOk() (*int64, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseMetaPagination) HasNextOffset() bool
HasNextOffset returns a boolean if a field has been set.
func (o *IncidentResponseMetaPagination) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *IncidentResponseMetaPagination) HasSize() bool
HasSize returns a boolean if a field has been set.
func (o IncidentResponseMetaPagination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseMetaPagination) SetNextOffset(v int64)
SetNextOffset gets a reference to the given int64 and assigns it to the NextOffset field.
func (o *IncidentResponseMetaPagination) SetOffset(v int64)
SetOffset gets a reference to the given int64 and assigns it to the Offset field.
func (o *IncidentResponseMetaPagination) SetSize(v int64)
SetSize gets a reference to the given int64 and assigns it to the Size field.
func (o *IncidentResponseMetaPagination) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentResponseRelationships The incident's relationships from a response.
type IncidentResponseRelationships struct {
// A relationship reference for attachments.
Attachments *RelationshipToIncidentAttachment `json:"attachments,omitempty"`
// Relationship to user.
CommanderUser *NullableRelationshipToUser `json:"commander_user,omitempty"`
// Relationship to user.
CreatedByUser *RelationshipToUser `json:"created_by_user,omitempty"`
// A relationship reference for multiple integration metadata objects.
Integrations *RelationshipToIncidentIntegrationMetadatas `json:"integrations,omitempty"`
// Relationship to user.
LastModifiedByUser *RelationshipToUser `json:"last_modified_by_user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseRelationships() *IncidentResponseRelationships
NewIncidentResponseRelationships instantiates a new IncidentResponseRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseRelationshipsWithDefaults() *IncidentResponseRelationships
NewIncidentResponseRelationshipsWithDefaults instantiates a new IncidentResponseRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseRelationships) GetAttachments() RelationshipToIncidentAttachment
GetAttachments returns the Attachments field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetAttachmentsOk() (*RelationshipToIncidentAttachment, bool)
GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) GetCommanderUser() NullableRelationshipToUser
GetCommanderUser returns the CommanderUser field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)
GetCommanderUserOk returns a tuple with the CommanderUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) GetCreatedByUser() RelationshipToUser
GetCreatedByUser returns the CreatedByUser field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetCreatedByUserOk() (*RelationshipToUser, bool)
GetCreatedByUserOk returns a tuple with the CreatedByUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) GetIntegrations() RelationshipToIncidentIntegrationMetadatas
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetIntegrationsOk() (*RelationshipToIncidentIntegrationMetadatas, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) GetLastModifiedByUser() RelationshipToUser
GetLastModifiedByUser returns the LastModifiedByUser field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetLastModifiedByUserOk() (*RelationshipToUser, bool)
GetLastModifiedByUserOk returns a tuple with the LastModifiedByUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) HasAttachments() bool
HasAttachments returns a boolean if a field has been set.
func (o *IncidentResponseRelationships) HasCommanderUser() bool
HasCommanderUser returns a boolean if a field has been set.
func (o *IncidentResponseRelationships) HasCreatedByUser() bool
HasCreatedByUser returns a boolean if a field has been set.
func (o *IncidentResponseRelationships) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *IncidentResponseRelationships) HasLastModifiedByUser() bool
HasLastModifiedByUser returns a boolean if a field has been set.
func (o IncidentResponseRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseRelationships) SetAttachments(v RelationshipToIncidentAttachment)
SetAttachments gets a reference to the given RelationshipToIncidentAttachment and assigns it to the Attachments field.
func (o *IncidentResponseRelationships) SetCommanderUser(v NullableRelationshipToUser)
SetCommanderUser gets a reference to the given NullableRelationshipToUser and assigns it to the CommanderUser field.
func (o *IncidentResponseRelationships) SetCreatedByUser(v RelationshipToUser)
SetCreatedByUser gets a reference to the given RelationshipToUser and assigns it to the CreatedByUser field.
func (o *IncidentResponseRelationships) SetIntegrations(v RelationshipToIncidentIntegrationMetadatas)
SetIntegrations gets a reference to the given RelationshipToIncidentIntegrationMetadatas and assigns it to the Integrations field.
func (o *IncidentResponseRelationships) SetLastModifiedByUser(v RelationshipToUser)
SetLastModifiedByUser gets a reference to the given RelationshipToUser and assigns it to the LastModifiedByUser field.
func (o *IncidentResponseRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponse Response with incidents and facets.
type IncidentSearchResponse struct {
// Data returned by an incident search.
Data IncidentSearchResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentResponseIncludedItem `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentSearchResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponse(data IncidentSearchResponseData) *IncidentSearchResponse
NewIncidentSearchResponse instantiates a new IncidentSearchResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseWithDefaults() *IncidentSearchResponse
NewIncidentSearchResponseWithDefaults instantiates a new IncidentSearchResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponse) GetData() IncidentSearchResponseData
GetData returns the Data field value.
func (o *IncidentSearchResponse) GetDataOk() (*IncidentSearchResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentSearchResponse) GetIncluded() []IncidentResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentSearchResponse) GetIncludedOk() (*[]IncidentResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponse) GetMeta() IncidentSearchResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentSearchResponse) GetMetaOk() (*IncidentSearchResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentSearchResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentSearchResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponse) SetData(v IncidentSearchResponseData)
SetData sets field value.
func (o *IncidentSearchResponse) SetIncluded(v []IncidentResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentResponseIncludedItem and assigns it to the Included field.
func (o *IncidentSearchResponse) SetMeta(v IncidentSearchResponseMeta)
SetMeta gets a reference to the given IncidentSearchResponseMeta and assigns it to the Meta field.
func (o *IncidentSearchResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseAttributes Attributes returned by an incident search.
type IncidentSearchResponseAttributes struct {
// Facet data for incidents returned by a search query.
Facets IncidentSearchResponseFacetsData `json:"facets"`
// Incidents returned by the search.
Incidents []IncidentSearchResponseIncidentsData `json:"incidents"`
// Number of incidents returned by the search.
Total int32 `json:"total"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseAttributes(facets IncidentSearchResponseFacetsData, incidents []IncidentSearchResponseIncidentsData, total int32) *IncidentSearchResponseAttributes
NewIncidentSearchResponseAttributes instantiates a new IncidentSearchResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseAttributesWithDefaults() *IncidentSearchResponseAttributes
NewIncidentSearchResponseAttributesWithDefaults instantiates a new IncidentSearchResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseAttributes) GetFacets() IncidentSearchResponseFacetsData
GetFacets returns the Facets field value.
func (o *IncidentSearchResponseAttributes) GetFacetsOk() (*IncidentSearchResponseFacetsData, bool)
GetFacetsOk returns a tuple with the Facets field value and a boolean to check if the value has been set.
func (o *IncidentSearchResponseAttributes) GetIncidents() []IncidentSearchResponseIncidentsData
GetIncidents returns the Incidents field value.
func (o *IncidentSearchResponseAttributes) GetIncidentsOk() (*[]IncidentSearchResponseIncidentsData, bool)
GetIncidentsOk returns a tuple with the Incidents field value and a boolean to check if the value has been set.
func (o *IncidentSearchResponseAttributes) GetTotal() int32
GetTotal returns the Total field value.
func (o *IncidentSearchResponseAttributes) GetTotalOk() (*int32, bool)
GetTotalOk returns a tuple with the Total field value and a boolean to check if the value has been set.
func (o IncidentSearchResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseAttributes) SetFacets(v IncidentSearchResponseFacetsData)
SetFacets sets field value.
func (o *IncidentSearchResponseAttributes) SetIncidents(v []IncidentSearchResponseIncidentsData)
SetIncidents sets field value.
func (o *IncidentSearchResponseAttributes) SetTotal(v int32)
SetTotal sets field value.
func (o *IncidentSearchResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseData Data returned by an incident search.
type IncidentSearchResponseData struct {
// Attributes returned by an incident search.
Attributes *IncidentSearchResponseAttributes `json:"attributes,omitempty"`
// Incident search result type.
Type *IncidentSearchResultsType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseData() *IncidentSearchResponseData
NewIncidentSearchResponseData instantiates a new IncidentSearchResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseDataWithDefaults() *IncidentSearchResponseData
NewIncidentSearchResponseDataWithDefaults instantiates a new IncidentSearchResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseData) GetAttributes() IncidentSearchResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentSearchResponseData) GetAttributesOk() (*IncidentSearchResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseData) GetType() IncidentSearchResultsType
GetType returns the Type field value if set, zero value otherwise.
func (o *IncidentSearchResponseData) GetTypeOk() (*IncidentSearchResultsType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentSearchResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o IncidentSearchResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseData) SetAttributes(v IncidentSearchResponseAttributes)
SetAttributes gets a reference to the given IncidentSearchResponseAttributes and assigns it to the Attributes field.
func (o *IncidentSearchResponseData) SetType(v IncidentSearchResultsType)
SetType gets a reference to the given IncidentSearchResultsType and assigns it to the Type field.
func (o *IncidentSearchResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseFacetsData Facet data for incidents returned by a search query.
type IncidentSearchResponseFacetsData struct {
// Facet data for incident commander users.
Commander []IncidentSearchResponseUserFacetData `json:"commander,omitempty"`
// Facet data for incident creator users.
CreatedBy []IncidentSearchResponseUserFacetData `json:"created_by,omitempty"`
// Facet data for incident property fields.
Fields []IncidentSearchResponsePropertyFieldFacetData `json:"fields,omitempty"`
// Facet data for incident impact attributes.
Impact []IncidentSearchResponseFieldFacetData `json:"impact,omitempty"`
// Facet data for incident last modified by users.
LastModifiedBy []IncidentSearchResponseUserFacetData `json:"last_modified_by,omitempty"`
// Facet data for incident postmortem existence.
Postmortem []IncidentSearchResponseFieldFacetData `json:"postmortem,omitempty"`
// Facet data for incident responder users.
Responder []IncidentSearchResponseUserFacetData `json:"responder,omitempty"`
// Facet data for incident severity attributes.
Severity []IncidentSearchResponseFieldFacetData `json:"severity,omitempty"`
// Facet data for incident state attributes.
State []IncidentSearchResponseFieldFacetData `json:"state,omitempty"`
// Facet data for incident time to repair metrics.
TimeToRepair []IncidentSearchResponseNumericFacetData `json:"time_to_repair,omitempty"`
// Facet data for incident time to resolve metrics.
TimeToResolve []IncidentSearchResponseNumericFacetData `json:"time_to_resolve,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseFacetsData() *IncidentSearchResponseFacetsData
NewIncidentSearchResponseFacetsData instantiates a new IncidentSearchResponseFacetsData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseFacetsDataWithDefaults() *IncidentSearchResponseFacetsData
NewIncidentSearchResponseFacetsDataWithDefaults instantiates a new IncidentSearchResponseFacetsData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseFacetsData) GetCommander() []IncidentSearchResponseUserFacetData
GetCommander returns the Commander field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetCommanderOk() (*[]IncidentSearchResponseUserFacetData, bool)
GetCommanderOk returns a tuple with the Commander field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetCreatedBy() []IncidentSearchResponseUserFacetData
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetCreatedByOk() (*[]IncidentSearchResponseUserFacetData, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetFields() []IncidentSearchResponsePropertyFieldFacetData
GetFields returns the Fields field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetFieldsOk() (*[]IncidentSearchResponsePropertyFieldFacetData, bool)
GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetImpact() []IncidentSearchResponseFieldFacetData
GetImpact returns the Impact field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetImpactOk() (*[]IncidentSearchResponseFieldFacetData, bool)
GetImpactOk returns a tuple with the Impact field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetLastModifiedBy() []IncidentSearchResponseUserFacetData
GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetLastModifiedByOk() (*[]IncidentSearchResponseUserFacetData, bool)
GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetPostmortem() []IncidentSearchResponseFieldFacetData
GetPostmortem returns the Postmortem field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetPostmortemOk() (*[]IncidentSearchResponseFieldFacetData, bool)
GetPostmortemOk returns a tuple with the Postmortem field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetResponder() []IncidentSearchResponseUserFacetData
GetResponder returns the Responder field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetResponderOk() (*[]IncidentSearchResponseUserFacetData, bool)
GetResponderOk returns a tuple with the Responder field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetSeverity() []IncidentSearchResponseFieldFacetData
GetSeverity returns the Severity field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetSeverityOk() (*[]IncidentSearchResponseFieldFacetData, bool)
GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetState() []IncidentSearchResponseFieldFacetData
GetState returns the State field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetStateOk() (*[]IncidentSearchResponseFieldFacetData, bool)
GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetTimeToRepair() []IncidentSearchResponseNumericFacetData
GetTimeToRepair returns the TimeToRepair field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetTimeToRepairOk() (*[]IncidentSearchResponseNumericFacetData, bool)
GetTimeToRepairOk returns a tuple with the TimeToRepair field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) GetTimeToResolve() []IncidentSearchResponseNumericFacetData
GetTimeToResolve returns the TimeToResolve field value if set, zero value otherwise.
func (o *IncidentSearchResponseFacetsData) GetTimeToResolveOk() (*[]IncidentSearchResponseNumericFacetData, bool)
GetTimeToResolveOk returns a tuple with the TimeToResolve field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFacetsData) HasCommander() bool
HasCommander returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasFields() bool
HasFields returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasImpact() bool
HasImpact returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasLastModifiedBy() bool
HasLastModifiedBy returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasPostmortem() bool
HasPostmortem returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasResponder() bool
HasResponder returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasSeverity() bool
HasSeverity returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasState() bool
HasState returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasTimeToRepair() bool
HasTimeToRepair returns a boolean if a field has been set.
func (o *IncidentSearchResponseFacetsData) HasTimeToResolve() bool
HasTimeToResolve returns a boolean if a field has been set.
func (o IncidentSearchResponseFacetsData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseFacetsData) SetCommander(v []IncidentSearchResponseUserFacetData)
SetCommander gets a reference to the given []IncidentSearchResponseUserFacetData and assigns it to the Commander field.
func (o *IncidentSearchResponseFacetsData) SetCreatedBy(v []IncidentSearchResponseUserFacetData)
SetCreatedBy gets a reference to the given []IncidentSearchResponseUserFacetData and assigns it to the CreatedBy field.
func (o *IncidentSearchResponseFacetsData) SetFields(v []IncidentSearchResponsePropertyFieldFacetData)
SetFields gets a reference to the given []IncidentSearchResponsePropertyFieldFacetData and assigns it to the Fields field.
func (o *IncidentSearchResponseFacetsData) SetImpact(v []IncidentSearchResponseFieldFacetData)
SetImpact gets a reference to the given []IncidentSearchResponseFieldFacetData and assigns it to the Impact field.
func (o *IncidentSearchResponseFacetsData) SetLastModifiedBy(v []IncidentSearchResponseUserFacetData)
SetLastModifiedBy gets a reference to the given []IncidentSearchResponseUserFacetData and assigns it to the LastModifiedBy field.
func (o *IncidentSearchResponseFacetsData) SetPostmortem(v []IncidentSearchResponseFieldFacetData)
SetPostmortem gets a reference to the given []IncidentSearchResponseFieldFacetData and assigns it to the Postmortem field.
func (o *IncidentSearchResponseFacetsData) SetResponder(v []IncidentSearchResponseUserFacetData)
SetResponder gets a reference to the given []IncidentSearchResponseUserFacetData and assigns it to the Responder field.
func (o *IncidentSearchResponseFacetsData) SetSeverity(v []IncidentSearchResponseFieldFacetData)
SetSeverity gets a reference to the given []IncidentSearchResponseFieldFacetData and assigns it to the Severity field.
func (o *IncidentSearchResponseFacetsData) SetState(v []IncidentSearchResponseFieldFacetData)
SetState gets a reference to the given []IncidentSearchResponseFieldFacetData and assigns it to the State field.
func (o *IncidentSearchResponseFacetsData) SetTimeToRepair(v []IncidentSearchResponseNumericFacetData)
SetTimeToRepair gets a reference to the given []IncidentSearchResponseNumericFacetData and assigns it to the TimeToRepair field.
func (o *IncidentSearchResponseFacetsData) SetTimeToResolve(v []IncidentSearchResponseNumericFacetData)
SetTimeToResolve gets a reference to the given []IncidentSearchResponseNumericFacetData and assigns it to the TimeToResolve field.
func (o *IncidentSearchResponseFacetsData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseFieldFacetData Facet value and number of occurrences for a property field of an incident.
type IncidentSearchResponseFieldFacetData struct {
// Count of the facet value appearing in search results.
Count *int32 `json:"count,omitempty"`
// The facet value appearing in search results.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseFieldFacetData() *IncidentSearchResponseFieldFacetData
NewIncidentSearchResponseFieldFacetData instantiates a new IncidentSearchResponseFieldFacetData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseFieldFacetDataWithDefaults() *IncidentSearchResponseFieldFacetData
NewIncidentSearchResponseFieldFacetDataWithDefaults instantiates a new IncidentSearchResponseFieldFacetData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseFieldFacetData) GetCount() int32
GetCount returns the Count field value if set, zero value otherwise.
func (o *IncidentSearchResponseFieldFacetData) GetCountOk() (*int32, bool)
GetCountOk returns a tuple with the Count field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFieldFacetData) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *IncidentSearchResponseFieldFacetData) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseFieldFacetData) HasCount() bool
HasCount returns a boolean if a field has been set.
func (o *IncidentSearchResponseFieldFacetData) HasName() bool
HasName returns a boolean if a field has been set.
func (o IncidentSearchResponseFieldFacetData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseFieldFacetData) SetCount(v int32)
SetCount gets a reference to the given int32 and assigns it to the Count field.
func (o *IncidentSearchResponseFieldFacetData) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *IncidentSearchResponseFieldFacetData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseIncidentsData Incident returned by the search.
type IncidentSearchResponseIncidentsData struct {
// Incident data from a response.
Data IncidentResponseData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseIncidentsData(data IncidentResponseData) *IncidentSearchResponseIncidentsData
NewIncidentSearchResponseIncidentsData instantiates a new IncidentSearchResponseIncidentsData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseIncidentsDataWithDefaults() *IncidentSearchResponseIncidentsData
NewIncidentSearchResponseIncidentsDataWithDefaults instantiates a new IncidentSearchResponseIncidentsData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseIncidentsData) GetData() IncidentResponseData
GetData returns the Data field value.
func (o *IncidentSearchResponseIncidentsData) GetDataOk() (*IncidentResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentSearchResponseIncidentsData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseIncidentsData) SetData(v IncidentResponseData)
SetData sets field value.
func (o *IncidentSearchResponseIncidentsData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseMeta The metadata object containing pagination metadata.
type IncidentSearchResponseMeta struct {
// Pagination properties.
Pagination *IncidentResponseMetaPagination `json:"pagination,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseMeta() *IncidentSearchResponseMeta
NewIncidentSearchResponseMeta instantiates a new IncidentSearchResponseMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseMetaWithDefaults() *IncidentSearchResponseMeta
NewIncidentSearchResponseMetaWithDefaults instantiates a new IncidentSearchResponseMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseMeta) GetPagination() IncidentResponseMetaPagination
GetPagination returns the Pagination field value if set, zero value otherwise.
func (o *IncidentSearchResponseMeta) GetPaginationOk() (*IncidentResponseMetaPagination, bool)
GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseMeta) HasPagination() bool
HasPagination returns a boolean if a field has been set.
func (o IncidentSearchResponseMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseMeta) SetPagination(v IncidentResponseMetaPagination)
SetPagination gets a reference to the given IncidentResponseMetaPagination and assigns it to the Pagination field.
func (o *IncidentSearchResponseMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseNumericFacetData Facet data numeric attributes of an incident.
type IncidentSearchResponseNumericFacetData struct {
// Aggregate information for numeric incident data.
Aggregates IncidentSearchResponseNumericFacetDataAggregates `json:"aggregates"`
// Name of the incident property field.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseNumericFacetData(aggregates IncidentSearchResponseNumericFacetDataAggregates, name string) *IncidentSearchResponseNumericFacetData
NewIncidentSearchResponseNumericFacetData instantiates a new IncidentSearchResponseNumericFacetData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseNumericFacetDataWithDefaults() *IncidentSearchResponseNumericFacetData
NewIncidentSearchResponseNumericFacetDataWithDefaults instantiates a new IncidentSearchResponseNumericFacetData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseNumericFacetData) GetAggregates() IncidentSearchResponseNumericFacetDataAggregates
GetAggregates returns the Aggregates field value.
func (o *IncidentSearchResponseNumericFacetData) GetAggregatesOk() (*IncidentSearchResponseNumericFacetDataAggregates, bool)
GetAggregatesOk returns a tuple with the Aggregates field value and a boolean to check if the value has been set.
func (o *IncidentSearchResponseNumericFacetData) GetName() string
GetName returns the Name field value.
func (o *IncidentSearchResponseNumericFacetData) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentSearchResponseNumericFacetData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseNumericFacetData) SetAggregates(v IncidentSearchResponseNumericFacetDataAggregates)
SetAggregates sets field value.
func (o *IncidentSearchResponseNumericFacetData) SetName(v string)
SetName sets field value.
func (o *IncidentSearchResponseNumericFacetData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseNumericFacetDataAggregates Aggregate information for numeric incident data.
type IncidentSearchResponseNumericFacetDataAggregates struct {
// Maximum value of the numeric aggregates.
Max datadog.NullableFloat64 `json:"max,omitempty"`
// Minimum value of the numeric aggregates.
Min datadog.NullableFloat64 `json:"min,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseNumericFacetDataAggregates() *IncidentSearchResponseNumericFacetDataAggregates
NewIncidentSearchResponseNumericFacetDataAggregates instantiates a new IncidentSearchResponseNumericFacetDataAggregates object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseNumericFacetDataAggregatesWithDefaults() *IncidentSearchResponseNumericFacetDataAggregates
NewIncidentSearchResponseNumericFacetDataAggregatesWithDefaults instantiates a new IncidentSearchResponseNumericFacetDataAggregates object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseNumericFacetDataAggregates) GetMax() float64
GetMax returns the Max field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentSearchResponseNumericFacetDataAggregates) GetMaxOk() (*float64, bool)
GetMaxOk returns a tuple with the Max field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentSearchResponseNumericFacetDataAggregates) GetMin() float64
GetMin returns the Min field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentSearchResponseNumericFacetDataAggregates) GetMinOk() (*float64, bool)
GetMinOk returns a tuple with the Min field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentSearchResponseNumericFacetDataAggregates) HasMax() bool
HasMax returns a boolean if a field has been set.
func (o *IncidentSearchResponseNumericFacetDataAggregates) HasMin() bool
HasMin returns a boolean if a field has been set.
func (o IncidentSearchResponseNumericFacetDataAggregates) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseNumericFacetDataAggregates) SetMax(v float64)
SetMax gets a reference to the given datadog.NullableFloat64 and assigns it to the Max field.
func (o *IncidentSearchResponseNumericFacetDataAggregates) SetMaxNil()
SetMaxNil sets the value for Max to be an explicit nil.
func (o *IncidentSearchResponseNumericFacetDataAggregates) SetMin(v float64)
SetMin gets a reference to the given datadog.NullableFloat64 and assigns it to the Min field.
func (o *IncidentSearchResponseNumericFacetDataAggregates) SetMinNil()
SetMinNil sets the value for Min to be an explicit nil.
func (o *IncidentSearchResponseNumericFacetDataAggregates) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentSearchResponseNumericFacetDataAggregates) UnsetMax()
UnsetMax ensures that no value is present for Max, not even an explicit nil.
func (o *IncidentSearchResponseNumericFacetDataAggregates) UnsetMin()
UnsetMin ensures that no value is present for Min, not even an explicit nil.
IncidentSearchResponsePropertyFieldFacetData Facet data for the incident property fields.
type IncidentSearchResponsePropertyFieldFacetData struct {
// Aggregate information for numeric incident data.
Aggregates *IncidentSearchResponseNumericFacetDataAggregates `json:"aggregates,omitempty"`
// Facet data for the property field of an incident.
Facets []IncidentSearchResponseFieldFacetData `json:"facets"`
// Name of the incident property field.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponsePropertyFieldFacetData(facets []IncidentSearchResponseFieldFacetData, name string) *IncidentSearchResponsePropertyFieldFacetData
NewIncidentSearchResponsePropertyFieldFacetData instantiates a new IncidentSearchResponsePropertyFieldFacetData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponsePropertyFieldFacetDataWithDefaults() *IncidentSearchResponsePropertyFieldFacetData
NewIncidentSearchResponsePropertyFieldFacetDataWithDefaults instantiates a new IncidentSearchResponsePropertyFieldFacetData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponsePropertyFieldFacetData) GetAggregates() IncidentSearchResponseNumericFacetDataAggregates
GetAggregates returns the Aggregates field value if set, zero value otherwise.
func (o *IncidentSearchResponsePropertyFieldFacetData) GetAggregatesOk() (*IncidentSearchResponseNumericFacetDataAggregates, bool)
GetAggregatesOk returns a tuple with the Aggregates field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponsePropertyFieldFacetData) GetFacets() []IncidentSearchResponseFieldFacetData
GetFacets returns the Facets field value.
func (o *IncidentSearchResponsePropertyFieldFacetData) GetFacetsOk() (*[]IncidentSearchResponseFieldFacetData, bool)
GetFacetsOk returns a tuple with the Facets field value and a boolean to check if the value has been set.
func (o *IncidentSearchResponsePropertyFieldFacetData) GetName() string
GetName returns the Name field value.
func (o *IncidentSearchResponsePropertyFieldFacetData) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *IncidentSearchResponsePropertyFieldFacetData) HasAggregates() bool
HasAggregates returns a boolean if a field has been set.
func (o IncidentSearchResponsePropertyFieldFacetData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponsePropertyFieldFacetData) SetAggregates(v IncidentSearchResponseNumericFacetDataAggregates)
SetAggregates gets a reference to the given IncidentSearchResponseNumericFacetDataAggregates and assigns it to the Aggregates field.
func (o *IncidentSearchResponsePropertyFieldFacetData) SetFacets(v []IncidentSearchResponseFieldFacetData)
SetFacets sets field value.
func (o *IncidentSearchResponsePropertyFieldFacetData) SetName(v string)
SetName sets field value.
func (o *IncidentSearchResponsePropertyFieldFacetData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResponseUserFacetData Facet data for user attributes of an incident.
type IncidentSearchResponseUserFacetData struct {
// Count of the facet value appearing in search results.
Count *int32 `json:"count,omitempty"`
// Email of the user.
Email *string `json:"email,omitempty"`
// Handle of the user.
Handle *string `json:"handle,omitempty"`
// Name of the user.
Name *string `json:"name,omitempty"`
// ID of the user.
Uuid *string `json:"uuid,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentSearchResponseUserFacetData() *IncidentSearchResponseUserFacetData
NewIncidentSearchResponseUserFacetData instantiates a new IncidentSearchResponseUserFacetData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentSearchResponseUserFacetDataWithDefaults() *IncidentSearchResponseUserFacetData
NewIncidentSearchResponseUserFacetDataWithDefaults instantiates a new IncidentSearchResponseUserFacetData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentSearchResponseUserFacetData) GetCount() int32
GetCount returns the Count field value if set, zero value otherwise.
func (o *IncidentSearchResponseUserFacetData) GetCountOk() (*int32, bool)
GetCountOk returns a tuple with the Count field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseUserFacetData) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *IncidentSearchResponseUserFacetData) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseUserFacetData) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *IncidentSearchResponseUserFacetData) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseUserFacetData) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *IncidentSearchResponseUserFacetData) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseUserFacetData) GetUuid() string
GetUuid returns the Uuid field value if set, zero value otherwise.
func (o *IncidentSearchResponseUserFacetData) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentSearchResponseUserFacetData) HasCount() bool
HasCount returns a boolean if a field has been set.
func (o *IncidentSearchResponseUserFacetData) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *IncidentSearchResponseUserFacetData) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *IncidentSearchResponseUserFacetData) HasName() bool
HasName returns a boolean if a field has been set.
func (o *IncidentSearchResponseUserFacetData) HasUuid() bool
HasUuid returns a boolean if a field has been set.
func (o IncidentSearchResponseUserFacetData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentSearchResponseUserFacetData) SetCount(v int32)
SetCount gets a reference to the given int32 and assigns it to the Count field.
func (o *IncidentSearchResponseUserFacetData) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *IncidentSearchResponseUserFacetData) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *IncidentSearchResponseUserFacetData) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *IncidentSearchResponseUserFacetData) SetUuid(v string)
SetUuid gets a reference to the given string and assigns it to the Uuid field.
func (o *IncidentSearchResponseUserFacetData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentSearchResultsType Incident search result type.
type IncidentSearchResultsType string
List of IncidentSearchResultsType.
const (
INCIDENTSEARCHRESULTSTYPE_INCIDENTS_SEARCH_RESULTS IncidentSearchResultsType = "incidents_search_results"
)
func NewIncidentSearchResultsTypeFromValue(v string) (*IncidentSearchResultsType, error)
NewIncidentSearchResultsTypeFromValue returns a pointer to a valid IncidentSearchResultsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentSearchResultsType) GetAllowedValues() []IncidentSearchResultsType
GetAllowedValues reeturns the list of possible values.
func (v IncidentSearchResultsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentSearchResultsType) Ptr() *IncidentSearchResultsType
Ptr returns reference to IncidentSearchResultsType value.
func (v *IncidentSearchResultsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentSearchSortOrder The ways searched incidents can be sorted.
type IncidentSearchSortOrder string
List of IncidentSearchSortOrder.
const (
INCIDENTSEARCHSORTORDER_CREATED_ASCENDING IncidentSearchSortOrder = "created"
INCIDENTSEARCHSORTORDER_CREATED_DESCENDING IncidentSearchSortOrder = "-created"
)
func NewIncidentSearchSortOrderFromValue(v string) (*IncidentSearchSortOrder, error)
NewIncidentSearchSortOrderFromValue returns a pointer to a valid IncidentSearchSortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentSearchSortOrder) GetAllowedValues() []IncidentSearchSortOrder
GetAllowedValues reeturns the list of possible values.
func (v IncidentSearchSortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentSearchSortOrder) Ptr() *IncidentSearchSortOrder
Ptr returns reference to IncidentSearchSortOrder value.
func (v *IncidentSearchSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentServiceCreateAttributes The incident service's attributes for a create request.
type IncidentServiceCreateAttributes struct {
// Name of the incident service.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceCreateAttributes(name string) *IncidentServiceCreateAttributes
NewIncidentServiceCreateAttributes instantiates a new IncidentServiceCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceCreateAttributesWithDefaults() *IncidentServiceCreateAttributes
NewIncidentServiceCreateAttributesWithDefaults instantiates a new IncidentServiceCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *IncidentServiceCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentServiceCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceCreateAttributes) SetName(v string)
SetName sets field value.
func (o *IncidentServiceCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceCreateData Incident Service payload for create requests.
type IncidentServiceCreateData struct {
// The incident service's attributes for a create request.
Attributes *IncidentServiceCreateAttributes `json:"attributes,omitempty"`
// The incident service's relationships.
Relationships *IncidentServiceRelationships `json:"relationships,omitempty"`
// Incident service resource type.
Type IncidentServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceCreateData(typeVar IncidentServiceType) *IncidentServiceCreateData
NewIncidentServiceCreateData instantiates a new IncidentServiceCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceCreateDataWithDefaults() *IncidentServiceCreateData
NewIncidentServiceCreateDataWithDefaults instantiates a new IncidentServiceCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceCreateData) GetAttributes() IncidentServiceCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentServiceCreateData) GetAttributesOk() (*IncidentServiceCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceCreateData) GetRelationships() IncidentServiceRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentServiceCreateData) GetRelationshipsOk() (*IncidentServiceRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceCreateData) GetType() IncidentServiceType
GetType returns the Type field value.
func (o *IncidentServiceCreateData) GetTypeOk() (*IncidentServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentServiceCreateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentServiceCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentServiceCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceCreateData) SetAttributes(v IncidentServiceCreateAttributes)
SetAttributes gets a reference to the given IncidentServiceCreateAttributes and assigns it to the Attributes field.
func (o *IncidentServiceCreateData) SetRelationships(v IncidentServiceRelationships)
SetRelationships gets a reference to the given IncidentServiceRelationships and assigns it to the Relationships field.
func (o *IncidentServiceCreateData) SetType(v IncidentServiceType)
SetType sets field value.
func (o *IncidentServiceCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceCreateRequest Create request with an incident service payload.
type IncidentServiceCreateRequest struct {
// Incident Service payload for create requests.
Data IncidentServiceCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceCreateRequest(data IncidentServiceCreateData) *IncidentServiceCreateRequest
NewIncidentServiceCreateRequest instantiates a new IncidentServiceCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceCreateRequestWithDefaults() *IncidentServiceCreateRequest
NewIncidentServiceCreateRequestWithDefaults instantiates a new IncidentServiceCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceCreateRequest) GetData() IncidentServiceCreateData
GetData returns the Data field value.
func (o *IncidentServiceCreateRequest) GetDataOk() (*IncidentServiceCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentServiceCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceCreateRequest) SetData(v IncidentServiceCreateData)
SetData sets field value.
func (o *IncidentServiceCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceIncludedItems - An object related to an incident service which is present in the included payload.
type IncidentServiceIncludedItems struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsIncidentServiceIncludedItems(v *User) IncidentServiceIncludedItems
UserAsIncidentServiceIncludedItems is a convenience function that returns User wrapped in IncidentServiceIncludedItems.
func (obj *IncidentServiceIncludedItems) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentServiceIncludedItems) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentServiceIncludedItems) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentServiceRelationships The incident service's relationships.
type IncidentServiceRelationships struct {
// Relationship to user.
CreatedBy *RelationshipToUser `json:"created_by,omitempty"`
// Relationship to user.
LastModifiedBy *RelationshipToUser `json:"last_modified_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceRelationships() *IncidentServiceRelationships
NewIncidentServiceRelationships instantiates a new IncidentServiceRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceRelationshipsWithDefaults() *IncidentServiceRelationships
NewIncidentServiceRelationshipsWithDefaults instantiates a new IncidentServiceRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceRelationships) GetCreatedBy() RelationshipToUser
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *IncidentServiceRelationships) GetCreatedByOk() (*RelationshipToUser, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceRelationships) GetLastModifiedBy() RelationshipToUser
GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (o *IncidentServiceRelationships) GetLastModifiedByOk() (*RelationshipToUser, bool)
GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceRelationships) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *IncidentServiceRelationships) HasLastModifiedBy() bool
HasLastModifiedBy returns a boolean if a field has been set.
func (o IncidentServiceRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceRelationships) SetCreatedBy(v RelationshipToUser)
SetCreatedBy gets a reference to the given RelationshipToUser and assigns it to the CreatedBy field.
func (o *IncidentServiceRelationships) SetLastModifiedBy(v RelationshipToUser)
SetLastModifiedBy gets a reference to the given RelationshipToUser and assigns it to the LastModifiedBy field.
func (o *IncidentServiceRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceResponse Response with an incident service payload.
type IncidentServiceResponse struct {
// Incident Service data from responses.
Data IncidentServiceResponseData `json:"data"`
// Included objects from relationships.
Included []IncidentServiceIncludedItems `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceResponse(data IncidentServiceResponseData) *IncidentServiceResponse
NewIncidentServiceResponse instantiates a new IncidentServiceResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceResponseWithDefaults() *IncidentServiceResponse
NewIncidentServiceResponseWithDefaults instantiates a new IncidentServiceResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceResponse) GetData() IncidentServiceResponseData
GetData returns the Data field value.
func (o *IncidentServiceResponse) GetDataOk() (*IncidentServiceResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentServiceResponse) GetIncluded() []IncidentServiceIncludedItems
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentServiceResponse) GetIncludedOk() (*[]IncidentServiceIncludedItems, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentServiceResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceResponse) SetData(v IncidentServiceResponseData)
SetData sets field value.
func (o *IncidentServiceResponse) SetIncluded(v []IncidentServiceIncludedItems)
SetIncluded gets a reference to the given []IncidentServiceIncludedItems and assigns it to the Included field.
func (o *IncidentServiceResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceResponseAttributes The incident service's attributes from a response.
type IncidentServiceResponseAttributes struct {
// Timestamp of when the incident service was created.
Created *time.Time `json:"created,omitempty"`
// Timestamp of when the incident service was modified.
Modified *time.Time `json:"modified,omitempty"`
// Name of the incident service.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceResponseAttributes() *IncidentServiceResponseAttributes
NewIncidentServiceResponseAttributes instantiates a new IncidentServiceResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceResponseAttributesWithDefaults() *IncidentServiceResponseAttributes
NewIncidentServiceResponseAttributesWithDefaults instantiates a new IncidentServiceResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceResponseAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *IncidentServiceResponseAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseAttributes) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *IncidentServiceResponseAttributes) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *IncidentServiceResponseAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *IncidentServiceResponseAttributes) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *IncidentServiceResponseAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o IncidentServiceResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceResponseAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *IncidentServiceResponseAttributes) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *IncidentServiceResponseAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *IncidentServiceResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceResponseData Incident Service data from responses.
type IncidentServiceResponseData struct {
// The incident service's attributes from a response.
Attributes *IncidentServiceResponseAttributes `json:"attributes,omitempty"`
// The incident service's ID.
Id string `json:"id"`
// The incident service's relationships.
Relationships *IncidentServiceRelationships `json:"relationships,omitempty"`
// Incident service resource type.
Type IncidentServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceResponseData(id string, typeVar IncidentServiceType) *IncidentServiceResponseData
NewIncidentServiceResponseData instantiates a new IncidentServiceResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceResponseDataWithDefaults() *IncidentServiceResponseData
NewIncidentServiceResponseDataWithDefaults instantiates a new IncidentServiceResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceResponseData) GetAttributes() IncidentServiceResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentServiceResponseData) GetAttributesOk() (*IncidentServiceResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseData) GetId() string
GetId returns the Id field value.
func (o *IncidentServiceResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentServiceResponseData) GetRelationships() IncidentServiceRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentServiceResponseData) GetRelationshipsOk() (*IncidentServiceRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseData) GetType() IncidentServiceType
GetType returns the Type field value.
func (o *IncidentServiceResponseData) GetTypeOk() (*IncidentServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentServiceResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentServiceResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentServiceResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceResponseData) SetAttributes(v IncidentServiceResponseAttributes)
SetAttributes gets a reference to the given IncidentServiceResponseAttributes and assigns it to the Attributes field.
func (o *IncidentServiceResponseData) SetId(v string)
SetId sets field value.
func (o *IncidentServiceResponseData) SetRelationships(v IncidentServiceRelationships)
SetRelationships gets a reference to the given IncidentServiceRelationships and assigns it to the Relationships field.
func (o *IncidentServiceResponseData) SetType(v IncidentServiceType)
SetType sets field value.
func (o *IncidentServiceResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceType Incident service resource type.
type IncidentServiceType string
List of IncidentServiceType.
const (
INCIDENTSERVICETYPE_SERVICES IncidentServiceType = "services"
)
func NewIncidentServiceTypeFromValue(v string) (*IncidentServiceType, error)
NewIncidentServiceTypeFromValue returns a pointer to a valid IncidentServiceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentServiceType) GetAllowedValues() []IncidentServiceType
GetAllowedValues reeturns the list of possible values.
func (v IncidentServiceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentServiceType) Ptr() *IncidentServiceType
Ptr returns reference to IncidentServiceType value.
func (v *IncidentServiceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentServiceUpdateAttributes The incident service's attributes for an update request.
type IncidentServiceUpdateAttributes struct {
// Name of the incident service.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceUpdateAttributes(name string) *IncidentServiceUpdateAttributes
NewIncidentServiceUpdateAttributes instantiates a new IncidentServiceUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceUpdateAttributesWithDefaults() *IncidentServiceUpdateAttributes
NewIncidentServiceUpdateAttributesWithDefaults instantiates a new IncidentServiceUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceUpdateAttributes) GetName() string
GetName returns the Name field value.
func (o *IncidentServiceUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentServiceUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceUpdateAttributes) SetName(v string)
SetName sets field value.
func (o *IncidentServiceUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceUpdateData Incident Service payload for update requests.
type IncidentServiceUpdateData struct {
// The incident service's attributes for an update request.
Attributes *IncidentServiceUpdateAttributes `json:"attributes,omitempty"`
// The incident service's ID.
Id *string `json:"id,omitempty"`
// The incident service's relationships.
Relationships *IncidentServiceRelationships `json:"relationships,omitempty"`
// Incident service resource type.
Type IncidentServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceUpdateData(typeVar IncidentServiceType) *IncidentServiceUpdateData
NewIncidentServiceUpdateData instantiates a new IncidentServiceUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceUpdateDataWithDefaults() *IncidentServiceUpdateData
NewIncidentServiceUpdateDataWithDefaults instantiates a new IncidentServiceUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceUpdateData) GetAttributes() IncidentServiceUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentServiceUpdateData) GetAttributesOk() (*IncidentServiceUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceUpdateData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IncidentServiceUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceUpdateData) GetRelationships() IncidentServiceRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentServiceUpdateData) GetRelationshipsOk() (*IncidentServiceRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceUpdateData) GetType() IncidentServiceType
GetType returns the Type field value.
func (o *IncidentServiceUpdateData) GetTypeOk() (*IncidentServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentServiceUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentServiceUpdateData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *IncidentServiceUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentServiceUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceUpdateData) SetAttributes(v IncidentServiceUpdateAttributes)
SetAttributes gets a reference to the given IncidentServiceUpdateAttributes and assigns it to the Attributes field.
func (o *IncidentServiceUpdateData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IncidentServiceUpdateData) SetRelationships(v IncidentServiceRelationships)
SetRelationships gets a reference to the given IncidentServiceRelationships and assigns it to the Relationships field.
func (o *IncidentServiceUpdateData) SetType(v IncidentServiceType)
SetType sets field value.
func (o *IncidentServiceUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceUpdateRequest Update request with an incident service payload.
type IncidentServiceUpdateRequest struct {
// Incident Service payload for update requests.
Data IncidentServiceUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceUpdateRequest(data IncidentServiceUpdateData) *IncidentServiceUpdateRequest
NewIncidentServiceUpdateRequest instantiates a new IncidentServiceUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceUpdateRequestWithDefaults() *IncidentServiceUpdateRequest
NewIncidentServiceUpdateRequestWithDefaults instantiates a new IncidentServiceUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceUpdateRequest) GetData() IncidentServiceUpdateData
GetData returns the Data field value.
func (o *IncidentServiceUpdateRequest) GetDataOk() (*IncidentServiceUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentServiceUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceUpdateRequest) SetData(v IncidentServiceUpdateData)
SetData sets field value.
func (o *IncidentServiceUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServicesApi service type
type IncidentServicesApi datadog.Service
func NewIncidentServicesApi(client *datadog.APIClient) *IncidentServicesApi
NewIncidentServicesApi Returns NewIncidentServicesApi.
func (a *IncidentServicesApi) CreateIncidentService(ctx _context.Context, body IncidentServiceCreateRequest) (IncidentServiceResponse, *_nethttp.Response, error)
CreateIncidentService Create a new incident service. Creates a new incident service.
func (a *IncidentServicesApi) DeleteIncidentService(ctx _context.Context, serviceId string) (*_nethttp.Response, error)
DeleteIncidentService Delete an existing incident service. Deletes an existing incident service.
func (a *IncidentServicesApi) GetIncidentService(ctx _context.Context, serviceId string, o ...GetIncidentServiceOptionalParameters) (IncidentServiceResponse, *_nethttp.Response, error)
GetIncidentService Get details of an incident service. Get details of an incident service. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services.
func (a *IncidentServicesApi) ListIncidentServices(ctx _context.Context, o ...ListIncidentServicesOptionalParameters) (IncidentServicesResponse, *_nethttp.Response, error)
ListIncidentServices Get a list of all incident services. Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services.
func (a *IncidentServicesApi) UpdateIncidentService(ctx _context.Context, serviceId string, body IncidentServiceUpdateRequest) (IncidentServiceResponse, *_nethttp.Response, error)
UpdateIncidentService Update an existing incident service. Updates an existing incident service. Only provide the attributes which should be updated as this request is a partial update.
IncidentServicesResponse Response with a list of incident service payloads.
type IncidentServicesResponse struct {
// An array of incident services.
Data []IncidentServiceResponseData `json:"data"`
// Included related resources which the user requested.
Included []IncidentServiceIncludedItems `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServicesResponse(data []IncidentServiceResponseData) *IncidentServicesResponse
NewIncidentServicesResponse instantiates a new IncidentServicesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServicesResponseWithDefaults() *IncidentServicesResponse
NewIncidentServicesResponseWithDefaults instantiates a new IncidentServicesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServicesResponse) GetData() []IncidentServiceResponseData
GetData returns the Data field value.
func (o *IncidentServicesResponse) GetDataOk() (*[]IncidentServiceResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentServicesResponse) GetIncluded() []IncidentServiceIncludedItems
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentServicesResponse) GetIncludedOk() (*[]IncidentServiceIncludedItems, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServicesResponse) GetMeta() IncidentResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentServicesResponse) GetMetaOk() (*IncidentResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServicesResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentServicesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentServicesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServicesResponse) SetData(v []IncidentServiceResponseData)
SetData sets field value.
func (o *IncidentServicesResponse) SetIncluded(v []IncidentServiceIncludedItems)
SetIncluded gets a reference to the given []IncidentServiceIncludedItems and assigns it to the Included field.
func (o *IncidentServicesResponse) SetMeta(v IncidentResponseMeta)
SetMeta gets a reference to the given IncidentResponseMeta and assigns it to the Meta field.
func (o *IncidentServicesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamCreateAttributes The incident team's attributes for a create request.
type IncidentTeamCreateAttributes struct {
// Name of the incident team.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamCreateAttributes(name string) *IncidentTeamCreateAttributes
NewIncidentTeamCreateAttributes instantiates a new IncidentTeamCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamCreateAttributesWithDefaults() *IncidentTeamCreateAttributes
NewIncidentTeamCreateAttributesWithDefaults instantiates a new IncidentTeamCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *IncidentTeamCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentTeamCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamCreateAttributes) SetName(v string)
SetName sets field value.
func (o *IncidentTeamCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamCreateData Incident Team data for a create request.
type IncidentTeamCreateData struct {
// The incident team's attributes for a create request.
Attributes *IncidentTeamCreateAttributes `json:"attributes,omitempty"`
// The incident team's relationships.
Relationships *IncidentTeamRelationships `json:"relationships,omitempty"`
// Incident Team resource type.
Type IncidentTeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamCreateData(typeVar IncidentTeamType) *IncidentTeamCreateData
NewIncidentTeamCreateData instantiates a new IncidentTeamCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamCreateDataWithDefaults() *IncidentTeamCreateData
NewIncidentTeamCreateDataWithDefaults instantiates a new IncidentTeamCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamCreateData) GetAttributes() IncidentTeamCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentTeamCreateData) GetAttributesOk() (*IncidentTeamCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamCreateData) GetRelationships() IncidentTeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentTeamCreateData) GetRelationshipsOk() (*IncidentTeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamCreateData) GetType() IncidentTeamType
GetType returns the Type field value.
func (o *IncidentTeamCreateData) GetTypeOk() (*IncidentTeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentTeamCreateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentTeamCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentTeamCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamCreateData) SetAttributes(v IncidentTeamCreateAttributes)
SetAttributes gets a reference to the given IncidentTeamCreateAttributes and assigns it to the Attributes field.
func (o *IncidentTeamCreateData) SetRelationships(v IncidentTeamRelationships)
SetRelationships gets a reference to the given IncidentTeamRelationships and assigns it to the Relationships field.
func (o *IncidentTeamCreateData) SetType(v IncidentTeamType)
SetType sets field value.
func (o *IncidentTeamCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamCreateRequest Create request with an incident team payload.
type IncidentTeamCreateRequest struct {
// Incident Team data for a create request.
Data IncidentTeamCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamCreateRequest(data IncidentTeamCreateData) *IncidentTeamCreateRequest
NewIncidentTeamCreateRequest instantiates a new IncidentTeamCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamCreateRequestWithDefaults() *IncidentTeamCreateRequest
NewIncidentTeamCreateRequestWithDefaults instantiates a new IncidentTeamCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamCreateRequest) GetData() IncidentTeamCreateData
GetData returns the Data field value.
func (o *IncidentTeamCreateRequest) GetDataOk() (*IncidentTeamCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentTeamCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamCreateRequest) SetData(v IncidentTeamCreateData)
SetData sets field value.
func (o *IncidentTeamCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamIncludedItems - An object related to an incident team which is present in the included payload.
type IncidentTeamIncludedItems struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsIncidentTeamIncludedItems(v *User) IncidentTeamIncludedItems
UserAsIncidentTeamIncludedItems is a convenience function that returns User wrapped in IncidentTeamIncludedItems.
func (obj *IncidentTeamIncludedItems) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentTeamIncludedItems) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentTeamIncludedItems) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentTeamRelationships The incident team's relationships.
type IncidentTeamRelationships struct {
// Relationship to user.
CreatedBy *RelationshipToUser `json:"created_by,omitempty"`
// Relationship to user.
LastModifiedBy *RelationshipToUser `json:"last_modified_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamRelationships() *IncidentTeamRelationships
NewIncidentTeamRelationships instantiates a new IncidentTeamRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamRelationshipsWithDefaults() *IncidentTeamRelationships
NewIncidentTeamRelationshipsWithDefaults instantiates a new IncidentTeamRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamRelationships) GetCreatedBy() RelationshipToUser
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *IncidentTeamRelationships) GetCreatedByOk() (*RelationshipToUser, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamRelationships) GetLastModifiedBy() RelationshipToUser
GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (o *IncidentTeamRelationships) GetLastModifiedByOk() (*RelationshipToUser, bool)
GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamRelationships) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *IncidentTeamRelationships) HasLastModifiedBy() bool
HasLastModifiedBy returns a boolean if a field has been set.
func (o IncidentTeamRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamRelationships) SetCreatedBy(v RelationshipToUser)
SetCreatedBy gets a reference to the given RelationshipToUser and assigns it to the CreatedBy field.
func (o *IncidentTeamRelationships) SetLastModifiedBy(v RelationshipToUser)
SetLastModifiedBy gets a reference to the given RelationshipToUser and assigns it to the LastModifiedBy field.
func (o *IncidentTeamRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamResponse Response with an incident team payload.
type IncidentTeamResponse struct {
// Incident Team data from a response.
Data IncidentTeamResponseData `json:"data"`
// Included objects from relationships.
Included []IncidentTeamIncludedItems `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamResponse(data IncidentTeamResponseData) *IncidentTeamResponse
NewIncidentTeamResponse instantiates a new IncidentTeamResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamResponseWithDefaults() *IncidentTeamResponse
NewIncidentTeamResponseWithDefaults instantiates a new IncidentTeamResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamResponse) GetData() IncidentTeamResponseData
GetData returns the Data field value.
func (o *IncidentTeamResponse) GetDataOk() (*IncidentTeamResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentTeamResponse) GetIncluded() []IncidentTeamIncludedItems
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentTeamResponse) GetIncludedOk() (*[]IncidentTeamIncludedItems, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentTeamResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamResponse) SetData(v IncidentTeamResponseData)
SetData sets field value.
func (o *IncidentTeamResponse) SetIncluded(v []IncidentTeamIncludedItems)
SetIncluded gets a reference to the given []IncidentTeamIncludedItems and assigns it to the Included field.
func (o *IncidentTeamResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamResponseAttributes The incident team's attributes from a response.
type IncidentTeamResponseAttributes struct {
// Timestamp of when the incident team was created.
Created *time.Time `json:"created,omitempty"`
// Timestamp of when the incident team was modified.
Modified *time.Time `json:"modified,omitempty"`
// Name of the incident team.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamResponseAttributes() *IncidentTeamResponseAttributes
NewIncidentTeamResponseAttributes instantiates a new IncidentTeamResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamResponseAttributesWithDefaults() *IncidentTeamResponseAttributes
NewIncidentTeamResponseAttributesWithDefaults instantiates a new IncidentTeamResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamResponseAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *IncidentTeamResponseAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseAttributes) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *IncidentTeamResponseAttributes) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *IncidentTeamResponseAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *IncidentTeamResponseAttributes) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *IncidentTeamResponseAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o IncidentTeamResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamResponseAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *IncidentTeamResponseAttributes) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *IncidentTeamResponseAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *IncidentTeamResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamResponseData Incident Team data from a response.
type IncidentTeamResponseData struct {
// The incident team's attributes from a response.
Attributes *IncidentTeamResponseAttributes `json:"attributes,omitempty"`
// The incident team's ID.
Id *string `json:"id,omitempty"`
// The incident team's relationships.
Relationships *IncidentTeamRelationships `json:"relationships,omitempty"`
// Incident Team resource type.
Type *IncidentTeamType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamResponseData() *IncidentTeamResponseData
NewIncidentTeamResponseData instantiates a new IncidentTeamResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamResponseDataWithDefaults() *IncidentTeamResponseData
NewIncidentTeamResponseDataWithDefaults instantiates a new IncidentTeamResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamResponseData) GetAttributes() IncidentTeamResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentTeamResponseData) GetAttributesOk() (*IncidentTeamResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IncidentTeamResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseData) GetRelationships() IncidentTeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentTeamResponseData) GetRelationshipsOk() (*IncidentTeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseData) GetType() IncidentTeamType
GetType returns the Type field value if set, zero value otherwise.
func (o *IncidentTeamResponseData) GetTypeOk() (*IncidentTeamType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentTeamResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *IncidentTeamResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *IncidentTeamResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o IncidentTeamResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamResponseData) SetAttributes(v IncidentTeamResponseAttributes)
SetAttributes gets a reference to the given IncidentTeamResponseAttributes and assigns it to the Attributes field.
func (o *IncidentTeamResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IncidentTeamResponseData) SetRelationships(v IncidentTeamRelationships)
SetRelationships gets a reference to the given IncidentTeamRelationships and assigns it to the Relationships field.
func (o *IncidentTeamResponseData) SetType(v IncidentTeamType)
SetType gets a reference to the given IncidentTeamType and assigns it to the Type field.
func (o *IncidentTeamResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamType Incident Team resource type.
type IncidentTeamType string
List of IncidentTeamType.
const (
INCIDENTTEAMTYPE_TEAMS IncidentTeamType = "teams"
)
func NewIncidentTeamTypeFromValue(v string) (*IncidentTeamType, error)
NewIncidentTeamTypeFromValue returns a pointer to a valid IncidentTeamType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentTeamType) GetAllowedValues() []IncidentTeamType
GetAllowedValues reeturns the list of possible values.
func (v IncidentTeamType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentTeamType) Ptr() *IncidentTeamType
Ptr returns reference to IncidentTeamType value.
func (v *IncidentTeamType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentTeamUpdateAttributes The incident team's attributes for an update request.
type IncidentTeamUpdateAttributes struct {
// Name of the incident team.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamUpdateAttributes(name string) *IncidentTeamUpdateAttributes
NewIncidentTeamUpdateAttributes instantiates a new IncidentTeamUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamUpdateAttributesWithDefaults() *IncidentTeamUpdateAttributes
NewIncidentTeamUpdateAttributesWithDefaults instantiates a new IncidentTeamUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamUpdateAttributes) GetName() string
GetName returns the Name field value.
func (o *IncidentTeamUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentTeamUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamUpdateAttributes) SetName(v string)
SetName sets field value.
func (o *IncidentTeamUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamUpdateData Incident Team data for an update request.
type IncidentTeamUpdateData struct {
// The incident team's attributes for an update request.
Attributes *IncidentTeamUpdateAttributes `json:"attributes,omitempty"`
// The incident team's ID.
Id *string `json:"id,omitempty"`
// The incident team's relationships.
Relationships *IncidentTeamRelationships `json:"relationships,omitempty"`
// Incident Team resource type.
Type IncidentTeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamUpdateData(typeVar IncidentTeamType) *IncidentTeamUpdateData
NewIncidentTeamUpdateData instantiates a new IncidentTeamUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamUpdateDataWithDefaults() *IncidentTeamUpdateData
NewIncidentTeamUpdateDataWithDefaults instantiates a new IncidentTeamUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamUpdateData) GetAttributes() IncidentTeamUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentTeamUpdateData) GetAttributesOk() (*IncidentTeamUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamUpdateData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IncidentTeamUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamUpdateData) GetRelationships() IncidentTeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentTeamUpdateData) GetRelationshipsOk() (*IncidentTeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamUpdateData) GetType() IncidentTeamType
GetType returns the Type field value.
func (o *IncidentTeamUpdateData) GetTypeOk() (*IncidentTeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentTeamUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentTeamUpdateData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *IncidentTeamUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentTeamUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamUpdateData) SetAttributes(v IncidentTeamUpdateAttributes)
SetAttributes gets a reference to the given IncidentTeamUpdateAttributes and assigns it to the Attributes field.
func (o *IncidentTeamUpdateData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IncidentTeamUpdateData) SetRelationships(v IncidentTeamRelationships)
SetRelationships gets a reference to the given IncidentTeamRelationships and assigns it to the Relationships field.
func (o *IncidentTeamUpdateData) SetType(v IncidentTeamType)
SetType sets field value.
func (o *IncidentTeamUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamUpdateRequest Update request with an incident team payload.
type IncidentTeamUpdateRequest struct {
// Incident Team data for an update request.
Data IncidentTeamUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamUpdateRequest(data IncidentTeamUpdateData) *IncidentTeamUpdateRequest
NewIncidentTeamUpdateRequest instantiates a new IncidentTeamUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamUpdateRequestWithDefaults() *IncidentTeamUpdateRequest
NewIncidentTeamUpdateRequestWithDefaults instantiates a new IncidentTeamUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamUpdateRequest) GetData() IncidentTeamUpdateData
GetData returns the Data field value.
func (o *IncidentTeamUpdateRequest) GetDataOk() (*IncidentTeamUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentTeamUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamUpdateRequest) SetData(v IncidentTeamUpdateData)
SetData sets field value.
func (o *IncidentTeamUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamsApi service type
type IncidentTeamsApi datadog.Service
func NewIncidentTeamsApi(client *datadog.APIClient) *IncidentTeamsApi
NewIncidentTeamsApi Returns NewIncidentTeamsApi.
func (a *IncidentTeamsApi) CreateIncidentTeam(ctx _context.Context, body IncidentTeamCreateRequest) (IncidentTeamResponse, *_nethttp.Response, error)
CreateIncidentTeam Create a new incident team. Creates a new incident team.
Deprecated: This API is deprecated.
func (a *IncidentTeamsApi) DeleteIncidentTeam(ctx _context.Context, teamId string) (*_nethttp.Response, error)
DeleteIncidentTeam Delete an existing incident team. Deletes an existing incident team.
Deprecated: This API is deprecated.
func (a *IncidentTeamsApi) GetIncidentTeam(ctx _context.Context, teamId string, o ...GetIncidentTeamOptionalParameters) (IncidentTeamResponse, *_nethttp.Response, error)
GetIncidentTeam Get details of an incident team. Get details of an incident team. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams.
Deprecated: This API is deprecated.
func (a *IncidentTeamsApi) ListIncidentTeams(ctx _context.Context, o ...ListIncidentTeamsOptionalParameters) (IncidentTeamsResponse, *_nethttp.Response, error)
ListIncidentTeams Get a list of all incident teams. Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams.
Deprecated: This API is deprecated.
func (a *IncidentTeamsApi) UpdateIncidentTeam(ctx _context.Context, teamId string, body IncidentTeamUpdateRequest) (IncidentTeamResponse, *_nethttp.Response, error)
UpdateIncidentTeam Update an existing incident team. Updates an existing incident team. Only provide the attributes which should be updated as this request is a partial update.
Deprecated: This API is deprecated.
IncidentTeamsResponse Response with a list of incident team payloads.
type IncidentTeamsResponse struct {
// An array of incident teams.
Data []IncidentTeamResponseData `json:"data"`
// Included related resources which the user requested.
Included []IncidentTeamIncludedItems `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamsResponse(data []IncidentTeamResponseData) *IncidentTeamsResponse
NewIncidentTeamsResponse instantiates a new IncidentTeamsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamsResponseWithDefaults() *IncidentTeamsResponse
NewIncidentTeamsResponseWithDefaults instantiates a new IncidentTeamsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamsResponse) GetData() []IncidentTeamResponseData
GetData returns the Data field value.
func (o *IncidentTeamsResponse) GetDataOk() (*[]IncidentTeamResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentTeamsResponse) GetIncluded() []IncidentTeamIncludedItems
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentTeamsResponse) GetIncludedOk() (*[]IncidentTeamIncludedItems, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamsResponse) GetMeta() IncidentResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentTeamsResponse) GetMetaOk() (*IncidentResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentTeamsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentTeamsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamsResponse) SetData(v []IncidentTeamResponseData)
SetData sets field value.
func (o *IncidentTeamsResponse) SetIncluded(v []IncidentTeamIncludedItems)
SetIncluded gets a reference to the given []IncidentTeamIncludedItems and assigns it to the Included field.
func (o *IncidentTeamsResponse) SetMeta(v IncidentResponseMeta)
SetMeta gets a reference to the given IncidentResponseMeta and assigns it to the Meta field.
func (o *IncidentTeamsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTimelineCellCreateAttributes - The timeline cell's attributes for a create request.
type IncidentTimelineCellCreateAttributes struct {
IncidentTimelineCellMarkdownCreateAttributes *IncidentTimelineCellMarkdownCreateAttributes
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentTimelineCellMarkdownCreateAttributesAsIncidentTimelineCellCreateAttributes(v *IncidentTimelineCellMarkdownCreateAttributes) IncidentTimelineCellCreateAttributes
IncidentTimelineCellMarkdownCreateAttributesAsIncidentTimelineCellCreateAttributes is a convenience function that returns IncidentTimelineCellMarkdownCreateAttributes wrapped in IncidentTimelineCellCreateAttributes.
func (obj *IncidentTimelineCellCreateAttributes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentTimelineCellCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentTimelineCellCreateAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentTimelineCellMarkdownContentType Type of the Markdown timeline cell.
type IncidentTimelineCellMarkdownContentType string
List of IncidentTimelineCellMarkdownContentType.
const (
INCIDENTTIMELINECELLMARKDOWNCONTENTTYPE_MARKDOWN IncidentTimelineCellMarkdownContentType = "markdown"
)
func NewIncidentTimelineCellMarkdownContentTypeFromValue(v string) (*IncidentTimelineCellMarkdownContentType, error)
NewIncidentTimelineCellMarkdownContentTypeFromValue returns a pointer to a valid IncidentTimelineCellMarkdownContentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentTimelineCellMarkdownContentType) GetAllowedValues() []IncidentTimelineCellMarkdownContentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentTimelineCellMarkdownContentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentTimelineCellMarkdownContentType) Ptr() *IncidentTimelineCellMarkdownContentType
Ptr returns reference to IncidentTimelineCellMarkdownContentType value.
func (v *IncidentTimelineCellMarkdownContentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentTimelineCellMarkdownCreateAttributes Timeline cell data for Markdown timeline cells for a create request.
type IncidentTimelineCellMarkdownCreateAttributes struct {
// Type of the Markdown timeline cell.
CellType IncidentTimelineCellMarkdownContentType `json:"cell_type"`
// The Markdown timeline cell contents.
Content IncidentTimelineCellMarkdownCreateAttributesContent `json:"content"`
// A flag indicating whether the timeline cell is important and should be highlighted.
Important *bool `json:"important,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTimelineCellMarkdownCreateAttributes(cellType IncidentTimelineCellMarkdownContentType, content IncidentTimelineCellMarkdownCreateAttributesContent) *IncidentTimelineCellMarkdownCreateAttributes
NewIncidentTimelineCellMarkdownCreateAttributes instantiates a new IncidentTimelineCellMarkdownCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTimelineCellMarkdownCreateAttributesWithDefaults() *IncidentTimelineCellMarkdownCreateAttributes
NewIncidentTimelineCellMarkdownCreateAttributesWithDefaults instantiates a new IncidentTimelineCellMarkdownCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetCellType() IncidentTimelineCellMarkdownContentType
GetCellType returns the CellType field value.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetCellTypeOk() (*IncidentTimelineCellMarkdownContentType, bool)
GetCellTypeOk returns a tuple with the CellType field value and a boolean to check if the value has been set.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetContent() IncidentTimelineCellMarkdownCreateAttributesContent
GetContent returns the Content field value.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetContentOk() (*IncidentTimelineCellMarkdownCreateAttributesContent, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetImportant() bool
GetImportant returns the Important field value if set, zero value otherwise.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetImportantOk() (*bool, bool)
GetImportantOk returns a tuple with the Important field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTimelineCellMarkdownCreateAttributes) HasImportant() bool
HasImportant returns a boolean if a field has been set.
func (o IncidentTimelineCellMarkdownCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTimelineCellMarkdownCreateAttributes) SetCellType(v IncidentTimelineCellMarkdownContentType)
SetCellType sets field value.
func (o *IncidentTimelineCellMarkdownCreateAttributes) SetContent(v IncidentTimelineCellMarkdownCreateAttributesContent)
SetContent sets field value.
func (o *IncidentTimelineCellMarkdownCreateAttributes) SetImportant(v bool)
SetImportant gets a reference to the given bool and assigns it to the Important field.
func (o *IncidentTimelineCellMarkdownCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTimelineCellMarkdownCreateAttributesContent The Markdown timeline cell contents.
type IncidentTimelineCellMarkdownCreateAttributesContent struct {
// The Markdown content of the cell.
Content *string `json:"content,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTimelineCellMarkdownCreateAttributesContent() *IncidentTimelineCellMarkdownCreateAttributesContent
NewIncidentTimelineCellMarkdownCreateAttributesContent instantiates a new IncidentTimelineCellMarkdownCreateAttributesContent object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTimelineCellMarkdownCreateAttributesContentWithDefaults() *IncidentTimelineCellMarkdownCreateAttributesContent
NewIncidentTimelineCellMarkdownCreateAttributesContentWithDefaults instantiates a new IncidentTimelineCellMarkdownCreateAttributesContent object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) GetContent() string
GetContent returns the Content field value if set, zero value otherwise.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) GetContentOk() (*string, bool)
GetContentOk returns a tuple with the Content field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) HasContent() bool
HasContent returns a boolean if a field has been set.
func (o IncidentTimelineCellMarkdownCreateAttributesContent) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) SetContent(v string)
SetContent gets a reference to the given string and assigns it to the Content field.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoAnonymousAssignee Anonymous assignee entity.
type IncidentTodoAnonymousAssignee struct {
// URL for assignee's icon.
Icon string `json:"icon"`
// Anonymous assignee's ID.
Id string `json:"id"`
// Assignee's name.
Name string `json:"name"`
// The source of the anonymous assignee.
Source IncidentTodoAnonymousAssigneeSource `json:"source"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoAnonymousAssignee(icon string, id string, name string, source IncidentTodoAnonymousAssigneeSource) *IncidentTodoAnonymousAssignee
NewIncidentTodoAnonymousAssignee instantiates a new IncidentTodoAnonymousAssignee object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoAnonymousAssigneeWithDefaults() *IncidentTodoAnonymousAssignee
NewIncidentTodoAnonymousAssigneeWithDefaults instantiates a new IncidentTodoAnonymousAssignee object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoAnonymousAssignee) GetIcon() string
GetIcon returns the Icon field value.
func (o *IncidentTodoAnonymousAssignee) GetIconOk() (*string, bool)
GetIconOk returns a tuple with the Icon field value and a boolean to check if the value has been set.
func (o *IncidentTodoAnonymousAssignee) GetId() string
GetId returns the Id field value.
func (o *IncidentTodoAnonymousAssignee) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentTodoAnonymousAssignee) GetName() string
GetName returns the Name field value.
func (o *IncidentTodoAnonymousAssignee) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *IncidentTodoAnonymousAssignee) GetSource() IncidentTodoAnonymousAssigneeSource
GetSource returns the Source field value.
func (o *IncidentTodoAnonymousAssignee) GetSourceOk() (*IncidentTodoAnonymousAssigneeSource, bool)
GetSourceOk returns a tuple with the Source field value and a boolean to check if the value has been set.
func (o IncidentTodoAnonymousAssignee) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoAnonymousAssignee) SetIcon(v string)
SetIcon sets field value.
func (o *IncidentTodoAnonymousAssignee) SetId(v string)
SetId sets field value.
func (o *IncidentTodoAnonymousAssignee) SetName(v string)
SetName sets field value.
func (o *IncidentTodoAnonymousAssignee) SetSource(v IncidentTodoAnonymousAssigneeSource)
SetSource sets field value.
func (o *IncidentTodoAnonymousAssignee) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoAnonymousAssigneeSource The source of the anonymous assignee.
type IncidentTodoAnonymousAssigneeSource string
List of IncidentTodoAnonymousAssigneeSource.
const (
INCIDENTTODOANONYMOUSASSIGNEESOURCE_SLACK IncidentTodoAnonymousAssigneeSource = "slack"
INCIDENTTODOANONYMOUSASSIGNEESOURCE_MICROSOFT_TEAMS IncidentTodoAnonymousAssigneeSource = "microsoft_teams"
)
func NewIncidentTodoAnonymousAssigneeSourceFromValue(v string) (*IncidentTodoAnonymousAssigneeSource, error)
NewIncidentTodoAnonymousAssigneeSourceFromValue returns a pointer to a valid IncidentTodoAnonymousAssigneeSource for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentTodoAnonymousAssigneeSource) GetAllowedValues() []IncidentTodoAnonymousAssigneeSource
GetAllowedValues reeturns the list of possible values.
func (v IncidentTodoAnonymousAssigneeSource) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentTodoAnonymousAssigneeSource) Ptr() *IncidentTodoAnonymousAssigneeSource
Ptr returns reference to IncidentTodoAnonymousAssigneeSource value.
func (v *IncidentTodoAnonymousAssigneeSource) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentTodoAssignee - A todo assignee.
type IncidentTodoAssignee struct {
IncidentTodoAssigneeHandle *string
IncidentTodoAnonymousAssignee *IncidentTodoAnonymousAssignee
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentTodoAnonymousAssigneeAsIncidentTodoAssignee(v *IncidentTodoAnonymousAssignee) IncidentTodoAssignee
IncidentTodoAnonymousAssigneeAsIncidentTodoAssignee is a convenience function that returns IncidentTodoAnonymousAssignee wrapped in IncidentTodoAssignee.
func IncidentTodoAssigneeHandleAsIncidentTodoAssignee(v *string) IncidentTodoAssignee
IncidentTodoAssigneeHandleAsIncidentTodoAssignee is a convenience function that returns string wrapped in IncidentTodoAssignee.
func (obj *IncidentTodoAssignee) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentTodoAssignee) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentTodoAssignee) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentTodoAttributes Incident todo's attributes.
type IncidentTodoAttributes struct {
// Array of todo assignees.
Assignees []IncidentTodoAssignee `json:"assignees"`
// Timestamp when the todo was completed.
Completed datadog.NullableString `json:"completed,omitempty"`
// The follow-up task's content.
Content string `json:"content"`
// Timestamp when the todo should be completed by.
DueDate datadog.NullableString `json:"due_date,omitempty"`
// UUID of the incident this todo is connected to.
IncidentId *string `json:"incident_id,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoAttributes(assignees []IncidentTodoAssignee, content string) *IncidentTodoAttributes
NewIncidentTodoAttributes instantiates a new IncidentTodoAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoAttributesWithDefaults() *IncidentTodoAttributes
NewIncidentTodoAttributesWithDefaults instantiates a new IncidentTodoAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoAttributes) GetAssignees() []IncidentTodoAssignee
GetAssignees returns the Assignees field value.
func (o *IncidentTodoAttributes) GetAssigneesOk() (*[]IncidentTodoAssignee, bool)
GetAssigneesOk returns a tuple with the Assignees field value and a boolean to check if the value has been set.
func (o *IncidentTodoAttributes) GetCompleted() string
GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentTodoAttributes) GetCompletedOk() (*string, bool)
GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentTodoAttributes) GetContent() string
GetContent returns the Content field value.
func (o *IncidentTodoAttributes) GetContentOk() (*string, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (o *IncidentTodoAttributes) GetDueDate() string
GetDueDate returns the DueDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentTodoAttributes) GetDueDateOk() (*string, bool)
GetDueDateOk returns a tuple with the DueDate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentTodoAttributes) GetIncidentId() string
GetIncidentId returns the IncidentId field value if set, zero value otherwise.
func (o *IncidentTodoAttributes) GetIncidentIdOk() (*string, bool)
GetIncidentIdOk returns a tuple with the IncidentId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTodoAttributes) HasCompleted() bool
HasCompleted returns a boolean if a field has been set.
func (o *IncidentTodoAttributes) HasDueDate() bool
HasDueDate returns a boolean if a field has been set.
func (o *IncidentTodoAttributes) HasIncidentId() bool
HasIncidentId returns a boolean if a field has been set.
func (o IncidentTodoAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoAttributes) SetAssignees(v []IncidentTodoAssignee)
SetAssignees sets field value.
func (o *IncidentTodoAttributes) SetCompleted(v string)
SetCompleted gets a reference to the given datadog.NullableString and assigns it to the Completed field.
func (o *IncidentTodoAttributes) SetCompletedNil()
SetCompletedNil sets the value for Completed to be an explicit nil.
func (o *IncidentTodoAttributes) SetContent(v string)
SetContent sets field value.
func (o *IncidentTodoAttributes) SetDueDate(v string)
SetDueDate gets a reference to the given datadog.NullableString and assigns it to the DueDate field.
func (o *IncidentTodoAttributes) SetDueDateNil()
SetDueDateNil sets the value for DueDate to be an explicit nil.
func (o *IncidentTodoAttributes) SetIncidentId(v string)
SetIncidentId gets a reference to the given string and assigns it to the IncidentId field.
func (o *IncidentTodoAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentTodoAttributes) UnsetCompleted()
UnsetCompleted ensures that no value is present for Completed, not even an explicit nil.
func (o *IncidentTodoAttributes) UnsetDueDate()
UnsetDueDate ensures that no value is present for DueDate, not even an explicit nil.
IncidentTodoCreateData Incident todo data for a create request.
type IncidentTodoCreateData struct {
// Incident todo's attributes.
Attributes IncidentTodoAttributes `json:"attributes"`
// Todo resource type.
Type IncidentTodoType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoCreateData(attributes IncidentTodoAttributes, typeVar IncidentTodoType) *IncidentTodoCreateData
NewIncidentTodoCreateData instantiates a new IncidentTodoCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoCreateDataWithDefaults() *IncidentTodoCreateData
NewIncidentTodoCreateDataWithDefaults instantiates a new IncidentTodoCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoCreateData) GetAttributes() IncidentTodoAttributes
GetAttributes returns the Attributes field value.
func (o *IncidentTodoCreateData) GetAttributesOk() (*IncidentTodoAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *IncidentTodoCreateData) GetType() IncidentTodoType
GetType returns the Type field value.
func (o *IncidentTodoCreateData) GetTypeOk() (*IncidentTodoType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o IncidentTodoCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoCreateData) SetAttributes(v IncidentTodoAttributes)
SetAttributes sets field value.
func (o *IncidentTodoCreateData) SetType(v IncidentTodoType)
SetType sets field value.
func (o *IncidentTodoCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoCreateRequest Create request for an incident todo.
type IncidentTodoCreateRequest struct {
// Incident todo data for a create request.
Data IncidentTodoCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoCreateRequest(data IncidentTodoCreateData) *IncidentTodoCreateRequest
NewIncidentTodoCreateRequest instantiates a new IncidentTodoCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoCreateRequestWithDefaults() *IncidentTodoCreateRequest
NewIncidentTodoCreateRequestWithDefaults instantiates a new IncidentTodoCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoCreateRequest) GetData() IncidentTodoCreateData
GetData returns the Data field value.
func (o *IncidentTodoCreateRequest) GetDataOk() (*IncidentTodoCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentTodoCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoCreateRequest) SetData(v IncidentTodoCreateData)
SetData sets field value.
func (o *IncidentTodoCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoListResponse Response with a list of incident todos.
type IncidentTodoListResponse struct {
// An array of incident todos.
Data []IncidentTodoResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentTodoResponseIncludedItem `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoListResponse(data []IncidentTodoResponseData) *IncidentTodoListResponse
NewIncidentTodoListResponse instantiates a new IncidentTodoListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoListResponseWithDefaults() *IncidentTodoListResponse
NewIncidentTodoListResponseWithDefaults instantiates a new IncidentTodoListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoListResponse) GetData() []IncidentTodoResponseData
GetData returns the Data field value.
func (o *IncidentTodoListResponse) GetDataOk() (*[]IncidentTodoResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentTodoListResponse) GetIncluded() []IncidentTodoResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentTodoListResponse) GetIncludedOk() (*[]IncidentTodoResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTodoListResponse) GetMeta() IncidentResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentTodoListResponse) GetMetaOk() (*IncidentResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTodoListResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentTodoListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentTodoListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoListResponse) SetData(v []IncidentTodoResponseData)
SetData sets field value.
func (o *IncidentTodoListResponse) SetIncluded(v []IncidentTodoResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentTodoResponseIncludedItem and assigns it to the Included field.
func (o *IncidentTodoListResponse) SetMeta(v IncidentResponseMeta)
SetMeta gets a reference to the given IncidentResponseMeta and assigns it to the Meta field.
func (o *IncidentTodoListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoPatchData Incident todo data for a patch request.
type IncidentTodoPatchData struct {
// Incident todo's attributes.
Attributes IncidentTodoAttributes `json:"attributes"`
// Todo resource type.
Type IncidentTodoType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoPatchData(attributes IncidentTodoAttributes, typeVar IncidentTodoType) *IncidentTodoPatchData
NewIncidentTodoPatchData instantiates a new IncidentTodoPatchData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoPatchDataWithDefaults() *IncidentTodoPatchData
NewIncidentTodoPatchDataWithDefaults instantiates a new IncidentTodoPatchData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoPatchData) GetAttributes() IncidentTodoAttributes
GetAttributes returns the Attributes field value.
func (o *IncidentTodoPatchData) GetAttributesOk() (*IncidentTodoAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *IncidentTodoPatchData) GetType() IncidentTodoType
GetType returns the Type field value.
func (o *IncidentTodoPatchData) GetTypeOk() (*IncidentTodoType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o IncidentTodoPatchData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoPatchData) SetAttributes(v IncidentTodoAttributes)
SetAttributes sets field value.
func (o *IncidentTodoPatchData) SetType(v IncidentTodoType)
SetType sets field value.
func (o *IncidentTodoPatchData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoPatchRequest Patch request for an incident todo.
type IncidentTodoPatchRequest struct {
// Incident todo data for a patch request.
Data IncidentTodoPatchData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoPatchRequest(data IncidentTodoPatchData) *IncidentTodoPatchRequest
NewIncidentTodoPatchRequest instantiates a new IncidentTodoPatchRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoPatchRequestWithDefaults() *IncidentTodoPatchRequest
NewIncidentTodoPatchRequestWithDefaults instantiates a new IncidentTodoPatchRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoPatchRequest) GetData() IncidentTodoPatchData
GetData returns the Data field value.
func (o *IncidentTodoPatchRequest) GetDataOk() (*IncidentTodoPatchData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentTodoPatchRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoPatchRequest) SetData(v IncidentTodoPatchData)
SetData sets field value.
func (o *IncidentTodoPatchRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoResponse Response with an incident todo.
type IncidentTodoResponse struct {
// Incident todo response data.
Data IncidentTodoResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentTodoResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoResponse(data IncidentTodoResponseData) *IncidentTodoResponse
NewIncidentTodoResponse instantiates a new IncidentTodoResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoResponseWithDefaults() *IncidentTodoResponse
NewIncidentTodoResponseWithDefaults instantiates a new IncidentTodoResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoResponse) GetData() IncidentTodoResponseData
GetData returns the Data field value.
func (o *IncidentTodoResponse) GetDataOk() (*IncidentTodoResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentTodoResponse) GetIncluded() []IncidentTodoResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentTodoResponse) GetIncludedOk() (*[]IncidentTodoResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTodoResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentTodoResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoResponse) SetData(v IncidentTodoResponseData)
SetData sets field value.
func (o *IncidentTodoResponse) SetIncluded(v []IncidentTodoResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentTodoResponseIncludedItem and assigns it to the Included field.
func (o *IncidentTodoResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoResponseData Incident todo response data.
type IncidentTodoResponseData struct {
// Incident todo's attributes.
Attributes *IncidentTodoAttributes `json:"attributes,omitempty"`
// The incident todo's ID.
Id string `json:"id"`
// Todo resource type.
Type IncidentTodoType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTodoResponseData(id string, typeVar IncidentTodoType) *IncidentTodoResponseData
NewIncidentTodoResponseData instantiates a new IncidentTodoResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTodoResponseDataWithDefaults() *IncidentTodoResponseData
NewIncidentTodoResponseDataWithDefaults instantiates a new IncidentTodoResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTodoResponseData) GetAttributes() IncidentTodoAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentTodoResponseData) GetAttributesOk() (*IncidentTodoAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTodoResponseData) GetId() string
GetId returns the Id field value.
func (o *IncidentTodoResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentTodoResponseData) GetType() IncidentTodoType
GetType returns the Type field value.
func (o *IncidentTodoResponseData) GetTypeOk() (*IncidentTodoType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentTodoResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o IncidentTodoResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTodoResponseData) SetAttributes(v IncidentTodoAttributes)
SetAttributes gets a reference to the given IncidentTodoAttributes and assigns it to the Attributes field.
func (o *IncidentTodoResponseData) SetId(v string)
SetId sets field value.
func (o *IncidentTodoResponseData) SetType(v IncidentTodoType)
SetType sets field value.
func (o *IncidentTodoResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTodoResponseIncludedItem - An object related to an incident todo that is included in the response.
type IncidentTodoResponseIncludedItem struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsIncidentTodoResponseIncludedItem(v *User) IncidentTodoResponseIncludedItem
UserAsIncidentTodoResponseIncludedItem is a convenience function that returns User wrapped in IncidentTodoResponseIncludedItem.
func (obj *IncidentTodoResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentTodoResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentTodoResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentTodoType Todo resource type.
type IncidentTodoType string
List of IncidentTodoType.
const (
INCIDENTTODOTYPE_INCIDENT_TODOS IncidentTodoType = "incident_todos"
)
func NewIncidentTodoTypeFromValue(v string) (*IncidentTodoType, error)
NewIncidentTodoTypeFromValue returns a pointer to a valid IncidentTodoType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentTodoType) GetAllowedValues() []IncidentTodoType
GetAllowedValues reeturns the list of possible values.
func (v IncidentTodoType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentTodoType) Ptr() *IncidentTodoType
Ptr returns reference to IncidentTodoType value.
func (v *IncidentTodoType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentType Incident resource type.
type IncidentType string
List of IncidentType.
const (
INCIDENTTYPE_INCIDENTS IncidentType = "incidents"
)
func NewIncidentTypeFromValue(v string) (*IncidentType, error)
NewIncidentTypeFromValue returns a pointer to a valid IncidentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentType) GetAllowedValues() []IncidentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentType) Ptr() *IncidentType
Ptr returns reference to IncidentType value.
func (v *IncidentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentUpdateAttributes The incident's attributes for an update request.
type IncidentUpdateAttributes struct {
// Timestamp when customers were no longer impacted by the incident.
CustomerImpactEnd datadog.NullableTime `json:"customer_impact_end,omitempty"`
// A summary of the impact customers experienced during the incident.
CustomerImpactScope *string `json:"customer_impact_scope,omitempty"`
// Timestamp when customers began being impacted by the incident.
CustomerImpactStart datadog.NullableTime `json:"customer_impact_start,omitempty"`
// A flag indicating whether the incident caused customer impact.
CustomerImpacted *bool `json:"customer_impacted,omitempty"`
// Timestamp when the incident was detected.
Detected datadog.NullableTime `json:"detected,omitempty"`
// A condensed view of the user-defined fields for which to update selections.
Fields map[string]IncidentFieldAttributes `json:"fields,omitempty"`
// Notification handles that will be notified of the incident during update.
NotificationHandles []IncidentNotificationHandle `json:"notification_handles,omitempty"`
// The title of the incident, which summarizes what happened.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentUpdateAttributes() *IncidentUpdateAttributes
NewIncidentUpdateAttributes instantiates a new IncidentUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentUpdateAttributesWithDefaults() *IncidentUpdateAttributes
NewIncidentUpdateAttributesWithDefaults instantiates a new IncidentUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentUpdateAttributes) GetCustomerImpactEnd() time.Time
GetCustomerImpactEnd returns the CustomerImpactEnd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentUpdateAttributes) GetCustomerImpactEndOk() (*time.Time, bool)
GetCustomerImpactEndOk returns a tuple with the CustomerImpactEnd field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentUpdateAttributes) GetCustomerImpactScope() string
GetCustomerImpactScope returns the CustomerImpactScope field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetCustomerImpactScopeOk() (*string, bool)
GetCustomerImpactScopeOk returns a tuple with the CustomerImpactScope field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) GetCustomerImpactStart() time.Time
GetCustomerImpactStart returns the CustomerImpactStart field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentUpdateAttributes) GetCustomerImpactStartOk() (*time.Time, bool)
GetCustomerImpactStartOk returns a tuple with the CustomerImpactStart field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentUpdateAttributes) GetCustomerImpacted() bool
GetCustomerImpacted returns the CustomerImpacted field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetCustomerImpactedOk() (*bool, bool)
GetCustomerImpactedOk returns a tuple with the CustomerImpacted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) GetDetected() time.Time
GetDetected returns the Detected field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentUpdateAttributes) GetDetectedOk() (*time.Time, bool)
GetDetectedOk returns a tuple with the Detected field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentUpdateAttributes) GetFields() map[string]IncidentFieldAttributes
GetFields returns the Fields field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetFieldsOk() (*map[string]IncidentFieldAttributes, bool)
GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) GetNotificationHandles() []IncidentNotificationHandle
GetNotificationHandles returns the NotificationHandles field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetNotificationHandlesOk() (*[]IncidentNotificationHandle, bool)
GetNotificationHandlesOk returns a tuple with the NotificationHandles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) HasCustomerImpactEnd() bool
HasCustomerImpactEnd returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasCustomerImpactScope() bool
HasCustomerImpactScope returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasCustomerImpactStart() bool
HasCustomerImpactStart returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasCustomerImpacted() bool
HasCustomerImpacted returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasDetected() bool
HasDetected returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasFields() bool
HasFields returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasNotificationHandles() bool
HasNotificationHandles returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o IncidentUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentUpdateAttributes) SetCustomerImpactEnd(v time.Time)
SetCustomerImpactEnd gets a reference to the given datadog.NullableTime and assigns it to the CustomerImpactEnd field.
func (o *IncidentUpdateAttributes) SetCustomerImpactEndNil()
SetCustomerImpactEndNil sets the value for CustomerImpactEnd to be an explicit nil.
func (o *IncidentUpdateAttributes) SetCustomerImpactScope(v string)
SetCustomerImpactScope gets a reference to the given string and assigns it to the CustomerImpactScope field.
func (o *IncidentUpdateAttributes) SetCustomerImpactStart(v time.Time)
SetCustomerImpactStart gets a reference to the given datadog.NullableTime and assigns it to the CustomerImpactStart field.
func (o *IncidentUpdateAttributes) SetCustomerImpactStartNil()
SetCustomerImpactStartNil sets the value for CustomerImpactStart to be an explicit nil.
func (o *IncidentUpdateAttributes) SetCustomerImpacted(v bool)
SetCustomerImpacted gets a reference to the given bool and assigns it to the CustomerImpacted field.
func (o *IncidentUpdateAttributes) SetDetected(v time.Time)
SetDetected gets a reference to the given datadog.NullableTime and assigns it to the Detected field.
func (o *IncidentUpdateAttributes) SetDetectedNil()
SetDetectedNil sets the value for Detected to be an explicit nil.
func (o *IncidentUpdateAttributes) SetFields(v map[string]IncidentFieldAttributes)
SetFields gets a reference to the given map[string]IncidentFieldAttributes and assigns it to the Fields field.
func (o *IncidentUpdateAttributes) SetNotificationHandles(v []IncidentNotificationHandle)
SetNotificationHandles gets a reference to the given []IncidentNotificationHandle and assigns it to the NotificationHandles field.
func (o *IncidentUpdateAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *IncidentUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentUpdateAttributes) UnsetCustomerImpactEnd()
UnsetCustomerImpactEnd ensures that no value is present for CustomerImpactEnd, not even an explicit nil.
func (o *IncidentUpdateAttributes) UnsetCustomerImpactStart()
UnsetCustomerImpactStart ensures that no value is present for CustomerImpactStart, not even an explicit nil.
func (o *IncidentUpdateAttributes) UnsetDetected()
UnsetDetected ensures that no value is present for Detected, not even an explicit nil.
IncidentUpdateData Incident data for an update request.
type IncidentUpdateData struct {
// The incident's attributes for an update request.
Attributes *IncidentUpdateAttributes `json:"attributes,omitempty"`
// The incident's ID.
Id string `json:"id"`
// The incident's relationships for an update request.
Relationships *IncidentUpdateRelationships `json:"relationships,omitempty"`
// Incident resource type.
Type IncidentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentUpdateData(id string, typeVar IncidentType) *IncidentUpdateData
NewIncidentUpdateData instantiates a new IncidentUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentUpdateDataWithDefaults() *IncidentUpdateData
NewIncidentUpdateDataWithDefaults instantiates a new IncidentUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentUpdateData) GetAttributes() IncidentUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentUpdateData) GetAttributesOk() (*IncidentUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateData) GetId() string
GetId returns the Id field value.
func (o *IncidentUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentUpdateData) GetRelationships() IncidentUpdateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentUpdateData) GetRelationshipsOk() (*IncidentUpdateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateData) GetType() IncidentType
GetType returns the Type field value.
func (o *IncidentUpdateData) GetTypeOk() (*IncidentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentUpdateData) SetAttributes(v IncidentUpdateAttributes)
SetAttributes gets a reference to the given IncidentUpdateAttributes and assigns it to the Attributes field.
func (o *IncidentUpdateData) SetId(v string)
SetId sets field value.
func (o *IncidentUpdateData) SetRelationships(v IncidentUpdateRelationships)
SetRelationships gets a reference to the given IncidentUpdateRelationships and assigns it to the Relationships field.
func (o *IncidentUpdateData) SetType(v IncidentType)
SetType sets field value.
func (o *IncidentUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentUpdateRelationships The incident's relationships for an update request.
type IncidentUpdateRelationships struct {
// Relationship to user.
CommanderUser *NullableRelationshipToUser `json:"commander_user,omitempty"`
// A relationship reference for multiple integration metadata objects.
Integrations *RelationshipToIncidentIntegrationMetadatas `json:"integrations,omitempty"`
// A relationship reference for postmortems.
Postmortem *RelationshipToIncidentPostmortem `json:"postmortem,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentUpdateRelationships() *IncidentUpdateRelationships
NewIncidentUpdateRelationships instantiates a new IncidentUpdateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentUpdateRelationshipsWithDefaults() *IncidentUpdateRelationships
NewIncidentUpdateRelationshipsWithDefaults instantiates a new IncidentUpdateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentUpdateRelationships) GetCommanderUser() NullableRelationshipToUser
GetCommanderUser returns the CommanderUser field value if set, zero value otherwise.
func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)
GetCommanderUserOk returns a tuple with the CommanderUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateRelationships) GetIntegrations() RelationshipToIncidentIntegrationMetadatas
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *IncidentUpdateRelationships) GetIntegrationsOk() (*RelationshipToIncidentIntegrationMetadatas, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateRelationships) GetPostmortem() RelationshipToIncidentPostmortem
GetPostmortem returns the Postmortem field value if set, zero value otherwise.
func (o *IncidentUpdateRelationships) GetPostmortemOk() (*RelationshipToIncidentPostmortem, bool)
GetPostmortemOk returns a tuple with the Postmortem field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateRelationships) HasCommanderUser() bool
HasCommanderUser returns a boolean if a field has been set.
func (o *IncidentUpdateRelationships) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *IncidentUpdateRelationships) HasPostmortem() bool
HasPostmortem returns a boolean if a field has been set.
func (o IncidentUpdateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentUpdateRelationships) SetCommanderUser(v NullableRelationshipToUser)
SetCommanderUser gets a reference to the given NullableRelationshipToUser and assigns it to the CommanderUser field.
func (o *IncidentUpdateRelationships) SetIntegrations(v RelationshipToIncidentIntegrationMetadatas)
SetIntegrations gets a reference to the given RelationshipToIncidentIntegrationMetadatas and assigns it to the Integrations field.
func (o *IncidentUpdateRelationships) SetPostmortem(v RelationshipToIncidentPostmortem)
SetPostmortem gets a reference to the given RelationshipToIncidentPostmortem and assigns it to the Postmortem field.
func (o *IncidentUpdateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentUpdateRequest Update request for an incident.
type IncidentUpdateRequest struct {
// Incident data for an update request.
Data IncidentUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentUpdateRequest(data IncidentUpdateData) *IncidentUpdateRequest
NewIncidentUpdateRequest instantiates a new IncidentUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentUpdateRequestWithDefaults() *IncidentUpdateRequest
NewIncidentUpdateRequestWithDefaults instantiates a new IncidentUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentUpdateRequest) GetData() IncidentUpdateData
GetData returns the Data field value.
func (o *IncidentUpdateRequest) GetDataOk() (*IncidentUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentUpdateRequest) SetData(v IncidentUpdateData)
SetData sets field value.
func (o *IncidentUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentsApi service type
type IncidentsApi datadog.Service
func NewIncidentsApi(client *datadog.APIClient) *IncidentsApi
NewIncidentsApi Returns NewIncidentsApi.
func (a *IncidentsApi) CreateIncident(ctx _context.Context, body IncidentCreateRequest) (IncidentResponse, *_nethttp.Response, error)
CreateIncident Create an incident. Create an incident.
func (a *IncidentsApi) CreateIncidentIntegration(ctx _context.Context, incidentId string, body IncidentIntegrationMetadataCreateRequest) (IncidentIntegrationMetadataResponse, *_nethttp.Response, error)
CreateIncidentIntegration Create an incident integration metadata. Create an incident integration metadata.
func (a *IncidentsApi) CreateIncidentTodo(ctx _context.Context, incidentId string, body IncidentTodoCreateRequest) (IncidentTodoResponse, *_nethttp.Response, error)
CreateIncidentTodo Create an incident todo. Create an incident todo.
func (a *IncidentsApi) DeleteIncident(ctx _context.Context, incidentId string) (*_nethttp.Response, error)
DeleteIncident Delete an existing incident. Deletes an existing incident from the users organization.
func (a *IncidentsApi) DeleteIncidentIntegration(ctx _context.Context, incidentId string, integrationMetadataId string) (*_nethttp.Response, error)
DeleteIncidentIntegration Delete an incident integration metadata. Delete an incident integration metadata.
func (a *IncidentsApi) DeleteIncidentTodo(ctx _context.Context, incidentId string, todoId string) (*_nethttp.Response, error)
DeleteIncidentTodo Delete an incident todo. Delete an incident todo.
func (a *IncidentsApi) GetIncident(ctx _context.Context, incidentId string, o ...GetIncidentOptionalParameters) (IncidentResponse, *_nethttp.Response, error)
GetIncident Get the details of an incident. Get the details of an incident by `incident_id`.
func (a *IncidentsApi) GetIncidentIntegration(ctx _context.Context, incidentId string, integrationMetadataId string) (IncidentIntegrationMetadataResponse, *_nethttp.Response, error)
GetIncidentIntegration Get incident integration metadata details. Get incident integration metadata details.
func (a *IncidentsApi) GetIncidentTodo(ctx _context.Context, incidentId string, todoId string) (IncidentTodoResponse, *_nethttp.Response, error)
GetIncidentTodo Get incident todo details. Get incident todo details.
func (a *IncidentsApi) ListIncidentAttachments(ctx _context.Context, incidentId string, o ...ListIncidentAttachmentsOptionalParameters) (IncidentAttachmentsResponse, *_nethttp.Response, error)
ListIncidentAttachments Get a list of attachments. Get all attachments for a given incident.
func (a *IncidentsApi) ListIncidentIntegrations(ctx _context.Context, incidentId string) (IncidentIntegrationMetadataListResponse, *_nethttp.Response, error)
ListIncidentIntegrations Get a list of an incident's integration metadata. Get all integration metadata for an incident.
func (a *IncidentsApi) ListIncidentTodos(ctx _context.Context, incidentId string) (IncidentTodoListResponse, *_nethttp.Response, error)
ListIncidentTodos Get a list of an incident's todos. Get all todos for an incident.
func (a *IncidentsApi) ListIncidents(ctx _context.Context, o ...ListIncidentsOptionalParameters) (IncidentsResponse, *_nethttp.Response, error)
ListIncidents Get a list of incidents. Get all incidents for the user's organization.
func (a *IncidentsApi) ListIncidentsWithPagination(ctx _context.Context, o ...ListIncidentsOptionalParameters) (<-chan datadog.PaginationResult[IncidentResponseData], func())
ListIncidentsWithPagination provides a paginated version of ListIncidents returning a channel with all items.
func (a *IncidentsApi) SearchIncidents(ctx _context.Context, query string, o ...SearchIncidentsOptionalParameters) (IncidentSearchResponse, *_nethttp.Response, error)
SearchIncidents Search for incidents. Search for incidents matching a certain query.
func (a *IncidentsApi) SearchIncidentsWithPagination(ctx _context.Context, query string, o ...SearchIncidentsOptionalParameters) (<-chan datadog.PaginationResult[IncidentSearchResponseIncidentsData], func())
SearchIncidentsWithPagination provides a paginated version of SearchIncidents returning a channel with all items.
func (a *IncidentsApi) UpdateIncident(ctx _context.Context, incidentId string, body IncidentUpdateRequest, o ...UpdateIncidentOptionalParameters) (IncidentResponse, *_nethttp.Response, error)
UpdateIncident Update an existing incident. Updates an incident. Provide only the attributes that should be updated as this request is a partial update.
func (a *IncidentsApi) UpdateIncidentAttachments(ctx _context.Context, incidentId string, body IncidentAttachmentUpdateRequest, o ...UpdateIncidentAttachmentsOptionalParameters) (IncidentAttachmentUpdateResponse, *_nethttp.Response, error)
UpdateIncidentAttachments Create, update, and delete incident attachments. The bulk update endpoint for creating, updating, and deleting attachments for a given incident.
func (a *IncidentsApi) UpdateIncidentIntegration(ctx _context.Context, incidentId string, integrationMetadataId string, body IncidentIntegrationMetadataPatchRequest) (IncidentIntegrationMetadataResponse, *_nethttp.Response, error)
UpdateIncidentIntegration Update an existing incident integration metadata. Update an existing incident integration metadata.
func (a *IncidentsApi) UpdateIncidentTodo(ctx _context.Context, incidentId string, todoId string, body IncidentTodoPatchRequest) (IncidentTodoResponse, *_nethttp.Response, error)
UpdateIncidentTodo Update an incident todo. Update an incident todo.
IncidentsResponse Response with a list of incidents.
type IncidentsResponse struct {
// An array of incidents.
Data []IncidentResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentResponseIncludedItem `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentsResponse(data []IncidentResponseData) *IncidentsResponse
NewIncidentsResponse instantiates a new IncidentsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentsResponseWithDefaults() *IncidentsResponse
NewIncidentsResponseWithDefaults instantiates a new IncidentsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentsResponse) GetData() []IncidentResponseData
GetData returns the Data field value.
func (o *IncidentsResponse) GetDataOk() (*[]IncidentResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentsResponse) GetIncluded() []IncidentResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentsResponse) GetIncludedOk() (*[]IncidentResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentsResponse) GetMeta() IncidentResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentsResponse) GetMetaOk() (*IncidentResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentsResponse) SetData(v []IncidentResponseData)
SetData sets field value.
func (o *IncidentsResponse) SetIncluded(v []IncidentResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentResponseIncludedItem and assigns it to the Included field.
func (o *IncidentsResponse) SetMeta(v IncidentResponseMeta)
SetMeta gets a reference to the given IncidentResponseMeta and assigns it to the Meta field.
func (o *IncidentsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IntakePayloadAccepted The payload accepted for intake.
type IntakePayloadAccepted struct {
// A list of errors.
Errors []string `json:"errors,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIntakePayloadAccepted() *IntakePayloadAccepted
NewIntakePayloadAccepted instantiates a new IntakePayloadAccepted object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIntakePayloadAcceptedWithDefaults() *IntakePayloadAccepted
NewIntakePayloadAcceptedWithDefaults instantiates a new IntakePayloadAccepted object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IntakePayloadAccepted) GetErrors() []string
GetErrors returns the Errors field value if set, zero value otherwise.
func (o *IntakePayloadAccepted) GetErrorsOk() (*[]string, bool)
GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IntakePayloadAccepted) HasErrors() bool
HasErrors returns a boolean if a field has been set.
func (o IntakePayloadAccepted) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IntakePayloadAccepted) SetErrors(v []string)
SetErrors gets a reference to the given []string and assigns it to the Errors field.
func (o *IntakePayloadAccepted) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
JSONAPIErrorItem API error response body
type JSONAPIErrorItem struct {
// A human-readable explanation specific to this occurrence of the error.
Detail *string `json:"detail,omitempty"`
// Status code of the response.
Status *string `json:"status,omitempty"`
// Short human-readable summary of the error.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewJSONAPIErrorItem() *JSONAPIErrorItem
NewJSONAPIErrorItem instantiates a new JSONAPIErrorItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewJSONAPIErrorItemWithDefaults() *JSONAPIErrorItem
NewJSONAPIErrorItemWithDefaults instantiates a new JSONAPIErrorItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *JSONAPIErrorItem) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *JSONAPIErrorItem) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *JSONAPIErrorItem) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *JSONAPIErrorItem) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *JSONAPIErrorItem) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *JSONAPIErrorItem) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *JSONAPIErrorItem) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *JSONAPIErrorItem) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *JSONAPIErrorItem) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o JSONAPIErrorItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *JSONAPIErrorItem) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *JSONAPIErrorItem) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *JSONAPIErrorItem) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *JSONAPIErrorItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
JSONAPIErrorResponse API error response.
type JSONAPIErrorResponse struct {
// A list of errors.
Errors []JSONAPIErrorItem `json:"errors"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewJSONAPIErrorResponse(errors []JSONAPIErrorItem) *JSONAPIErrorResponse
NewJSONAPIErrorResponse instantiates a new JSONAPIErrorResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewJSONAPIErrorResponseWithDefaults() *JSONAPIErrorResponse
NewJSONAPIErrorResponseWithDefaults instantiates a new JSONAPIErrorResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *JSONAPIErrorResponse) GetErrors() []JSONAPIErrorItem
GetErrors returns the Errors field value.
func (o *JSONAPIErrorResponse) GetErrorsOk() (*[]JSONAPIErrorItem, bool)
GetErrorsOk returns a tuple with the Errors field value and a boolean to check if the value has been set.
func (o JSONAPIErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *JSONAPIErrorResponse) SetErrors(v []JSONAPIErrorItem)
SetErrors sets field value.
func (o *JSONAPIErrorResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
JiraIntegrationMetadata Incident integration metadata for the Jira integration.
type JiraIntegrationMetadata struct {
// Array of Jira issues in this integration metadata.
Issues []JiraIntegrationMetadataIssuesItem `json:"issues"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewJiraIntegrationMetadata(issues []JiraIntegrationMetadataIssuesItem) *JiraIntegrationMetadata
NewJiraIntegrationMetadata instantiates a new JiraIntegrationMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewJiraIntegrationMetadataWithDefaults() *JiraIntegrationMetadata
NewJiraIntegrationMetadataWithDefaults instantiates a new JiraIntegrationMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *JiraIntegrationMetadata) GetIssues() []JiraIntegrationMetadataIssuesItem
GetIssues returns the Issues field value.
func (o *JiraIntegrationMetadata) GetIssuesOk() (*[]JiraIntegrationMetadataIssuesItem, bool)
GetIssuesOk returns a tuple with the Issues field value and a boolean to check if the value has been set.
func (o JiraIntegrationMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *JiraIntegrationMetadata) SetIssues(v []JiraIntegrationMetadataIssuesItem)
SetIssues sets field value.
func (o *JiraIntegrationMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
JiraIntegrationMetadataIssuesItem Item in the Jira integration metadata issue array.
type JiraIntegrationMetadataIssuesItem struct {
// URL of issue's Jira account.
Account string `json:"account"`
// Jira issue's issue key.
IssueKey *string `json:"issue_key,omitempty"`
// Jira issue's issue type.
IssuetypeId *string `json:"issuetype_id,omitempty"`
// Jira issue's project keys.
ProjectKey string `json:"project_key"`
// URL redirecting to the Jira issue.
RedirectUrl *string `json:"redirect_url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewJiraIntegrationMetadataIssuesItem(account string, projectKey string) *JiraIntegrationMetadataIssuesItem
NewJiraIntegrationMetadataIssuesItem instantiates a new JiraIntegrationMetadataIssuesItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewJiraIntegrationMetadataIssuesItemWithDefaults() *JiraIntegrationMetadataIssuesItem
NewJiraIntegrationMetadataIssuesItemWithDefaults instantiates a new JiraIntegrationMetadataIssuesItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *JiraIntegrationMetadataIssuesItem) GetAccount() string
GetAccount returns the Account field value.
func (o *JiraIntegrationMetadataIssuesItem) GetAccountOk() (*string, bool)
GetAccountOk returns a tuple with the Account field value and a boolean to check if the value has been set.
func (o *JiraIntegrationMetadataIssuesItem) GetIssueKey() string
GetIssueKey returns the IssueKey field value if set, zero value otherwise.
func (o *JiraIntegrationMetadataIssuesItem) GetIssueKeyOk() (*string, bool)
GetIssueKeyOk returns a tuple with the IssueKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *JiraIntegrationMetadataIssuesItem) GetIssuetypeId() string
GetIssuetypeId returns the IssuetypeId field value if set, zero value otherwise.
func (o *JiraIntegrationMetadataIssuesItem) GetIssuetypeIdOk() (*string, bool)
GetIssuetypeIdOk returns a tuple with the IssuetypeId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *JiraIntegrationMetadataIssuesItem) GetProjectKey() string
GetProjectKey returns the ProjectKey field value.
func (o *JiraIntegrationMetadataIssuesItem) GetProjectKeyOk() (*string, bool)
GetProjectKeyOk returns a tuple with the ProjectKey field value and a boolean to check if the value has been set.
func (o *JiraIntegrationMetadataIssuesItem) GetRedirectUrl() string
GetRedirectUrl returns the RedirectUrl field value if set, zero value otherwise.
func (o *JiraIntegrationMetadataIssuesItem) GetRedirectUrlOk() (*string, bool)
GetRedirectUrlOk returns a tuple with the RedirectUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *JiraIntegrationMetadataIssuesItem) HasIssueKey() bool
HasIssueKey returns a boolean if a field has been set.
func (o *JiraIntegrationMetadataIssuesItem) HasIssuetypeId() bool
HasIssuetypeId returns a boolean if a field has been set.
func (o *JiraIntegrationMetadataIssuesItem) HasRedirectUrl() bool
HasRedirectUrl returns a boolean if a field has been set.
func (o JiraIntegrationMetadataIssuesItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *JiraIntegrationMetadataIssuesItem) SetAccount(v string)
SetAccount sets field value.
func (o *JiraIntegrationMetadataIssuesItem) SetIssueKey(v string)
SetIssueKey gets a reference to the given string and assigns it to the IssueKey field.
func (o *JiraIntegrationMetadataIssuesItem) SetIssuetypeId(v string)
SetIssuetypeId gets a reference to the given string and assigns it to the IssuetypeId field.
func (o *JiraIntegrationMetadataIssuesItem) SetProjectKey(v string)
SetProjectKey sets field value.
func (o *JiraIntegrationMetadataIssuesItem) SetRedirectUrl(v string)
SetRedirectUrl gets a reference to the given string and assigns it to the RedirectUrl field.
func (o *JiraIntegrationMetadataIssuesItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
KeyManagementApi service type
type KeyManagementApi datadog.Service
func NewKeyManagementApi(client *datadog.APIClient) *KeyManagementApi
NewKeyManagementApi Returns NewKeyManagementApi.
func (a *KeyManagementApi) CreateAPIKey(ctx _context.Context, body APIKeyCreateRequest) (APIKeyResponse, *_nethttp.Response, error)
CreateAPIKey Create an API key. Create an API key.
func (a *KeyManagementApi) CreateCurrentUserApplicationKey(ctx _context.Context, body ApplicationKeyCreateRequest) (ApplicationKeyResponse, *_nethttp.Response, error)
CreateCurrentUserApplicationKey Create an application key for current user. Create an application key for current user
func (a *KeyManagementApi) DeleteAPIKey(ctx _context.Context, apiKeyId string) (*_nethttp.Response, error)
DeleteAPIKey Delete an API key. Delete an API key.
func (a *KeyManagementApi) DeleteApplicationKey(ctx _context.Context, appKeyId string) (*_nethttp.Response, error)
DeleteApplicationKey Delete an application key. Delete an application key
func (a *KeyManagementApi) DeleteCurrentUserApplicationKey(ctx _context.Context, appKeyId string) (*_nethttp.Response, error)
DeleteCurrentUserApplicationKey Delete an application key owned by current user. Delete an application key owned by current user
func (a *KeyManagementApi) GetAPIKey(ctx _context.Context, apiKeyId string, o ...GetAPIKeyOptionalParameters) (APIKeyResponse, *_nethttp.Response, error)
GetAPIKey Get API key. Get an API key.
func (a *KeyManagementApi) GetApplicationKey(ctx _context.Context, appKeyId string, o ...GetApplicationKeyOptionalParameters) (ApplicationKeyResponse, *_nethttp.Response, error)
GetApplicationKey Get an application key. Get an application key for your org.
func (a *KeyManagementApi) GetCurrentUserApplicationKey(ctx _context.Context, appKeyId string) (ApplicationKeyResponse, *_nethttp.Response, error)
GetCurrentUserApplicationKey Get one application key owned by current user. Get an application key owned by current user
func (a *KeyManagementApi) ListAPIKeys(ctx _context.Context, o ...ListAPIKeysOptionalParameters) (APIKeysResponse, *_nethttp.Response, error)
ListAPIKeys Get all API keys. List all API keys available for your account.
func (a *KeyManagementApi) ListApplicationKeys(ctx _context.Context, o ...ListApplicationKeysOptionalParameters) (ListApplicationKeysResponse, *_nethttp.Response, error)
ListApplicationKeys Get all application keys. List all application keys available for your org
func (a *KeyManagementApi) ListCurrentUserApplicationKeys(ctx _context.Context, o ...ListCurrentUserApplicationKeysOptionalParameters) (ListApplicationKeysResponse, *_nethttp.Response, error)
ListCurrentUserApplicationKeys Get all application keys owned by current user. List all application keys available for current user
func (a *KeyManagementApi) UpdateAPIKey(ctx _context.Context, apiKeyId string, body APIKeyUpdateRequest) (APIKeyResponse, *_nethttp.Response, error)
UpdateAPIKey Edit an API key. Update an API key.
func (a *KeyManagementApi) UpdateApplicationKey(ctx _context.Context, appKeyId string, body ApplicationKeyUpdateRequest) (ApplicationKeyResponse, *_nethttp.Response, error)
UpdateApplicationKey Edit an application key. Edit an application key
func (a *KeyManagementApi) UpdateCurrentUserApplicationKey(ctx _context.Context, appKeyId string, body ApplicationKeyUpdateRequest) (ApplicationKeyResponse, *_nethttp.Response, error)
UpdateCurrentUserApplicationKey Edit an application key owned by current user. Edit an application key owned by current user
ListAPIKeysOptionalParameters holds optional parameters for ListAPIKeys.
type ListAPIKeysOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *APIKeysSort
Filter *string
FilterCreatedAtStart *string
FilterCreatedAtEnd *string
FilterModifiedAtStart *string
FilterModifiedAtEnd *string
Include *string
}
func NewListAPIKeysOptionalParameters() *ListAPIKeysOptionalParameters
NewListAPIKeysOptionalParameters creates an empty struct for parameters.
func (r *ListAPIKeysOptionalParameters) WithFilter(filter string) *ListAPIKeysOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithFilterCreatedAtEnd(filterCreatedAtEnd string) *ListAPIKeysOptionalParameters
WithFilterCreatedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithFilterCreatedAtStart(filterCreatedAtStart string) *ListAPIKeysOptionalParameters
WithFilterCreatedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithFilterModifiedAtEnd(filterModifiedAtEnd string) *ListAPIKeysOptionalParameters
WithFilterModifiedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithFilterModifiedAtStart(filterModifiedAtStart string) *ListAPIKeysOptionalParameters
WithFilterModifiedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithInclude(include string) *ListAPIKeysOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithPageNumber(pageNumber int64) *ListAPIKeysOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithPageSize(pageSize int64) *ListAPIKeysOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithSort(sort APIKeysSort) *ListAPIKeysOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListActiveMetricConfigurationsOptionalParameters holds optional parameters for ListActiveMetricConfigurations.
type ListActiveMetricConfigurationsOptionalParameters struct {
WindowSeconds *int64
}
func NewListActiveMetricConfigurationsOptionalParameters() *ListActiveMetricConfigurationsOptionalParameters
NewListActiveMetricConfigurationsOptionalParameters creates an empty struct for parameters.
func (r *ListActiveMetricConfigurationsOptionalParameters) WithWindowSeconds(windowSeconds int64) *ListActiveMetricConfigurationsOptionalParameters
WithWindowSeconds sets the corresponding parameter name and returns the struct.
ListApplicationKeysOptionalParameters holds optional parameters for ListApplicationKeys.
type ListApplicationKeysOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *ApplicationKeysSort
Filter *string
FilterCreatedAtStart *string
FilterCreatedAtEnd *string
}
func NewListApplicationKeysOptionalParameters() *ListApplicationKeysOptionalParameters
NewListApplicationKeysOptionalParameters creates an empty struct for parameters.
func (r *ListApplicationKeysOptionalParameters) WithFilter(filter string) *ListApplicationKeysOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithFilterCreatedAtEnd(filterCreatedAtEnd string) *ListApplicationKeysOptionalParameters
WithFilterCreatedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithFilterCreatedAtStart(filterCreatedAtStart string) *ListApplicationKeysOptionalParameters
WithFilterCreatedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithPageNumber(pageNumber int64) *ListApplicationKeysOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithPageSize(pageSize int64) *ListApplicationKeysOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithSort(sort ApplicationKeysSort) *ListApplicationKeysOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListApplicationKeysResponse Response for a list of application keys.
type ListApplicationKeysResponse struct {
// Array of application keys.
Data []PartialApplicationKey `json:"data,omitempty"`
// Array of objects related to the application key.
Included []ApplicationKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewListApplicationKeysResponse() *ListApplicationKeysResponse
NewListApplicationKeysResponse instantiates a new ListApplicationKeysResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewListApplicationKeysResponseWithDefaults() *ListApplicationKeysResponse
NewListApplicationKeysResponseWithDefaults instantiates a new ListApplicationKeysResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ListApplicationKeysResponse) GetData() []PartialApplicationKey
GetData returns the Data field value if set, zero value otherwise.
func (o *ListApplicationKeysResponse) GetDataOk() (*[]PartialApplicationKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListApplicationKeysResponse) GetIncluded() []ApplicationKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *ListApplicationKeysResponse) GetIncludedOk() (*[]ApplicationKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListApplicationKeysResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *ListApplicationKeysResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o ListApplicationKeysResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ListApplicationKeysResponse) SetData(v []PartialApplicationKey)
SetData gets a reference to the given []PartialApplicationKey and assigns it to the Data field.
func (o *ListApplicationKeysResponse) SetIncluded(v []ApplicationKeyResponseIncludedItem)
SetIncluded gets a reference to the given []ApplicationKeyResponseIncludedItem and assigns it to the Included field.
func (o *ListApplicationKeysResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ListAuditLogsOptionalParameters holds optional parameters for ListAuditLogs.
type ListAuditLogsOptionalParameters struct {
FilterQuery *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *AuditLogsSort
PageCursor *string
PageLimit *int32
}
func NewListAuditLogsOptionalParameters() *ListAuditLogsOptionalParameters
NewListAuditLogsOptionalParameters creates an empty struct for parameters.
func (r *ListAuditLogsOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListAuditLogsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithFilterQuery(filterQuery string) *ListAuditLogsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithFilterTo(filterTo time.Time) *ListAuditLogsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithPageCursor(pageCursor string) *ListAuditLogsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithPageLimit(pageLimit int32) *ListAuditLogsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithSort(sort AuditLogsSort) *ListAuditLogsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListAuthNMappingsOptionalParameters holds optional parameters for ListAuthNMappings.
type ListAuthNMappingsOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *AuthNMappingsSort
Filter *string
}
func NewListAuthNMappingsOptionalParameters() *ListAuthNMappingsOptionalParameters
NewListAuthNMappingsOptionalParameters creates an empty struct for parameters.
func (r *ListAuthNMappingsOptionalParameters) WithFilter(filter string) *ListAuthNMappingsOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListAuthNMappingsOptionalParameters) WithPageNumber(pageNumber int64) *ListAuthNMappingsOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListAuthNMappingsOptionalParameters) WithPageSize(pageSize int64) *ListAuthNMappingsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListAuthNMappingsOptionalParameters) WithSort(sort AuthNMappingsSort) *ListAuthNMappingsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListCIAppPipelineEventsOptionalParameters holds optional parameters for ListCIAppPipelineEvents.
type ListCIAppPipelineEventsOptionalParameters struct {
FilterQuery *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *CIAppSort
PageCursor *string
PageLimit *int32
}
func NewListCIAppPipelineEventsOptionalParameters() *ListCIAppPipelineEventsOptionalParameters
NewListCIAppPipelineEventsOptionalParameters creates an empty struct for parameters.
func (r *ListCIAppPipelineEventsOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListCIAppPipelineEventsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListCIAppPipelineEventsOptionalParameters) WithFilterQuery(filterQuery string) *ListCIAppPipelineEventsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListCIAppPipelineEventsOptionalParameters) WithFilterTo(filterTo time.Time) *ListCIAppPipelineEventsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListCIAppPipelineEventsOptionalParameters) WithPageCursor(pageCursor string) *ListCIAppPipelineEventsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListCIAppPipelineEventsOptionalParameters) WithPageLimit(pageLimit int32) *ListCIAppPipelineEventsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListCIAppPipelineEventsOptionalParameters) WithSort(sort CIAppSort) *ListCIAppPipelineEventsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListCIAppTestEventsOptionalParameters holds optional parameters for ListCIAppTestEvents.
type ListCIAppTestEventsOptionalParameters struct {
FilterQuery *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *CIAppSort
PageCursor *string
PageLimit *int32
}
func NewListCIAppTestEventsOptionalParameters() *ListCIAppTestEventsOptionalParameters
NewListCIAppTestEventsOptionalParameters creates an empty struct for parameters.
func (r *ListCIAppTestEventsOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListCIAppTestEventsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListCIAppTestEventsOptionalParameters) WithFilterQuery(filterQuery string) *ListCIAppTestEventsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListCIAppTestEventsOptionalParameters) WithFilterTo(filterTo time.Time) *ListCIAppTestEventsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListCIAppTestEventsOptionalParameters) WithPageCursor(pageCursor string) *ListCIAppTestEventsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListCIAppTestEventsOptionalParameters) WithPageLimit(pageLimit int32) *ListCIAppTestEventsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListCIAppTestEventsOptionalParameters) WithSort(sort CIAppSort) *ListCIAppTestEventsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListCurrentUserApplicationKeysOptionalParameters holds optional parameters for ListCurrentUserApplicationKeys.
type ListCurrentUserApplicationKeysOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *ApplicationKeysSort
Filter *string
FilterCreatedAtStart *string
FilterCreatedAtEnd *string
}
func NewListCurrentUserApplicationKeysOptionalParameters() *ListCurrentUserApplicationKeysOptionalParameters
NewListCurrentUserApplicationKeysOptionalParameters creates an empty struct for parameters.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithFilter(filter string) *ListCurrentUserApplicationKeysOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithFilterCreatedAtEnd(filterCreatedAtEnd string) *ListCurrentUserApplicationKeysOptionalParameters
WithFilterCreatedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithFilterCreatedAtStart(filterCreatedAtStart string) *ListCurrentUserApplicationKeysOptionalParameters
WithFilterCreatedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithPageNumber(pageNumber int64) *ListCurrentUserApplicationKeysOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithPageSize(pageSize int64) *ListCurrentUserApplicationKeysOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithSort(sort ApplicationKeysSort) *ListCurrentUserApplicationKeysOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListDowntimesOptionalParameters holds optional parameters for ListDowntimes.
type ListDowntimesOptionalParameters struct {
CurrentOnly *bool
Include *string
}
func NewListDowntimesOptionalParameters() *ListDowntimesOptionalParameters
NewListDowntimesOptionalParameters creates an empty struct for parameters.
func (r *ListDowntimesOptionalParameters) WithCurrentOnly(currentOnly bool) *ListDowntimesOptionalParameters
WithCurrentOnly sets the corresponding parameter name and returns the struct.
func (r *ListDowntimesOptionalParameters) WithInclude(include string) *ListDowntimesOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
ListDowntimesResponse Response for retrieving all downtimes.
type ListDowntimesResponse struct {
// An array of downtimes.
Data []DowntimeResponseData `json:"data,omitempty"`
// Array of objects related to the downtimes.
Included []DowntimeResponseIncludedItem `json:"included,omitempty"`
// Pagination metadata returned by the API.
Meta *DowntimeMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewListDowntimesResponse() *ListDowntimesResponse
NewListDowntimesResponse instantiates a new ListDowntimesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewListDowntimesResponseWithDefaults() *ListDowntimesResponse
NewListDowntimesResponseWithDefaults instantiates a new ListDowntimesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ListDowntimesResponse) GetData() []DowntimeResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ListDowntimesResponse) GetDataOk() (*[]DowntimeResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListDowntimesResponse) GetIncluded() []DowntimeResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *ListDowntimesResponse) GetIncludedOk() (*[]DowntimeResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListDowntimesResponse) GetMeta() DowntimeMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *ListDowntimesResponse) GetMetaOk() (*DowntimeMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListDowntimesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *ListDowntimesResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *ListDowntimesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o ListDowntimesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ListDowntimesResponse) SetData(v []DowntimeResponseData)
SetData gets a reference to the given []DowntimeResponseData and assigns it to the Data field.
func (o *ListDowntimesResponse) SetIncluded(v []DowntimeResponseIncludedItem)
SetIncluded gets a reference to the given []DowntimeResponseIncludedItem and assigns it to the Included field.
func (o *ListDowntimesResponse) SetMeta(v DowntimeMeta)
SetMeta gets a reference to the given DowntimeMeta and assigns it to the Meta field.
func (o *ListDowntimesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ListEventsOptionalParameters holds optional parameters for ListEvents.
type ListEventsOptionalParameters struct {
FilterQuery *string
FilterFrom *string
FilterTo *string
Sort *EventsSort
PageCursor *string
PageLimit *int32
}
func NewListEventsOptionalParameters() *ListEventsOptionalParameters
NewListEventsOptionalParameters creates an empty struct for parameters.
func (r *ListEventsOptionalParameters) WithFilterFrom(filterFrom string) *ListEventsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithFilterQuery(filterQuery string) *ListEventsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithFilterTo(filterTo string) *ListEventsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithPageCursor(pageCursor string) *ListEventsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithPageLimit(pageLimit int32) *ListEventsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithSort(sort EventsSort) *ListEventsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListFindingsMeta Metadata for pagination.
type ListFindingsMeta struct {
// Pagination and findings count information.
Page *ListFindingsPage `json:"page,omitempty"`
// The point in time corresponding to the listed findings.
SnapshotTimestamp *int64 `json:"snapshot_timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
}
func NewListFindingsMeta() *ListFindingsMeta
NewListFindingsMeta instantiates a new ListFindingsMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewListFindingsMetaWithDefaults() *ListFindingsMeta
NewListFindingsMetaWithDefaults instantiates a new ListFindingsMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ListFindingsMeta) GetPage() ListFindingsPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *ListFindingsMeta) GetPageOk() (*ListFindingsPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListFindingsMeta) GetSnapshotTimestamp() int64
GetSnapshotTimestamp returns the SnapshotTimestamp field value if set, zero value otherwise.
func (o *ListFindingsMeta) GetSnapshotTimestampOk() (*int64, bool)
GetSnapshotTimestampOk returns a tuple with the SnapshotTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListFindingsMeta) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *ListFindingsMeta) HasSnapshotTimestamp() bool
HasSnapshotTimestamp returns a boolean if a field has been set.
func (o ListFindingsMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ListFindingsMeta) SetPage(v ListFindingsPage)
SetPage gets a reference to the given ListFindingsPage and assigns it to the Page field.
func (o *ListFindingsMeta) SetSnapshotTimestamp(v int64)
SetSnapshotTimestamp gets a reference to the given int64 and assigns it to the SnapshotTimestamp field.
func (o *ListFindingsMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ListFindingsOptionalParameters holds optional parameters for ListFindings.
type ListFindingsOptionalParameters struct {
PageLimit *int64
SnapshotTimestamp *int64
PageCursor *string
FilterTags *string
FilterEvaluationChangedAt *string
FilterMuted *bool
FilterRuleId *string
FilterRuleName *string
FilterResourceType *string
FilterDiscoveryTimestamp *string
FilterEvaluation *FindingEvaluation
FilterStatus *FindingStatus
}
func NewListFindingsOptionalParameters() *ListFindingsOptionalParameters
NewListFindingsOptionalParameters creates an empty struct for parameters.
func (r *ListFindingsOptionalParameters) WithFilterDiscoveryTimestamp(filterDiscoveryTimestamp string) *ListFindingsOptionalParameters
WithFilterDiscoveryTimestamp sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithFilterEvaluation(filterEvaluation FindingEvaluation) *ListFindingsOptionalParameters
WithFilterEvaluation sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithFilterEvaluationChangedAt(filterEvaluationChangedAt string) *ListFindingsOptionalParameters
WithFilterEvaluationChangedAt sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithFilterMuted(filterMuted bool) *ListFindingsOptionalParameters
WithFilterMuted sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithFilterResourceType(filterResourceType string) *ListFindingsOptionalParameters
WithFilterResourceType sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithFilterRuleId(filterRuleId string) *ListFindingsOptionalParameters
WithFilterRuleId sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithFilterRuleName(filterRuleName string) *ListFindingsOptionalParameters
WithFilterRuleName sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithFilterStatus(filterStatus FindingStatus) *ListFindingsOptionalParameters
WithFilterStatus sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithFilterTags(filterTags string) *ListFindingsOptionalParameters
WithFilterTags sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithPageCursor(pageCursor string) *ListFindingsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithPageLimit(pageLimit int64) *ListFindingsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListFindingsOptionalParameters) WithSnapshotTimestamp(snapshotTimestamp int64) *ListFindingsOptionalParameters
WithSnapshotTimestamp sets the corresponding parameter name and returns the struct.
ListFindingsPage Pagination and findings count information.
type ListFindingsPage struct {
// The cursor used to paginate requests.
Cursor *string `json:"cursor,omitempty"`
// The total count of findings after the filter has been applied.
TotalFilteredCount *int64 `json:"total_filtered_count,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
}
func NewListFindingsPage() *ListFindingsPage
NewListFindingsPage instantiates a new ListFindingsPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewListFindingsPageWithDefaults() *ListFindingsPage
NewListFindingsPageWithDefaults instantiates a new ListFindingsPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ListFindingsPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *ListFindingsPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListFindingsPage) GetTotalFilteredCount() int64
GetTotalFilteredCount returns the TotalFilteredCount field value if set, zero value otherwise.
func (o *ListFindingsPage) GetTotalFilteredCountOk() (*int64, bool)
GetTotalFilteredCountOk returns a tuple with the TotalFilteredCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListFindingsPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *ListFindingsPage) HasTotalFilteredCount() bool
HasTotalFilteredCount returns a boolean if a field has been set.
func (o ListFindingsPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ListFindingsPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *ListFindingsPage) SetTotalFilteredCount(v int64)
SetTotalFilteredCount gets a reference to the given int64 and assigns it to the TotalFilteredCount field.
func (o *ListFindingsPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ListFindingsResponse The expected response schema when listing findings.
type ListFindingsResponse struct {
// Array of findings.
Data []Finding `json:"data"`
// Metadata for pagination.
Meta ListFindingsMeta `json:"meta"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewListFindingsResponse(data []Finding, meta ListFindingsMeta) *ListFindingsResponse
NewListFindingsResponse instantiates a new ListFindingsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewListFindingsResponseWithDefaults() *ListFindingsResponse
NewListFindingsResponseWithDefaults instantiates a new ListFindingsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ListFindingsResponse) GetData() []Finding
GetData returns the Data field value.
func (o *ListFindingsResponse) GetDataOk() (*[]Finding, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *ListFindingsResponse) GetMeta() ListFindingsMeta
GetMeta returns the Meta field value.
func (o *ListFindingsResponse) GetMetaOk() (*ListFindingsMeta, bool)
GetMetaOk returns a tuple with the Meta field value and a boolean to check if the value has been set.
func (o ListFindingsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ListFindingsResponse) SetData(v []Finding)
SetData sets field value.
func (o *ListFindingsResponse) SetMeta(v ListFindingsMeta)
SetMeta sets field value.
func (o *ListFindingsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ListIncidentAttachmentsOptionalParameters holds optional parameters for ListIncidentAttachments.
type ListIncidentAttachmentsOptionalParameters struct {
Include *[]IncidentAttachmentRelatedObject
FilterAttachmentType *[]IncidentAttachmentAttachmentType
}
func NewListIncidentAttachmentsOptionalParameters() *ListIncidentAttachmentsOptionalParameters
NewListIncidentAttachmentsOptionalParameters creates an empty struct for parameters.
func (r *ListIncidentAttachmentsOptionalParameters) WithFilterAttachmentType(filterAttachmentType []IncidentAttachmentAttachmentType) *ListIncidentAttachmentsOptionalParameters
WithFilterAttachmentType sets the corresponding parameter name and returns the struct.
func (r *ListIncidentAttachmentsOptionalParameters) WithInclude(include []IncidentAttachmentRelatedObject) *ListIncidentAttachmentsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
ListIncidentServicesOptionalParameters holds optional parameters for ListIncidentServices.
type ListIncidentServicesOptionalParameters struct {
Include *IncidentRelatedObject
PageSize *int64
PageOffset *int64
Filter *string
}
func NewListIncidentServicesOptionalParameters() *ListIncidentServicesOptionalParameters
NewListIncidentServicesOptionalParameters creates an empty struct for parameters.
func (r *ListIncidentServicesOptionalParameters) WithFilter(filter string) *ListIncidentServicesOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListIncidentServicesOptionalParameters) WithInclude(include IncidentRelatedObject) *ListIncidentServicesOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListIncidentServicesOptionalParameters) WithPageOffset(pageOffset int64) *ListIncidentServicesOptionalParameters
WithPageOffset sets the corresponding parameter name and returns the struct.
func (r *ListIncidentServicesOptionalParameters) WithPageSize(pageSize int64) *ListIncidentServicesOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
ListIncidentTeamsOptionalParameters holds optional parameters for ListIncidentTeams.
type ListIncidentTeamsOptionalParameters struct {
Include *IncidentRelatedObject
PageSize *int64
PageOffset *int64
Filter *string
}
func NewListIncidentTeamsOptionalParameters() *ListIncidentTeamsOptionalParameters
NewListIncidentTeamsOptionalParameters creates an empty struct for parameters.
func (r *ListIncidentTeamsOptionalParameters) WithFilter(filter string) *ListIncidentTeamsOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListIncidentTeamsOptionalParameters) WithInclude(include IncidentRelatedObject) *ListIncidentTeamsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListIncidentTeamsOptionalParameters) WithPageOffset(pageOffset int64) *ListIncidentTeamsOptionalParameters
WithPageOffset sets the corresponding parameter name and returns the struct.
func (r *ListIncidentTeamsOptionalParameters) WithPageSize(pageSize int64) *ListIncidentTeamsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
ListIncidentsOptionalParameters holds optional parameters for ListIncidents.
type ListIncidentsOptionalParameters struct {
Include *[]IncidentRelatedObject
PageSize *int64
PageOffset *int64
}
func NewListIncidentsOptionalParameters() *ListIncidentsOptionalParameters
NewListIncidentsOptionalParameters creates an empty struct for parameters.
func (r *ListIncidentsOptionalParameters) WithInclude(include []IncidentRelatedObject) *ListIncidentsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListIncidentsOptionalParameters) WithPageOffset(pageOffset int64) *ListIncidentsOptionalParameters
WithPageOffset sets the corresponding parameter name and returns the struct.
func (r *ListIncidentsOptionalParameters) WithPageSize(pageSize int64) *ListIncidentsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
ListLogsGetOptionalParameters holds optional parameters for ListLogsGet.
type ListLogsGetOptionalParameters struct {
FilterQuery *string
FilterIndexes *[]string
FilterFrom *time.Time
FilterTo *time.Time
FilterStorageTier *LogsStorageTier
Sort *LogsSort
PageCursor *string
PageLimit *int32
}
func NewListLogsGetOptionalParameters() *ListLogsGetOptionalParameters
NewListLogsGetOptionalParameters creates an empty struct for parameters.
func (r *ListLogsGetOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListLogsGetOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithFilterIndexes(filterIndexes []string) *ListLogsGetOptionalParameters
WithFilterIndexes sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithFilterQuery(filterQuery string) *ListLogsGetOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithFilterStorageTier(filterStorageTier LogsStorageTier) *ListLogsGetOptionalParameters
WithFilterStorageTier sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithFilterTo(filterTo time.Time) *ListLogsGetOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithPageCursor(pageCursor string) *ListLogsGetOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithPageLimit(pageLimit int32) *ListLogsGetOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithSort(sort LogsSort) *ListLogsGetOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListLogsOptionalParameters holds optional parameters for ListLogs.
type ListLogsOptionalParameters struct {
Body *LogsListRequest
}
func NewListLogsOptionalParameters() *ListLogsOptionalParameters
NewListLogsOptionalParameters creates an empty struct for parameters.
func (r *ListLogsOptionalParameters) WithBody(body LogsListRequest) *ListLogsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
ListProcessesOptionalParameters holds optional parameters for ListProcesses.
type ListProcessesOptionalParameters struct {
Search *string
Tags *string
From *int64
To *int64
PageLimit *int32
PageCursor *string
}
func NewListProcessesOptionalParameters() *ListProcessesOptionalParameters
NewListProcessesOptionalParameters creates an empty struct for parameters.
func (r *ListProcessesOptionalParameters) WithFrom(from int64) *ListProcessesOptionalParameters
WithFrom sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithPageCursor(pageCursor string) *ListProcessesOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithPageLimit(pageLimit int32) *ListProcessesOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithSearch(search string) *ListProcessesOptionalParameters
WithSearch sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithTags(tags string) *ListProcessesOptionalParameters
WithTags sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithTo(to int64) *ListProcessesOptionalParameters
WithTo sets the corresponding parameter name and returns the struct.
ListRUMEventsOptionalParameters holds optional parameters for ListRUMEvents.
type ListRUMEventsOptionalParameters struct {
FilterQuery *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *RUMSort
PageCursor *string
PageLimit *int32
}
func NewListRUMEventsOptionalParameters() *ListRUMEventsOptionalParameters
NewListRUMEventsOptionalParameters creates an empty struct for parameters.
func (r *ListRUMEventsOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListRUMEventsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithFilterQuery(filterQuery string) *ListRUMEventsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithFilterTo(filterTo time.Time) *ListRUMEventsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithPageCursor(pageCursor string) *ListRUMEventsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithPageLimit(pageLimit int32) *ListRUMEventsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithSort(sort RUMSort) *ListRUMEventsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListRoleUsersOptionalParameters holds optional parameters for ListRoleUsers.
type ListRoleUsersOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *string
Filter *string
}
func NewListRoleUsersOptionalParameters() *ListRoleUsersOptionalParameters
NewListRoleUsersOptionalParameters creates an empty struct for parameters.
func (r *ListRoleUsersOptionalParameters) WithFilter(filter string) *ListRoleUsersOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListRoleUsersOptionalParameters) WithPageNumber(pageNumber int64) *ListRoleUsersOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListRoleUsersOptionalParameters) WithPageSize(pageSize int64) *ListRoleUsersOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListRoleUsersOptionalParameters) WithSort(sort string) *ListRoleUsersOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListRolesOptionalParameters holds optional parameters for ListRoles.
type ListRolesOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *RolesSort
Filter *string
}
func NewListRolesOptionalParameters() *ListRolesOptionalParameters
NewListRolesOptionalParameters creates an empty struct for parameters.
func (r *ListRolesOptionalParameters) WithFilter(filter string) *ListRolesOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListRolesOptionalParameters) WithPageNumber(pageNumber int64) *ListRolesOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListRolesOptionalParameters) WithPageSize(pageSize int64) *ListRolesOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListRolesOptionalParameters) WithSort(sort RolesSort) *ListRolesOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListSecurityMonitoringRulesOptionalParameters holds optional parameters for ListSecurityMonitoringRules.
type ListSecurityMonitoringRulesOptionalParameters struct {
PageSize *int64
PageNumber *int64
}
func NewListSecurityMonitoringRulesOptionalParameters() *ListSecurityMonitoringRulesOptionalParameters
NewListSecurityMonitoringRulesOptionalParameters creates an empty struct for parameters.
func (r *ListSecurityMonitoringRulesOptionalParameters) WithPageNumber(pageNumber int64) *ListSecurityMonitoringRulesOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringRulesOptionalParameters) WithPageSize(pageSize int64) *ListSecurityMonitoringRulesOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
ListSecurityMonitoringSignalsOptionalParameters holds optional parameters for ListSecurityMonitoringSignals.
type ListSecurityMonitoringSignalsOptionalParameters struct {
FilterQuery *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *SecurityMonitoringSignalsSort
PageCursor *string
PageLimit *int32
}
func NewListSecurityMonitoringSignalsOptionalParameters() *ListSecurityMonitoringSignalsOptionalParameters
NewListSecurityMonitoringSignalsOptionalParameters creates an empty struct for parameters.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListSecurityMonitoringSignalsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithFilterQuery(filterQuery string) *ListSecurityMonitoringSignalsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithFilterTo(filterTo time.Time) *ListSecurityMonitoringSignalsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithPageCursor(pageCursor string) *ListSecurityMonitoringSignalsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithPageLimit(pageLimit int32) *ListSecurityMonitoringSignalsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithSort(sort SecurityMonitoringSignalsSort) *ListSecurityMonitoringSignalsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListServiceAccountApplicationKeysOptionalParameters holds optional parameters for ListServiceAccountApplicationKeys.
type ListServiceAccountApplicationKeysOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *ApplicationKeysSort
Filter *string
FilterCreatedAtStart *string
FilterCreatedAtEnd *string
}
func NewListServiceAccountApplicationKeysOptionalParameters() *ListServiceAccountApplicationKeysOptionalParameters
NewListServiceAccountApplicationKeysOptionalParameters creates an empty struct for parameters.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithFilter(filter string) *ListServiceAccountApplicationKeysOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithFilterCreatedAtEnd(filterCreatedAtEnd string) *ListServiceAccountApplicationKeysOptionalParameters
WithFilterCreatedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithFilterCreatedAtStart(filterCreatedAtStart string) *ListServiceAccountApplicationKeysOptionalParameters
WithFilterCreatedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithPageNumber(pageNumber int64) *ListServiceAccountApplicationKeysOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithPageSize(pageSize int64) *ListServiceAccountApplicationKeysOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithSort(sort ApplicationKeysSort) *ListServiceAccountApplicationKeysOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListServiceDefinitionsOptionalParameters holds optional parameters for ListServiceDefinitions.
type ListServiceDefinitionsOptionalParameters struct {
PageSize *int64
PageNumber *int64
SchemaVersion *ServiceDefinitionSchemaVersions
}
func NewListServiceDefinitionsOptionalParameters() *ListServiceDefinitionsOptionalParameters
NewListServiceDefinitionsOptionalParameters creates an empty struct for parameters.
func (r *ListServiceDefinitionsOptionalParameters) WithPageNumber(pageNumber int64) *ListServiceDefinitionsOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListServiceDefinitionsOptionalParameters) WithPageSize(pageSize int64) *ListServiceDefinitionsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListServiceDefinitionsOptionalParameters) WithSchemaVersion(schemaVersion ServiceDefinitionSchemaVersions) *ListServiceDefinitionsOptionalParameters
WithSchemaVersion sets the corresponding parameter name and returns the struct.
ListSpansGetOptionalParameters holds optional parameters for ListSpansGet.
type ListSpansGetOptionalParameters struct {
FilterQuery *string
FilterFrom *string
FilterTo *string
Sort *SpansSort
PageCursor *string
PageLimit *int32
}
func NewListSpansGetOptionalParameters() *ListSpansGetOptionalParameters
NewListSpansGetOptionalParameters creates an empty struct for parameters.
func (r *ListSpansGetOptionalParameters) WithFilterFrom(filterFrom string) *ListSpansGetOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListSpansGetOptionalParameters) WithFilterQuery(filterQuery string) *ListSpansGetOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListSpansGetOptionalParameters) WithFilterTo(filterTo string) *ListSpansGetOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListSpansGetOptionalParameters) WithPageCursor(pageCursor string) *ListSpansGetOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListSpansGetOptionalParameters) WithPageLimit(pageLimit int32) *ListSpansGetOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListSpansGetOptionalParameters) WithSort(sort SpansSort) *ListSpansGetOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListTagConfigurationsOptionalParameters holds optional parameters for ListTagConfigurations.
type ListTagConfigurationsOptionalParameters struct {
FilterConfigured *bool
FilterTagsConfigured *string
FilterMetricType *MetricTagConfigurationMetricTypes
FilterIncludePercentiles *bool
FilterQueried *bool
FilterTags *string
WindowSeconds *int64
}
func NewListTagConfigurationsOptionalParameters() *ListTagConfigurationsOptionalParameters
NewListTagConfigurationsOptionalParameters creates an empty struct for parameters.
func (r *ListTagConfigurationsOptionalParameters) WithFilterConfigured(filterConfigured bool) *ListTagConfigurationsOptionalParameters
WithFilterConfigured sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterIncludePercentiles(filterIncludePercentiles bool) *ListTagConfigurationsOptionalParameters
WithFilterIncludePercentiles sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterMetricType(filterMetricType MetricTagConfigurationMetricTypes) *ListTagConfigurationsOptionalParameters
WithFilterMetricType sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterQueried(filterQueried bool) *ListTagConfigurationsOptionalParameters
WithFilterQueried sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterTags(filterTags string) *ListTagConfigurationsOptionalParameters
WithFilterTags sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterTagsConfigured(filterTagsConfigured string) *ListTagConfigurationsOptionalParameters
WithFilterTagsConfigured sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithWindowSeconds(windowSeconds int64) *ListTagConfigurationsOptionalParameters
WithWindowSeconds sets the corresponding parameter name and returns the struct.
ListTeamsInclude Included related resources optionally requested.
type ListTeamsInclude string
List of ListTeamsInclude.
const (
LISTTEAMSINCLUDE_TEAM_LINKS ListTeamsInclude = "team_links"
LISTTEAMSINCLUDE_USER_TEAM_PERMISSIONS ListTeamsInclude = "user_team_permissions"
)
func NewListTeamsIncludeFromValue(v string) (*ListTeamsInclude, error)
NewListTeamsIncludeFromValue returns a pointer to a valid ListTeamsInclude for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ListTeamsInclude) GetAllowedValues() []ListTeamsInclude
GetAllowedValues reeturns the list of possible values.
func (v ListTeamsInclude) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ListTeamsInclude) Ptr() *ListTeamsInclude
Ptr returns reference to ListTeamsInclude value.
func (v *ListTeamsInclude) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ListTeamsOptionalParameters holds optional parameters for ListTeams.
type ListTeamsOptionalParameters struct {
PageNumber *int64
PageSize *int64
Sort *ListTeamsSort
Include *[]ListTeamsInclude
FilterKeyword *string
FilterMe *bool
}
func NewListTeamsOptionalParameters() *ListTeamsOptionalParameters
NewListTeamsOptionalParameters creates an empty struct for parameters.
func (r *ListTeamsOptionalParameters) WithFilterKeyword(filterKeyword string) *ListTeamsOptionalParameters
WithFilterKeyword sets the corresponding parameter name and returns the struct.
func (r *ListTeamsOptionalParameters) WithFilterMe(filterMe bool) *ListTeamsOptionalParameters
WithFilterMe sets the corresponding parameter name and returns the struct.
func (r *ListTeamsOptionalParameters) WithInclude(include []ListTeamsInclude) *ListTeamsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListTeamsOptionalParameters) WithPageNumber(pageNumber int64) *ListTeamsOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListTeamsOptionalParameters) WithPageSize(pageSize int64) *ListTeamsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListTeamsOptionalParameters) WithSort(sort ListTeamsSort) *ListTeamsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListTeamsSort Specifies the order of the returned teams
type ListTeamsSort string
List of ListTeamsSort.
const (
LISTTEAMSSORT_NAME ListTeamsSort = "name"
LISTTEAMSSORT__NAME ListTeamsSort = "-name"
LISTTEAMSSORT_USER_COUNT ListTeamsSort = "user_count"
LISTTEAMSSORT__USER_COUNT ListTeamsSort = "-user_count"
)
func NewListTeamsSortFromValue(v string) (*ListTeamsSort, error)
NewListTeamsSortFromValue returns a pointer to a valid ListTeamsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ListTeamsSort) GetAllowedValues() []ListTeamsSort
GetAllowedValues reeturns the list of possible values.
func (v ListTeamsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ListTeamsSort) Ptr() *ListTeamsSort
Ptr returns reference to ListTeamsSort value.
func (v *ListTeamsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ListUsersOptionalParameters holds optional parameters for ListUsers.
type ListUsersOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *string
SortDir *QuerySortOrder
Filter *string
FilterStatus *string
}
func NewListUsersOptionalParameters() *ListUsersOptionalParameters
NewListUsersOptionalParameters creates an empty struct for parameters.
func (r *ListUsersOptionalParameters) WithFilter(filter string) *ListUsersOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithFilterStatus(filterStatus string) *ListUsersOptionalParameters
WithFilterStatus sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithPageNumber(pageNumber int64) *ListUsersOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithPageSize(pageSize int64) *ListUsersOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithSort(sort string) *ListUsersOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithSortDir(sortDir QuerySortOrder) *ListUsersOptionalParameters
WithSortDir sets the corresponding parameter name and returns the struct.
Log Object description of a log after being processed and stored by Datadog.
type Log struct {
// JSON object containing all log attributes and their associated values.
Attributes *LogAttributes `json:"attributes,omitempty"`
// Unique ID of the Log.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *LogType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLog() *Log
NewLog instantiates a new Log object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogWithDefaults() *Log
NewLogWithDefaults instantiates a new Log object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Log) GetAttributes() LogAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Log) GetAttributesOk() (*LogAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Log) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Log) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Log) GetType() LogType
GetType returns the Type field value if set, zero value otherwise.
func (o *Log) GetTypeOk() (*LogType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Log) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Log) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Log) HasType() bool
HasType returns a boolean if a field has been set.
func (o Log) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Log) SetAttributes(v LogAttributes)
SetAttributes gets a reference to the given LogAttributes and assigns it to the Attributes field.
func (o *Log) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Log) SetType(v LogType)
SetType gets a reference to the given LogType and assigns it to the Type field.
func (o *Log) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogAttributes JSON object containing all log attributes and their associated values.
type LogAttributes struct {
// JSON object of attributes from your log.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// Name of the machine from where the logs are being sent.
Host *string `json:"host,omitempty"`
// The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes)
// of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry.
// That value is then highlighted and displayed in the Logstream, where it is indexed for full text search.
Message *string `json:"message,omitempty"`
// The name of the application or service generating the log events.
// It is used to switch from Logs to APM, so make sure you define the same
// value when you use both products.
Service *string `json:"service,omitempty"`
// Status of the message associated with your log.
Status *string `json:"status,omitempty"`
// Array of tags associated with your log.
Tags []string `json:"tags,omitempty"`
// Timestamp of your log.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogAttributes() *LogAttributes
NewLogAttributes instantiates a new LogAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogAttributesWithDefaults() *LogAttributes
NewLogAttributesWithDefaults instantiates a new LogAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *LogAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetHost() string
GetHost returns the Host field value if set, zero value otherwise.
func (o *LogAttributes) GetHostOk() (*string, bool)
GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *LogAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *LogAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *LogAttributes) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *LogAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *LogAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *LogAttributes) HasHost() bool
HasHost returns a boolean if a field has been set.
func (o *LogAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *LogAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *LogAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *LogAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *LogAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o LogAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *LogAttributes) SetHost(v string)
SetHost gets a reference to the given string and assigns it to the Host field.
func (o *LogAttributes) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *LogAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *LogAttributes) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *LogAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *LogAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *LogAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogType Type of the event.
type LogType string
List of LogType.
const (
LOGTYPE_LOG LogType = "log"
)
func NewLogTypeFromValue(v string) (*LogType, error)
NewLogTypeFromValue returns a pointer to a valid LogType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogType) GetAllowedValues() []LogType
GetAllowedValues reeturns the list of possible values.
func (v LogType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogType) Ptr() *LogType
Ptr returns reference to LogType value.
func (v *LogType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsAggregateBucket A bucket values
type LogsAggregateBucket struct {
// The key, value pairs for each group by
By map[string]interface{} `json:"by,omitempty"`
// A map of the metric name -> value for regular compute or list of values for a timeseries
Computes map[string]LogsAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateBucket() *LogsAggregateBucket
NewLogsAggregateBucket instantiates a new LogsAggregateBucket object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateBucketWithDefaults() *LogsAggregateBucket
NewLogsAggregateBucketWithDefaults instantiates a new LogsAggregateBucket object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateBucket) GetBy() map[string]interface{}
GetBy returns the By field value if set, zero value otherwise.
func (o *LogsAggregateBucket) GetByOk() (*map[string]interface{}, bool)
GetByOk returns a tuple with the By field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateBucket) GetComputes() map[string]LogsAggregateBucketValue
GetComputes returns the Computes field value if set, zero value otherwise.
func (o *LogsAggregateBucket) GetComputesOk() (*map[string]LogsAggregateBucketValue, bool)
GetComputesOk returns a tuple with the Computes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateBucket) HasBy() bool
HasBy returns a boolean if a field has been set.
func (o *LogsAggregateBucket) HasComputes() bool
HasComputes returns a boolean if a field has been set.
func (o LogsAggregateBucket) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateBucket) SetBy(v map[string]interface{})
SetBy gets a reference to the given map[string]interface{} and assigns it to the By field.
func (o *LogsAggregateBucket) SetComputes(v map[string]LogsAggregateBucketValue)
SetComputes gets a reference to the given map[string]LogsAggregateBucketValue and assigns it to the Computes field.
func (o *LogsAggregateBucket) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateBucketValue - A bucket value, can be either a timeseries or a single value
type LogsAggregateBucketValue struct {
LogsAggregateBucketValueSingleString *string
LogsAggregateBucketValueSingleNumber *float64
LogsAggregateBucketValueTimeseries *LogsAggregateBucketValueTimeseries
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsAggregateBucketValueSingleNumberAsLogsAggregateBucketValue(v *float64) LogsAggregateBucketValue
LogsAggregateBucketValueSingleNumberAsLogsAggregateBucketValue is a convenience function that returns float64 wrapped in LogsAggregateBucketValue.
func LogsAggregateBucketValueSingleStringAsLogsAggregateBucketValue(v *string) LogsAggregateBucketValue
LogsAggregateBucketValueSingleStringAsLogsAggregateBucketValue is a convenience function that returns string wrapped in LogsAggregateBucketValue.
func LogsAggregateBucketValueTimeseriesAsLogsAggregateBucketValue(v *LogsAggregateBucketValueTimeseries) LogsAggregateBucketValue
LogsAggregateBucketValueTimeseriesAsLogsAggregateBucketValue is a convenience function that returns LogsAggregateBucketValueTimeseries wrapped in LogsAggregateBucketValue.
func (obj *LogsAggregateBucketValue) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsAggregateBucketValue) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsAggregateBucketValue) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsAggregateBucketValueTimeseries A timeseries array
type LogsAggregateBucketValueTimeseries struct {
Items []LogsAggregateBucketValueTimeseriesPoint
// UnparsedObject contains the raw value of the array if there was an error when deserializing into the struct
UnparsedObject []interface{} `json:"-"`
}
func NewLogsAggregateBucketValueTimeseries() *LogsAggregateBucketValueTimeseries
NewLogsAggregateBucketValueTimeseries instantiates a new LogsAggregateBucketValueTimeseries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateBucketValueTimeseriesWithDefaults() *LogsAggregateBucketValueTimeseries
NewLogsAggregateBucketValueTimeseriesWithDefaults instantiates a new LogsAggregateBucketValueTimeseries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o LogsAggregateBucketValueTimeseries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateBucketValueTimeseries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateBucketValueTimeseriesPoint A timeseries point
type LogsAggregateBucketValueTimeseriesPoint struct {
// The time value for this point
Time *string `json:"time,omitempty"`
// The value for this point
Value *float64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateBucketValueTimeseriesPoint() *LogsAggregateBucketValueTimeseriesPoint
NewLogsAggregateBucketValueTimeseriesPoint instantiates a new LogsAggregateBucketValueTimeseriesPoint object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateBucketValueTimeseriesPointWithDefaults() *LogsAggregateBucketValueTimeseriesPoint
NewLogsAggregateBucketValueTimeseriesPointWithDefaults instantiates a new LogsAggregateBucketValueTimeseriesPoint object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateBucketValueTimeseriesPoint) GetTime() string
GetTime returns the Time field value if set, zero value otherwise.
func (o *LogsAggregateBucketValueTimeseriesPoint) GetTimeOk() (*string, bool)
GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateBucketValueTimeseriesPoint) GetValue() float64
GetValue returns the Value field value if set, zero value otherwise.
func (o *LogsAggregateBucketValueTimeseriesPoint) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateBucketValueTimeseriesPoint) HasTime() bool
HasTime returns a boolean if a field has been set.
func (o *LogsAggregateBucketValueTimeseriesPoint) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o LogsAggregateBucketValueTimeseriesPoint) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateBucketValueTimeseriesPoint) SetTime(v string)
SetTime gets a reference to the given string and assigns it to the Time field.
func (o *LogsAggregateBucketValueTimeseriesPoint) SetValue(v float64)
SetValue gets a reference to the given float64 and assigns it to the Value field.
func (o *LogsAggregateBucketValueTimeseriesPoint) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateRequest The object sent with the request to retrieve a list of logs from your organization.
type LogsAggregateRequest struct {
// The list of metrics or timeseries to compute for the retrieved buckets.
Compute []LogsCompute `json:"compute,omitempty"`
// The search and filter query settings
Filter *LogsQueryFilter `json:"filter,omitempty"`
// The rules for the group by
GroupBy []LogsGroupBy `json:"group_by,omitempty"`
// Global query options that are used during the query.
// Note: You should only supply timezone or time offset but not both otherwise the query will fail.
Options *LogsQueryOptions `json:"options,omitempty"`
// Paging settings
Page *LogsAggregateRequestPage `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateRequest() *LogsAggregateRequest
NewLogsAggregateRequest instantiates a new LogsAggregateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateRequestWithDefaults() *LogsAggregateRequest
NewLogsAggregateRequestWithDefaults instantiates a new LogsAggregateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateRequest) GetCompute() []LogsCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetComputeOk() (*[]LogsCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) GetFilter() LogsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetFilterOk() (*LogsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) GetGroupBy() []LogsGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetGroupByOk() (*[]LogsGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) GetOptions() LogsQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetOptionsOk() (*LogsQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) GetPage() LogsAggregateRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetPageOk() (*LogsAggregateRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *LogsAggregateRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsAggregateRequest) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *LogsAggregateRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *LogsAggregateRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o LogsAggregateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateRequest) SetCompute(v []LogsCompute)
SetCompute gets a reference to the given []LogsCompute and assigns it to the Compute field.
func (o *LogsAggregateRequest) SetFilter(v LogsQueryFilter)
SetFilter gets a reference to the given LogsQueryFilter and assigns it to the Filter field.
func (o *LogsAggregateRequest) SetGroupBy(v []LogsGroupBy)
SetGroupBy gets a reference to the given []LogsGroupBy and assigns it to the GroupBy field.
func (o *LogsAggregateRequest) SetOptions(v LogsQueryOptions)
SetOptions gets a reference to the given LogsQueryOptions and assigns it to the Options field.
func (o *LogsAggregateRequest) SetPage(v LogsAggregateRequestPage)
SetPage gets a reference to the given LogsAggregateRequestPage and assigns it to the Page field.
func (o *LogsAggregateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateRequestPage Paging settings
type LogsAggregateRequestPage struct {
// The returned paging point to use to get the next results
Cursor *string `json:"cursor,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateRequestPage() *LogsAggregateRequestPage
NewLogsAggregateRequestPage instantiates a new LogsAggregateRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateRequestPageWithDefaults() *LogsAggregateRequestPage
NewLogsAggregateRequestPageWithDefaults instantiates a new LogsAggregateRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *LogsAggregateRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o LogsAggregateRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *LogsAggregateRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateResponse The response object for the logs aggregate API endpoint
type LogsAggregateResponse struct {
// The query results
Data *LogsAggregateResponseData `json:"data,omitempty"`
// The metadata associated with a request
Meta *LogsResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateResponse() *LogsAggregateResponse
NewLogsAggregateResponse instantiates a new LogsAggregateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateResponseWithDefaults() *LogsAggregateResponse
NewLogsAggregateResponseWithDefaults instantiates a new LogsAggregateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateResponse) GetData() LogsAggregateResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsAggregateResponse) GetDataOk() (*LogsAggregateResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateResponse) GetMeta() LogsResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *LogsAggregateResponse) GetMetaOk() (*LogsResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *LogsAggregateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o LogsAggregateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateResponse) SetData(v LogsAggregateResponseData)
SetData gets a reference to the given LogsAggregateResponseData and assigns it to the Data field.
func (o *LogsAggregateResponse) SetMeta(v LogsResponseMetadata)
SetMeta gets a reference to the given LogsResponseMetadata and assigns it to the Meta field.
func (o *LogsAggregateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateResponseData The query results
type LogsAggregateResponseData struct {
// The list of matching buckets, one item per bucket
Buckets []LogsAggregateBucket `json:"buckets,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateResponseData() *LogsAggregateResponseData
NewLogsAggregateResponseData instantiates a new LogsAggregateResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateResponseDataWithDefaults() *LogsAggregateResponseData
NewLogsAggregateResponseDataWithDefaults instantiates a new LogsAggregateResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateResponseData) GetBuckets() []LogsAggregateBucket
GetBuckets returns the Buckets field value if set, zero value otherwise.
func (o *LogsAggregateResponseData) GetBucketsOk() (*[]LogsAggregateBucket, bool)
GetBucketsOk returns a tuple with the Buckets field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateResponseData) HasBuckets() bool
HasBuckets returns a boolean if a field has been set.
func (o LogsAggregateResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateResponseData) SetBuckets(v []LogsAggregateBucket)
SetBuckets gets a reference to the given []LogsAggregateBucket and assigns it to the Buckets field.
func (o *LogsAggregateResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateResponseStatus The status of the response
type LogsAggregateResponseStatus string
List of LogsAggregateResponseStatus.
const (
LOGSAGGREGATERESPONSESTATUS_DONE LogsAggregateResponseStatus = "done"
LOGSAGGREGATERESPONSESTATUS_TIMEOUT LogsAggregateResponseStatus = "timeout"
)
func NewLogsAggregateResponseStatusFromValue(v string) (*LogsAggregateResponseStatus, error)
NewLogsAggregateResponseStatusFromValue returns a pointer to a valid LogsAggregateResponseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsAggregateResponseStatus) GetAllowedValues() []LogsAggregateResponseStatus
GetAllowedValues reeturns the list of possible values.
func (v LogsAggregateResponseStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsAggregateResponseStatus) Ptr() *LogsAggregateResponseStatus
Ptr returns reference to LogsAggregateResponseStatus value.
func (v *LogsAggregateResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsAggregateSort A sort rule
type LogsAggregateSort struct {
// An aggregation function
Aggregation *LogsAggregationFunction `json:"aggregation,omitempty"`
// The metric to sort by (only used for `type=measure`)
Metric *string `json:"metric,omitempty"`
// The order to use, ascending or descending
Order *LogsSortOrder `json:"order,omitempty"`
// The type of sorting algorithm
Type *LogsAggregateSortType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateSort() *LogsAggregateSort
NewLogsAggregateSort instantiates a new LogsAggregateSort object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateSortWithDefaults() *LogsAggregateSort
NewLogsAggregateSortWithDefaults instantiates a new LogsAggregateSort object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateSort) GetAggregation() LogsAggregationFunction
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *LogsAggregateSort) GetAggregationOk() (*LogsAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateSort) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *LogsAggregateSort) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateSort) GetOrder() LogsSortOrder
GetOrder returns the Order field value if set, zero value otherwise.
func (o *LogsAggregateSort) GetOrderOk() (*LogsSortOrder, bool)
GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateSort) GetType() LogsAggregateSortType
GetType returns the Type field value if set, zero value otherwise.
func (o *LogsAggregateSort) GetTypeOk() (*LogsAggregateSortType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateSort) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *LogsAggregateSort) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *LogsAggregateSort) HasOrder() bool
HasOrder returns a boolean if a field has been set.
func (o *LogsAggregateSort) HasType() bool
HasType returns a boolean if a field has been set.
func (o LogsAggregateSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateSort) SetAggregation(v LogsAggregationFunction)
SetAggregation gets a reference to the given LogsAggregationFunction and assigns it to the Aggregation field.
func (o *LogsAggregateSort) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *LogsAggregateSort) SetOrder(v LogsSortOrder)
SetOrder gets a reference to the given LogsSortOrder and assigns it to the Order field.
func (o *LogsAggregateSort) SetType(v LogsAggregateSortType)
SetType gets a reference to the given LogsAggregateSortType and assigns it to the Type field.
func (o *LogsAggregateSort) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateSortType The type of sorting algorithm
type LogsAggregateSortType string
List of LogsAggregateSortType.
const (
LOGSAGGREGATESORTTYPE_ALPHABETICAL LogsAggregateSortType = "alphabetical"
LOGSAGGREGATESORTTYPE_MEASURE LogsAggregateSortType = "measure"
)
func NewLogsAggregateSortTypeFromValue(v string) (*LogsAggregateSortType, error)
NewLogsAggregateSortTypeFromValue returns a pointer to a valid LogsAggregateSortType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsAggregateSortType) GetAllowedValues() []LogsAggregateSortType
GetAllowedValues reeturns the list of possible values.
func (v LogsAggregateSortType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsAggregateSortType) Ptr() *LogsAggregateSortType
Ptr returns reference to LogsAggregateSortType value.
func (v *LogsAggregateSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsAggregationFunction An aggregation function
type LogsAggregationFunction string
List of LogsAggregationFunction.
const (
LOGSAGGREGATIONFUNCTION_COUNT LogsAggregationFunction = "count"
LOGSAGGREGATIONFUNCTION_CARDINALITY LogsAggregationFunction = "cardinality"
LOGSAGGREGATIONFUNCTION_PERCENTILE_75 LogsAggregationFunction = "pc75"
LOGSAGGREGATIONFUNCTION_PERCENTILE_90 LogsAggregationFunction = "pc90"
LOGSAGGREGATIONFUNCTION_PERCENTILE_95 LogsAggregationFunction = "pc95"
LOGSAGGREGATIONFUNCTION_PERCENTILE_98 LogsAggregationFunction = "pc98"
LOGSAGGREGATIONFUNCTION_PERCENTILE_99 LogsAggregationFunction = "pc99"
LOGSAGGREGATIONFUNCTION_SUM LogsAggregationFunction = "sum"
LOGSAGGREGATIONFUNCTION_MIN LogsAggregationFunction = "min"
LOGSAGGREGATIONFUNCTION_MAX LogsAggregationFunction = "max"
LOGSAGGREGATIONFUNCTION_AVG LogsAggregationFunction = "avg"
LOGSAGGREGATIONFUNCTION_MEDIAN LogsAggregationFunction = "median"
)
func NewLogsAggregationFunctionFromValue(v string) (*LogsAggregationFunction, error)
NewLogsAggregationFunctionFromValue returns a pointer to a valid LogsAggregationFunction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsAggregationFunction) GetAllowedValues() []LogsAggregationFunction
GetAllowedValues reeturns the list of possible values.
func (v LogsAggregationFunction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsAggregationFunction) Ptr() *LogsAggregationFunction
Ptr returns reference to LogsAggregationFunction value.
func (v *LogsAggregationFunction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsApi service type
type LogsApi datadog.Service
func NewLogsApi(client *datadog.APIClient) *LogsApi
NewLogsApi Returns NewLogsApi.
func (a *LogsApi) AggregateLogs(ctx _context.Context, body LogsAggregateRequest) (LogsAggregateResponse, *_nethttp.Response, error)
AggregateLogs Aggregate events. The API endpoint to aggregate events into buckets and compute metrics and timeseries.
func (a *LogsApi) ListLogs(ctx _context.Context, o ...ListLogsOptionalParameters) (LogsListResponse, *_nethttp.Response, error)
ListLogs Search logs. List endpoint returns logs that match a log search query. [Results are paginated][1].
Use this endpoint to build complex logs filtering and search.
**If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].**
[1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives
func (a *LogsApi) ListLogsGet(ctx _context.Context, o ...ListLogsGetOptionalParameters) (LogsListResponse, *_nethttp.Response, error)
ListLogsGet Get a list of logs. List endpoint returns logs that match a log search query. [Results are paginated][1].
Use this endpoint to see your latest logs.
**If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].**
[1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives
func (a *LogsApi) ListLogsGetWithPagination(ctx _context.Context, o ...ListLogsGetOptionalParameters) (<-chan datadog.PaginationResult[Log], func())
ListLogsGetWithPagination provides a paginated version of ListLogsGet returning a channel with all items.
func (a *LogsApi) ListLogsWithPagination(ctx _context.Context, o ...ListLogsOptionalParameters) (<-chan datadog.PaginationResult[Log], func())
ListLogsWithPagination provides a paginated version of ListLogs returning a channel with all items.
func (a *LogsApi) SubmitLog(ctx _context.Context, body []HTTPLogItem, o ...SubmitLogOptionalParameters) (interface{}, *_nethttp.Response, error)
SubmitLog Send logs. Send your logs to your Datadog platform over HTTP. Limits per HTTP request are:
- Maximum content size per payload (uncompressed): 5MB - Maximum size for a single log: 1MB - Maximum array size if sending multiple logs in an array: 1000 entries
Any log exceeding 1MB is accepted and truncated by Datadog: - For a single log request, the API truncates the log at 1MB and returns a 2xx. - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx.
Datadog recommends sending your logs compressed. Add the `Content-Encoding: gzip` header to the request when sending compressed logs. Log events can be submitted with a timestamp that is up to 18 hours in the past.
The status codes answered by the HTTP API are: - 202: Accepted: the request has been accepted for processing - 400: Bad request (likely an issue in the payload formatting) - 401: Unauthorized (likely a missing API Key) - 403: Permission issue (likely using an invalid API Key) - 408: Request Timeout, request should be retried after some time - 413: Payload too large (batch is above 5MB uncompressed) - 429: Too Many Requests, request should be retried after some time - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time
LogsArchive The logs archive.
type LogsArchive struct {
// The definition of an archive.
Data *LogsArchiveDefinition `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchive() *LogsArchive
NewLogsArchive instantiates a new LogsArchive object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveWithDefaults() *LogsArchive
NewLogsArchiveWithDefaults instantiates a new LogsArchive object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchive) GetData() LogsArchiveDefinition
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsArchive) GetDataOk() (*LogsArchiveDefinition, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchive) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsArchive) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchive) SetData(v LogsArchiveDefinition)
SetData gets a reference to the given LogsArchiveDefinition and assigns it to the Data field.
func (o *LogsArchive) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveAttributes The attributes associated with the archive.
type LogsArchiveAttributes struct {
// An archive's destination.
Destination NullableLogsArchiveDestination `json:"destination"`
// To store the tags in the archive, set the value "true".
// If it is set to "false", the tags will be deleted when the logs are sent to the archive.
IncludeTags *bool `json:"include_tags,omitempty"`
// The archive name.
Name string `json:"name"`
// The archive query/filter. Logs matching this query are included in the archive.
Query string `json:"query"`
// Maximum scan size for rehydration from this archive.
RehydrationMaxScanSizeInGb datadog.NullableInt64 `json:"rehydration_max_scan_size_in_gb,omitempty"`
// An array of tags to add to rehydrated logs from an archive.
RehydrationTags []string `json:"rehydration_tags,omitempty"`
// The state of the archive.
State *LogsArchiveState `json:"state,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveAttributes(destination NullableLogsArchiveDestination, name string, query string) *LogsArchiveAttributes
NewLogsArchiveAttributes instantiates a new LogsArchiveAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveAttributesWithDefaults() *LogsArchiveAttributes
NewLogsArchiveAttributesWithDefaults instantiates a new LogsArchiveAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveAttributes) GetDestination() LogsArchiveDestination
GetDestination returns the Destination field value. If the value is explicit nil, the zero value for LogsArchiveDestination will be returned.
func (o *LogsArchiveAttributes) GetDestinationOk() (*LogsArchiveDestination, bool)
GetDestinationOk returns a tuple with the Destination field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *LogsArchiveAttributes) GetIncludeTags() bool
GetIncludeTags returns the IncludeTags field value if set, zero value otherwise.
func (o *LogsArchiveAttributes) GetIncludeTagsOk() (*bool, bool)
GetIncludeTagsOk returns a tuple with the IncludeTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) GetName() string
GetName returns the Name field value.
func (o *LogsArchiveAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) GetQuery() string
GetQuery returns the Query field value.
func (o *LogsArchiveAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) GetRehydrationMaxScanSizeInGb() int64
GetRehydrationMaxScanSizeInGb returns the RehydrationMaxScanSizeInGb field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LogsArchiveAttributes) GetRehydrationMaxScanSizeInGbOk() (*int64, bool)
GetRehydrationMaxScanSizeInGbOk returns a tuple with the RehydrationMaxScanSizeInGb field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *LogsArchiveAttributes) GetRehydrationTags() []string
GetRehydrationTags returns the RehydrationTags field value if set, zero value otherwise.
func (o *LogsArchiveAttributes) GetRehydrationTagsOk() (*[]string, bool)
GetRehydrationTagsOk returns a tuple with the RehydrationTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) GetState() LogsArchiveState
GetState returns the State field value if set, zero value otherwise.
func (o *LogsArchiveAttributes) GetStateOk() (*LogsArchiveState, bool)
GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) HasIncludeTags() bool
HasIncludeTags returns a boolean if a field has been set.
func (o *LogsArchiveAttributes) HasRehydrationMaxScanSizeInGb() bool
HasRehydrationMaxScanSizeInGb returns a boolean if a field has been set.
func (o *LogsArchiveAttributes) HasRehydrationTags() bool
HasRehydrationTags returns a boolean if a field has been set.
func (o *LogsArchiveAttributes) HasState() bool
HasState returns a boolean if a field has been set.
func (o LogsArchiveAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveAttributes) SetDestination(v LogsArchiveDestination)
SetDestination sets field value.
func (o *LogsArchiveAttributes) SetIncludeTags(v bool)
SetIncludeTags gets a reference to the given bool and assigns it to the IncludeTags field.
func (o *LogsArchiveAttributes) SetName(v string)
SetName sets field value.
func (o *LogsArchiveAttributes) SetQuery(v string)
SetQuery sets field value.
func (o *LogsArchiveAttributes) SetRehydrationMaxScanSizeInGb(v int64)
SetRehydrationMaxScanSizeInGb gets a reference to the given datadog.NullableInt64 and assigns it to the RehydrationMaxScanSizeInGb field.
func (o *LogsArchiveAttributes) SetRehydrationMaxScanSizeInGbNil()
SetRehydrationMaxScanSizeInGbNil sets the value for RehydrationMaxScanSizeInGb to be an explicit nil.
func (o *LogsArchiveAttributes) SetRehydrationTags(v []string)
SetRehydrationTags gets a reference to the given []string and assigns it to the RehydrationTags field.
func (o *LogsArchiveAttributes) SetState(v LogsArchiveState)
SetState gets a reference to the given LogsArchiveState and assigns it to the State field.
func (o *LogsArchiveAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *LogsArchiveAttributes) UnsetRehydrationMaxScanSizeInGb()
UnsetRehydrationMaxScanSizeInGb ensures that no value is present for RehydrationMaxScanSizeInGb, not even an explicit nil.
LogsArchiveCreateRequest The logs archive.
type LogsArchiveCreateRequest struct {
// The definition of an archive.
Data *LogsArchiveCreateRequestDefinition `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveCreateRequest() *LogsArchiveCreateRequest
NewLogsArchiveCreateRequest instantiates a new LogsArchiveCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveCreateRequestWithDefaults() *LogsArchiveCreateRequest
NewLogsArchiveCreateRequestWithDefaults instantiates a new LogsArchiveCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveCreateRequest) GetData() LogsArchiveCreateRequestDefinition
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsArchiveCreateRequest) GetDataOk() (*LogsArchiveCreateRequestDefinition, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequest) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsArchiveCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveCreateRequest) SetData(v LogsArchiveCreateRequestDefinition)
SetData gets a reference to the given LogsArchiveCreateRequestDefinition and assigns it to the Data field.
func (o *LogsArchiveCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveCreateRequestAttributes The attributes associated with the archive.
type LogsArchiveCreateRequestAttributes struct {
// An archive's destination.
Destination LogsArchiveCreateRequestDestination `json:"destination"`
// To store the tags in the archive, set the value "true".
// If it is set to "false", the tags will be deleted when the logs are sent to the archive.
IncludeTags *bool `json:"include_tags,omitempty"`
// The archive name.
Name string `json:"name"`
// The archive query/filter. Logs matching this query are included in the archive.
Query string `json:"query"`
// Maximum scan size for rehydration from this archive.
RehydrationMaxScanSizeInGb datadog.NullableInt64 `json:"rehydration_max_scan_size_in_gb,omitempty"`
// An array of tags to add to rehydrated logs from an archive.
RehydrationTags []string `json:"rehydration_tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveCreateRequestAttributes(destination LogsArchiveCreateRequestDestination, name string, query string) *LogsArchiveCreateRequestAttributes
NewLogsArchiveCreateRequestAttributes instantiates a new LogsArchiveCreateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveCreateRequestAttributesWithDefaults() *LogsArchiveCreateRequestAttributes
NewLogsArchiveCreateRequestAttributesWithDefaults instantiates a new LogsArchiveCreateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveCreateRequestAttributes) GetDestination() LogsArchiveCreateRequestDestination
GetDestination returns the Destination field value.
func (o *LogsArchiveCreateRequestAttributes) GetDestinationOk() (*LogsArchiveCreateRequestDestination, bool)
GetDestinationOk returns a tuple with the Destination field value and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) GetIncludeTags() bool
GetIncludeTags returns the IncludeTags field value if set, zero value otherwise.
func (o *LogsArchiveCreateRequestAttributes) GetIncludeTagsOk() (*bool, bool)
GetIncludeTagsOk returns a tuple with the IncludeTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) GetName() string
GetName returns the Name field value.
func (o *LogsArchiveCreateRequestAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) GetQuery() string
GetQuery returns the Query field value.
func (o *LogsArchiveCreateRequestAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) GetRehydrationMaxScanSizeInGb() int64
GetRehydrationMaxScanSizeInGb returns the RehydrationMaxScanSizeInGb field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LogsArchiveCreateRequestAttributes) GetRehydrationMaxScanSizeInGbOk() (*int64, bool)
GetRehydrationMaxScanSizeInGbOk returns a tuple with the RehydrationMaxScanSizeInGb field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *LogsArchiveCreateRequestAttributes) GetRehydrationTags() []string
GetRehydrationTags returns the RehydrationTags field value if set, zero value otherwise.
func (o *LogsArchiveCreateRequestAttributes) GetRehydrationTagsOk() (*[]string, bool)
GetRehydrationTagsOk returns a tuple with the RehydrationTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) HasIncludeTags() bool
HasIncludeTags returns a boolean if a field has been set.
func (o *LogsArchiveCreateRequestAttributes) HasRehydrationMaxScanSizeInGb() bool
HasRehydrationMaxScanSizeInGb returns a boolean if a field has been set.
func (o *LogsArchiveCreateRequestAttributes) HasRehydrationTags() bool
HasRehydrationTags returns a boolean if a field has been set.
func (o LogsArchiveCreateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveCreateRequestAttributes) SetDestination(v LogsArchiveCreateRequestDestination)
SetDestination sets field value.
func (o *LogsArchiveCreateRequestAttributes) SetIncludeTags(v bool)
SetIncludeTags gets a reference to the given bool and assigns it to the IncludeTags field.
func (o *LogsArchiveCreateRequestAttributes) SetName(v string)
SetName sets field value.
func (o *LogsArchiveCreateRequestAttributes) SetQuery(v string)
SetQuery sets field value.
func (o *LogsArchiveCreateRequestAttributes) SetRehydrationMaxScanSizeInGb(v int64)
SetRehydrationMaxScanSizeInGb gets a reference to the given datadog.NullableInt64 and assigns it to the RehydrationMaxScanSizeInGb field.
func (o *LogsArchiveCreateRequestAttributes) SetRehydrationMaxScanSizeInGbNil()
SetRehydrationMaxScanSizeInGbNil sets the value for RehydrationMaxScanSizeInGb to be an explicit nil.
func (o *LogsArchiveCreateRequestAttributes) SetRehydrationTags(v []string)
SetRehydrationTags gets a reference to the given []string and assigns it to the RehydrationTags field.
func (o *LogsArchiveCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *LogsArchiveCreateRequestAttributes) UnsetRehydrationMaxScanSizeInGb()
UnsetRehydrationMaxScanSizeInGb ensures that no value is present for RehydrationMaxScanSizeInGb, not even an explicit nil.
LogsArchiveCreateRequestDefinition The definition of an archive.
type LogsArchiveCreateRequestDefinition struct {
// The attributes associated with the archive.
Attributes *LogsArchiveCreateRequestAttributes `json:"attributes,omitempty"`
// The type of the resource. The value should always be archives.
Type string `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveCreateRequestDefinition(typeVar string) *LogsArchiveCreateRequestDefinition
NewLogsArchiveCreateRequestDefinition instantiates a new LogsArchiveCreateRequestDefinition object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveCreateRequestDefinitionWithDefaults() *LogsArchiveCreateRequestDefinition
NewLogsArchiveCreateRequestDefinitionWithDefaults instantiates a new LogsArchiveCreateRequestDefinition object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveCreateRequestDefinition) GetAttributes() LogsArchiveCreateRequestAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *LogsArchiveCreateRequestDefinition) GetAttributesOk() (*LogsArchiveCreateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestDefinition) GetType() string
GetType returns the Type field value.
func (o *LogsArchiveCreateRequestDefinition) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestDefinition) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o LogsArchiveCreateRequestDefinition) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveCreateRequestDefinition) SetAttributes(v LogsArchiveCreateRequestAttributes)
SetAttributes gets a reference to the given LogsArchiveCreateRequestAttributes and assigns it to the Attributes field.
func (o *LogsArchiveCreateRequestDefinition) SetType(v string)
SetType sets field value.
func (o *LogsArchiveCreateRequestDefinition) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveCreateRequestDestination - An archive's destination.
type LogsArchiveCreateRequestDestination struct {
LogsArchiveDestinationAzure *LogsArchiveDestinationAzure
LogsArchiveDestinationGCS *LogsArchiveDestinationGCS
LogsArchiveDestinationS3 *LogsArchiveDestinationS3
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsArchiveDestinationAzureAsLogsArchiveCreateRequestDestination(v *LogsArchiveDestinationAzure) LogsArchiveCreateRequestDestination
LogsArchiveDestinationAzureAsLogsArchiveCreateRequestDestination is a convenience function that returns LogsArchiveDestinationAzure wrapped in LogsArchiveCreateRequestDestination.
func LogsArchiveDestinationGCSAsLogsArchiveCreateRequestDestination(v *LogsArchiveDestinationGCS) LogsArchiveCreateRequestDestination
LogsArchiveDestinationGCSAsLogsArchiveCreateRequestDestination is a convenience function that returns LogsArchiveDestinationGCS wrapped in LogsArchiveCreateRequestDestination.
func LogsArchiveDestinationS3AsLogsArchiveCreateRequestDestination(v *LogsArchiveDestinationS3) LogsArchiveCreateRequestDestination
LogsArchiveDestinationS3AsLogsArchiveCreateRequestDestination is a convenience function that returns LogsArchiveDestinationS3 wrapped in LogsArchiveCreateRequestDestination.
func (obj *LogsArchiveCreateRequestDestination) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsArchiveCreateRequestDestination) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsArchiveCreateRequestDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsArchiveDefinition The definition of an archive.
type LogsArchiveDefinition struct {
// The attributes associated with the archive.
Attributes *LogsArchiveAttributes `json:"attributes,omitempty"`
// The archive ID.
Id *string `json:"id,omitempty"`
// The type of the resource. The value should always be archives.
Type string `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveDefinition(typeVar string) *LogsArchiveDefinition
NewLogsArchiveDefinition instantiates a new LogsArchiveDefinition object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveDefinitionWithDefaults() *LogsArchiveDefinition
NewLogsArchiveDefinitionWithDefaults instantiates a new LogsArchiveDefinition object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveDefinition) GetAttributes() LogsArchiveAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *LogsArchiveDefinition) GetAttributesOk() (*LogsArchiveAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDefinition) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *LogsArchiveDefinition) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDefinition) GetType() string
GetType returns the Type field value.
func (o *LogsArchiveDefinition) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveDefinition) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *LogsArchiveDefinition) HasId() bool
HasId returns a boolean if a field has been set.
func (o LogsArchiveDefinition) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveDefinition) SetAttributes(v LogsArchiveAttributes)
SetAttributes gets a reference to the given LogsArchiveAttributes and assigns it to the Attributes field.
func (o *LogsArchiveDefinition) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *LogsArchiveDefinition) SetType(v string)
SetType sets field value.
func (o *LogsArchiveDefinition) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveDestination - An archive's destination.
type LogsArchiveDestination struct {
LogsArchiveDestinationAzure *LogsArchiveDestinationAzure
LogsArchiveDestinationGCS *LogsArchiveDestinationGCS
LogsArchiveDestinationS3 *LogsArchiveDestinationS3
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsArchiveDestinationAzureAsLogsArchiveDestination(v *LogsArchiveDestinationAzure) LogsArchiveDestination
LogsArchiveDestinationAzureAsLogsArchiveDestination is a convenience function that returns LogsArchiveDestinationAzure wrapped in LogsArchiveDestination.
func LogsArchiveDestinationGCSAsLogsArchiveDestination(v *LogsArchiveDestinationGCS) LogsArchiveDestination
LogsArchiveDestinationGCSAsLogsArchiveDestination is a convenience function that returns LogsArchiveDestinationGCS wrapped in LogsArchiveDestination.
func LogsArchiveDestinationS3AsLogsArchiveDestination(v *LogsArchiveDestinationS3) LogsArchiveDestination
LogsArchiveDestinationS3AsLogsArchiveDestination is a convenience function that returns LogsArchiveDestinationS3 wrapped in LogsArchiveDestination.
func (obj *LogsArchiveDestination) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsArchiveDestination) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsArchiveDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsArchiveDestinationAzure The Azure archive destination.
type LogsArchiveDestinationAzure struct {
// The container where the archive will be stored.
Container string `json:"container"`
// The Azure archive's integration destination.
Integration LogsArchiveIntegrationAzure `json:"integration"`
// The archive path.
Path *string `json:"path,omitempty"`
// The region where the archive will be stored.
Region *string `json:"region,omitempty"`
// The associated storage account.
StorageAccount string `json:"storage_account"`
// Type of the Azure archive destination.
Type LogsArchiveDestinationAzureType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveDestinationAzure(container string, integration LogsArchiveIntegrationAzure, storageAccount string, typeVar LogsArchiveDestinationAzureType) *LogsArchiveDestinationAzure
NewLogsArchiveDestinationAzure instantiates a new LogsArchiveDestinationAzure object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveDestinationAzureWithDefaults() *LogsArchiveDestinationAzure
NewLogsArchiveDestinationAzureWithDefaults instantiates a new LogsArchiveDestinationAzure object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveDestinationAzure) GetContainer() string
GetContainer returns the Container field value.
func (o *LogsArchiveDestinationAzure) GetContainerOk() (*string, bool)
GetContainerOk returns a tuple with the Container field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetIntegration() LogsArchiveIntegrationAzure
GetIntegration returns the Integration field value.
func (o *LogsArchiveDestinationAzure) GetIntegrationOk() (*LogsArchiveIntegrationAzure, bool)
GetIntegrationOk returns a tuple with the Integration field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsArchiveDestinationAzure) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetRegion() string
GetRegion returns the Region field value if set, zero value otherwise.
func (o *LogsArchiveDestinationAzure) GetRegionOk() (*string, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetStorageAccount() string
GetStorageAccount returns the StorageAccount field value.
func (o *LogsArchiveDestinationAzure) GetStorageAccountOk() (*string, bool)
GetStorageAccountOk returns a tuple with the StorageAccount field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetType() LogsArchiveDestinationAzureType
GetType returns the Type field value.
func (o *LogsArchiveDestinationAzure) GetTypeOk() (*LogsArchiveDestinationAzureType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o *LogsArchiveDestinationAzure) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o LogsArchiveDestinationAzure) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveDestinationAzure) SetContainer(v string)
SetContainer sets field value.
func (o *LogsArchiveDestinationAzure) SetIntegration(v LogsArchiveIntegrationAzure)
SetIntegration sets field value.
func (o *LogsArchiveDestinationAzure) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsArchiveDestinationAzure) SetRegion(v string)
SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *LogsArchiveDestinationAzure) SetStorageAccount(v string)
SetStorageAccount sets field value.
func (o *LogsArchiveDestinationAzure) SetType(v LogsArchiveDestinationAzureType)
SetType sets field value.
func (o *LogsArchiveDestinationAzure) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationAzureType Type of the Azure archive destination.
type LogsArchiveDestinationAzureType string
List of LogsArchiveDestinationAzureType.
const (
LOGSARCHIVEDESTINATIONAZURETYPE_AZURE LogsArchiveDestinationAzureType = "azure"
)
func NewLogsArchiveDestinationAzureTypeFromValue(v string) (*LogsArchiveDestinationAzureType, error)
NewLogsArchiveDestinationAzureTypeFromValue returns a pointer to a valid LogsArchiveDestinationAzureType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveDestinationAzureType) GetAllowedValues() []LogsArchiveDestinationAzureType
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveDestinationAzureType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveDestinationAzureType) Ptr() *LogsArchiveDestinationAzureType
Ptr returns reference to LogsArchiveDestinationAzureType value.
func (v *LogsArchiveDestinationAzureType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationGCS The GCS archive destination.
type LogsArchiveDestinationGCS struct {
// The bucket where the archive will be stored.
Bucket string `json:"bucket"`
// The GCS archive's integration destination.
Integration LogsArchiveIntegrationGCS `json:"integration"`
// The archive path.
Path *string `json:"path,omitempty"`
// Type of the GCS archive destination.
Type LogsArchiveDestinationGCSType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveDestinationGCS(bucket string, integration LogsArchiveIntegrationGCS, typeVar LogsArchiveDestinationGCSType) *LogsArchiveDestinationGCS
NewLogsArchiveDestinationGCS instantiates a new LogsArchiveDestinationGCS object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveDestinationGCSWithDefaults() *LogsArchiveDestinationGCS
NewLogsArchiveDestinationGCSWithDefaults instantiates a new LogsArchiveDestinationGCS object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveDestinationGCS) GetBucket() string
GetBucket returns the Bucket field value.
func (o *LogsArchiveDestinationGCS) GetBucketOk() (*string, bool)
GetBucketOk returns a tuple with the Bucket field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationGCS) GetIntegration() LogsArchiveIntegrationGCS
GetIntegration returns the Integration field value.
func (o *LogsArchiveDestinationGCS) GetIntegrationOk() (*LogsArchiveIntegrationGCS, bool)
GetIntegrationOk returns a tuple with the Integration field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationGCS) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsArchiveDestinationGCS) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationGCS) GetType() LogsArchiveDestinationGCSType
GetType returns the Type field value.
func (o *LogsArchiveDestinationGCS) GetTypeOk() (*LogsArchiveDestinationGCSType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationGCS) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o LogsArchiveDestinationGCS) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveDestinationGCS) SetBucket(v string)
SetBucket sets field value.
func (o *LogsArchiveDestinationGCS) SetIntegration(v LogsArchiveIntegrationGCS)
SetIntegration sets field value.
func (o *LogsArchiveDestinationGCS) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsArchiveDestinationGCS) SetType(v LogsArchiveDestinationGCSType)
SetType sets field value.
func (o *LogsArchiveDestinationGCS) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationGCSType Type of the GCS archive destination.
type LogsArchiveDestinationGCSType string
List of LogsArchiveDestinationGCSType.
const (
LOGSARCHIVEDESTINATIONGCSTYPE_GCS LogsArchiveDestinationGCSType = "gcs"
)
func NewLogsArchiveDestinationGCSTypeFromValue(v string) (*LogsArchiveDestinationGCSType, error)
NewLogsArchiveDestinationGCSTypeFromValue returns a pointer to a valid LogsArchiveDestinationGCSType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveDestinationGCSType) GetAllowedValues() []LogsArchiveDestinationGCSType
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveDestinationGCSType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveDestinationGCSType) Ptr() *LogsArchiveDestinationGCSType
Ptr returns reference to LogsArchiveDestinationGCSType value.
func (v *LogsArchiveDestinationGCSType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationS3 The S3 archive destination.
type LogsArchiveDestinationS3 struct {
// The bucket where the archive will be stored.
Bucket string `json:"bucket"`
// The S3 Archive's integration destination.
Integration LogsArchiveIntegrationS3 `json:"integration"`
// The archive path.
Path *string `json:"path,omitempty"`
// Type of the S3 archive destination.
Type LogsArchiveDestinationS3Type `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveDestinationS3(bucket string, integration LogsArchiveIntegrationS3, typeVar LogsArchiveDestinationS3Type) *LogsArchiveDestinationS3
NewLogsArchiveDestinationS3 instantiates a new LogsArchiveDestinationS3 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveDestinationS3WithDefaults() *LogsArchiveDestinationS3
NewLogsArchiveDestinationS3WithDefaults instantiates a new LogsArchiveDestinationS3 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveDestinationS3) GetBucket() string
GetBucket returns the Bucket field value.
func (o *LogsArchiveDestinationS3) GetBucketOk() (*string, bool)
GetBucketOk returns a tuple with the Bucket field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationS3) GetIntegration() LogsArchiveIntegrationS3
GetIntegration returns the Integration field value.
func (o *LogsArchiveDestinationS3) GetIntegrationOk() (*LogsArchiveIntegrationS3, bool)
GetIntegrationOk returns a tuple with the Integration field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationS3) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsArchiveDestinationS3) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationS3) GetType() LogsArchiveDestinationS3Type
GetType returns the Type field value.
func (o *LogsArchiveDestinationS3) GetTypeOk() (*LogsArchiveDestinationS3Type, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationS3) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o LogsArchiveDestinationS3) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveDestinationS3) SetBucket(v string)
SetBucket sets field value.
func (o *LogsArchiveDestinationS3) SetIntegration(v LogsArchiveIntegrationS3)
SetIntegration sets field value.
func (o *LogsArchiveDestinationS3) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsArchiveDestinationS3) SetType(v LogsArchiveDestinationS3Type)
SetType sets field value.
func (o *LogsArchiveDestinationS3) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationS3Type Type of the S3 archive destination.
type LogsArchiveDestinationS3Type string
List of LogsArchiveDestinationS3Type.
const (
LOGSARCHIVEDESTINATIONS3TYPE_S3 LogsArchiveDestinationS3Type = "s3"
)
func NewLogsArchiveDestinationS3TypeFromValue(v string) (*LogsArchiveDestinationS3Type, error)
NewLogsArchiveDestinationS3TypeFromValue returns a pointer to a valid LogsArchiveDestinationS3Type for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveDestinationS3Type) GetAllowedValues() []LogsArchiveDestinationS3Type
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveDestinationS3Type) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveDestinationS3Type) Ptr() *LogsArchiveDestinationS3Type
Ptr returns reference to LogsArchiveDestinationS3Type value.
func (v *LogsArchiveDestinationS3Type) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchiveIntegrationAzure The Azure archive's integration destination.
type LogsArchiveIntegrationAzure struct {
// A client ID.
ClientId string `json:"client_id"`
// A tenant ID.
TenantId string `json:"tenant_id"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveIntegrationAzure(clientId string, tenantId string) *LogsArchiveIntegrationAzure
NewLogsArchiveIntegrationAzure instantiates a new LogsArchiveIntegrationAzure object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveIntegrationAzureWithDefaults() *LogsArchiveIntegrationAzure
NewLogsArchiveIntegrationAzureWithDefaults instantiates a new LogsArchiveIntegrationAzure object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveIntegrationAzure) GetClientId() string
GetClientId returns the ClientId field value.
func (o *LogsArchiveIntegrationAzure) GetClientIdOk() (*string, bool)
GetClientIdOk returns a tuple with the ClientId field value and a boolean to check if the value has been set.
func (o *LogsArchiveIntegrationAzure) GetTenantId() string
GetTenantId returns the TenantId field value.
func (o *LogsArchiveIntegrationAzure) GetTenantIdOk() (*string, bool)
GetTenantIdOk returns a tuple with the TenantId field value and a boolean to check if the value has been set.
func (o LogsArchiveIntegrationAzure) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveIntegrationAzure) SetClientId(v string)
SetClientId sets field value.
func (o *LogsArchiveIntegrationAzure) SetTenantId(v string)
SetTenantId sets field value.
func (o *LogsArchiveIntegrationAzure) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveIntegrationGCS The GCS archive's integration destination.
type LogsArchiveIntegrationGCS struct {
// A client email.
ClientEmail string `json:"client_email"`
// A project ID.
ProjectId string `json:"project_id"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveIntegrationGCS(clientEmail string, projectId string) *LogsArchiveIntegrationGCS
NewLogsArchiveIntegrationGCS instantiates a new LogsArchiveIntegrationGCS object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveIntegrationGCSWithDefaults() *LogsArchiveIntegrationGCS
NewLogsArchiveIntegrationGCSWithDefaults instantiates a new LogsArchiveIntegrationGCS object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveIntegrationGCS) GetClientEmail() string
GetClientEmail returns the ClientEmail field value.
func (o *LogsArchiveIntegrationGCS) GetClientEmailOk() (*string, bool)
GetClientEmailOk returns a tuple with the ClientEmail field value and a boolean to check if the value has been set.
func (o *LogsArchiveIntegrationGCS) GetProjectId() string
GetProjectId returns the ProjectId field value.
func (o *LogsArchiveIntegrationGCS) GetProjectIdOk() (*string, bool)
GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.
func (o LogsArchiveIntegrationGCS) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveIntegrationGCS) SetClientEmail(v string)
SetClientEmail sets field value.
func (o *LogsArchiveIntegrationGCS) SetProjectId(v string)
SetProjectId sets field value.
func (o *LogsArchiveIntegrationGCS) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveIntegrationS3 The S3 Archive's integration destination.
type LogsArchiveIntegrationS3 struct {
// The account ID for the integration.
AccountId string `json:"account_id"`
// The path of the integration.
RoleName string `json:"role_name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveIntegrationS3(accountId string, roleName string) *LogsArchiveIntegrationS3
NewLogsArchiveIntegrationS3 instantiates a new LogsArchiveIntegrationS3 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveIntegrationS3WithDefaults() *LogsArchiveIntegrationS3
NewLogsArchiveIntegrationS3WithDefaults instantiates a new LogsArchiveIntegrationS3 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveIntegrationS3) GetAccountId() string
GetAccountId returns the AccountId field value.
func (o *LogsArchiveIntegrationS3) GetAccountIdOk() (*string, bool)
GetAccountIdOk returns a tuple with the AccountId field value and a boolean to check if the value has been set.
func (o *LogsArchiveIntegrationS3) GetRoleName() string
GetRoleName returns the RoleName field value.
func (o *LogsArchiveIntegrationS3) GetRoleNameOk() (*string, bool)
GetRoleNameOk returns a tuple with the RoleName field value and a boolean to check if the value has been set.
func (o LogsArchiveIntegrationS3) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveIntegrationS3) SetAccountId(v string)
SetAccountId sets field value.
func (o *LogsArchiveIntegrationS3) SetRoleName(v string)
SetRoleName sets field value.
func (o *LogsArchiveIntegrationS3) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveOrder A ordered list of archive IDs.
type LogsArchiveOrder struct {
// The definition of an archive order.
Data *LogsArchiveOrderDefinition `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveOrder() *LogsArchiveOrder
NewLogsArchiveOrder instantiates a new LogsArchiveOrder object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveOrderWithDefaults() *LogsArchiveOrder
NewLogsArchiveOrderWithDefaults instantiates a new LogsArchiveOrder object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveOrder) GetData() LogsArchiveOrderDefinition
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsArchiveOrder) GetDataOk() (*LogsArchiveOrderDefinition, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveOrder) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsArchiveOrder) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveOrder) SetData(v LogsArchiveOrderDefinition)
SetData gets a reference to the given LogsArchiveOrderDefinition and assigns it to the Data field.
func (o *LogsArchiveOrder) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveOrderAttributes The attributes associated with the archive order.
type LogsArchiveOrderAttributes struct {
// An ordered array of `<ARCHIVE_ID>` strings, the order of archive IDs in the array
// define the overall archives order for Datadog.
ArchiveIds []string `json:"archive_ids"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveOrderAttributes(archiveIds []string) *LogsArchiveOrderAttributes
NewLogsArchiveOrderAttributes instantiates a new LogsArchiveOrderAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveOrderAttributesWithDefaults() *LogsArchiveOrderAttributes
NewLogsArchiveOrderAttributesWithDefaults instantiates a new LogsArchiveOrderAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveOrderAttributes) GetArchiveIds() []string
GetArchiveIds returns the ArchiveIds field value.
func (o *LogsArchiveOrderAttributes) GetArchiveIdsOk() (*[]string, bool)
GetArchiveIdsOk returns a tuple with the ArchiveIds field value and a boolean to check if the value has been set.
func (o LogsArchiveOrderAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveOrderAttributes) SetArchiveIds(v []string)
SetArchiveIds sets field value.
func (o *LogsArchiveOrderAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveOrderDefinition The definition of an archive order.
type LogsArchiveOrderDefinition struct {
// The attributes associated with the archive order.
Attributes LogsArchiveOrderAttributes `json:"attributes"`
// Type of the archive order definition.
Type LogsArchiveOrderDefinitionType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveOrderDefinition(attributes LogsArchiveOrderAttributes, typeVar LogsArchiveOrderDefinitionType) *LogsArchiveOrderDefinition
NewLogsArchiveOrderDefinition instantiates a new LogsArchiveOrderDefinition object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveOrderDefinitionWithDefaults() *LogsArchiveOrderDefinition
NewLogsArchiveOrderDefinitionWithDefaults instantiates a new LogsArchiveOrderDefinition object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveOrderDefinition) GetAttributes() LogsArchiveOrderAttributes
GetAttributes returns the Attributes field value.
func (o *LogsArchiveOrderDefinition) GetAttributesOk() (*LogsArchiveOrderAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *LogsArchiveOrderDefinition) GetType() LogsArchiveOrderDefinitionType
GetType returns the Type field value.
func (o *LogsArchiveOrderDefinition) GetTypeOk() (*LogsArchiveOrderDefinitionType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o LogsArchiveOrderDefinition) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveOrderDefinition) SetAttributes(v LogsArchiveOrderAttributes)
SetAttributes sets field value.
func (o *LogsArchiveOrderDefinition) SetType(v LogsArchiveOrderDefinitionType)
SetType sets field value.
func (o *LogsArchiveOrderDefinition) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveOrderDefinitionType Type of the archive order definition.
type LogsArchiveOrderDefinitionType string
List of LogsArchiveOrderDefinitionType.
const (
LOGSARCHIVEORDERDEFINITIONTYPE_ARCHIVE_ORDER LogsArchiveOrderDefinitionType = "archive_order"
)
func NewLogsArchiveOrderDefinitionTypeFromValue(v string) (*LogsArchiveOrderDefinitionType, error)
NewLogsArchiveOrderDefinitionTypeFromValue returns a pointer to a valid LogsArchiveOrderDefinitionType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveOrderDefinitionType) GetAllowedValues() []LogsArchiveOrderDefinitionType
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveOrderDefinitionType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveOrderDefinitionType) Ptr() *LogsArchiveOrderDefinitionType
Ptr returns reference to LogsArchiveOrderDefinitionType value.
func (v *LogsArchiveOrderDefinitionType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchiveState The state of the archive.
type LogsArchiveState string
List of LogsArchiveState.
const (
LOGSARCHIVESTATE_UNKNOWN LogsArchiveState = "UNKNOWN"
LOGSARCHIVESTATE_WORKING LogsArchiveState = "WORKING"
LOGSARCHIVESTATE_FAILING LogsArchiveState = "FAILING"
LOGSARCHIVESTATE_WORKING_AUTH_LEGACY LogsArchiveState = "WORKING_AUTH_LEGACY"
)
func NewLogsArchiveStateFromValue(v string) (*LogsArchiveState, error)
NewLogsArchiveStateFromValue returns a pointer to a valid LogsArchiveState for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveState) GetAllowedValues() []LogsArchiveState
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveState) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveState) Ptr() *LogsArchiveState
Ptr returns reference to LogsArchiveState value.
func (v *LogsArchiveState) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchives The available archives.
type LogsArchives struct {
// A list of archives.
Data []LogsArchiveDefinition `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchives() *LogsArchives
NewLogsArchives instantiates a new LogsArchives object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchivesWithDefaults() *LogsArchives
NewLogsArchivesWithDefaults instantiates a new LogsArchives object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchives) GetData() []LogsArchiveDefinition
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsArchives) GetDataOk() (*[]LogsArchiveDefinition, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchives) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsArchives) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchives) SetData(v []LogsArchiveDefinition)
SetData gets a reference to the given []LogsArchiveDefinition and assigns it to the Data field.
func (o *LogsArchives) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchivesApi service type
type LogsArchivesApi datadog.Service
func NewLogsArchivesApi(client *datadog.APIClient) *LogsArchivesApi
NewLogsArchivesApi Returns NewLogsArchivesApi.
func (a *LogsArchivesApi) AddReadRoleToArchive(ctx _context.Context, archiveId string, body RelationshipToRole) (*_nethttp.Response, error)
AddReadRoleToArchive Grant role to an archive. Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/))
func (a *LogsArchivesApi) CreateLogsArchive(ctx _context.Context, body LogsArchiveCreateRequest) (LogsArchive, *_nethttp.Response, error)
CreateLogsArchive Create an archive. Create an archive in your organization.
func (a *LogsArchivesApi) DeleteLogsArchive(ctx _context.Context, archiveId string) (*_nethttp.Response, error)
DeleteLogsArchive Delete an archive. Delete a given archive from your organization.
func (a *LogsArchivesApi) GetLogsArchive(ctx _context.Context, archiveId string) (LogsArchive, *_nethttp.Response, error)
GetLogsArchive Get an archive. Get a specific archive from your organization.
func (a *LogsArchivesApi) GetLogsArchiveOrder(ctx _context.Context) (LogsArchiveOrder, *_nethttp.Response, error)
GetLogsArchiveOrder Get archive order. Get the current order of your archives. This endpoint takes no JSON arguments.
func (a *LogsArchivesApi) ListArchiveReadRoles(ctx _context.Context, archiveId string) (RolesResponse, *_nethttp.Response, error)
ListArchiveReadRoles List read roles for an archive. Returns all read roles a given archive is restricted to.
func (a *LogsArchivesApi) ListLogsArchives(ctx _context.Context) (LogsArchives, *_nethttp.Response, error)
ListLogsArchives Get all archives. Get the list of configured logs archives with their definitions.
func (a *LogsArchivesApi) RemoveRoleFromArchive(ctx _context.Context, archiveId string, body RelationshipToRole) (*_nethttp.Response, error)
RemoveRoleFromArchive Revoke role from an archive. Removes a role from an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/))
func (a *LogsArchivesApi) UpdateLogsArchive(ctx _context.Context, archiveId string, body LogsArchiveCreateRequest) (LogsArchive, *_nethttp.Response, error)
UpdateLogsArchive Update an archive. Update a given archive configuration.
**Note**: Using this method updates your archive configuration by **replacing** your current configuration with the new one sent to your Datadog organization.
func (a *LogsArchivesApi) UpdateLogsArchiveOrder(ctx _context.Context, body LogsArchiveOrder) (LogsArchiveOrder, *_nethttp.Response, error)
UpdateLogsArchiveOrder Update archive order. Update the order of your archives. Since logs are processed sequentially, reordering an archive may change the structure and content of the data processed by other archives.
**Note**: Using the `PUT` method updates your archive's order by replacing the current order with the new one.
LogsCompute A compute rule to compute metrics or timeseries
type LogsCompute struct {
// An aggregation function
Aggregation LogsAggregationFunction `json:"aggregation"`
// The time buckets' size (only used for type=timeseries)
// Defaults to a resolution of 150 points
Interval *string `json:"interval,omitempty"`
// The metric to use
Metric *string `json:"metric,omitempty"`
// The type of compute
Type *LogsComputeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsCompute(aggregation LogsAggregationFunction) *LogsCompute
NewLogsCompute instantiates a new LogsCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsComputeWithDefaults() *LogsCompute
NewLogsComputeWithDefaults instantiates a new LogsCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsCompute) GetAggregation() LogsAggregationFunction
GetAggregation returns the Aggregation field value.
func (o *LogsCompute) GetAggregationOk() (*LogsAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value and a boolean to check if the value has been set.
func (o *LogsCompute) GetInterval() string
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *LogsCompute) GetIntervalOk() (*string, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsCompute) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *LogsCompute) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsCompute) GetType() LogsComputeType
GetType returns the Type field value if set, zero value otherwise.
func (o *LogsCompute) GetTypeOk() (*LogsComputeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsCompute) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *LogsCompute) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *LogsCompute) HasType() bool
HasType returns a boolean if a field has been set.
func (o LogsCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsCompute) SetAggregation(v LogsAggregationFunction)
SetAggregation sets field value.
func (o *LogsCompute) SetInterval(v string)
SetInterval gets a reference to the given string and assigns it to the Interval field.
func (o *LogsCompute) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *LogsCompute) SetType(v LogsComputeType)
SetType gets a reference to the given LogsComputeType and assigns it to the Type field.
func (o *LogsCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsComputeType The type of compute
type LogsComputeType string
List of LogsComputeType.
const (
LOGSCOMPUTETYPE_TIMESERIES LogsComputeType = "timeseries"
LOGSCOMPUTETYPE_TOTAL LogsComputeType = "total"
)
func NewLogsComputeTypeFromValue(v string) (*LogsComputeType, error)
NewLogsComputeTypeFromValue returns a pointer to a valid LogsComputeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsComputeType) GetAllowedValues() []LogsComputeType
GetAllowedValues reeturns the list of possible values.
func (v LogsComputeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsComputeType) Ptr() *LogsComputeType
Ptr returns reference to LogsComputeType value.
func (v *LogsComputeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsGroupBy A group by rule
type LogsGroupBy struct {
// The name of the facet to use (required)
Facet string `json:"facet"`
// Used to perform a histogram computation (only for measure facets).
// Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
Histogram *LogsGroupByHistogram `json:"histogram,omitempty"`
// The maximum buckets to return for this group by
Limit *int64 `json:"limit,omitempty"`
// The value to use for logs that don't have the facet used to group by
Missing *LogsGroupByMissing `json:"missing,omitempty"`
// A sort rule
Sort *LogsAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *LogsGroupByTotal `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsGroupBy(facet string) *LogsGroupBy
NewLogsGroupBy instantiates a new LogsGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsGroupByWithDefaults() *LogsGroupBy
NewLogsGroupByWithDefaults instantiates a new LogsGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsGroupBy) GetFacet() string
GetFacet returns the Facet field value.
func (o *LogsGroupBy) GetFacetOk() (*string, bool)
GetFacetOk returns a tuple with the Facet field value and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetHistogram() LogsGroupByHistogram
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (o *LogsGroupBy) GetHistogramOk() (*LogsGroupByHistogram, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetLimit() int64
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *LogsGroupBy) GetLimitOk() (*int64, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetMissing() LogsGroupByMissing
GetMissing returns the Missing field value if set, zero value otherwise.
func (o *LogsGroupBy) GetMissingOk() (*LogsGroupByMissing, bool)
GetMissingOk returns a tuple with the Missing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetSort() LogsAggregateSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *LogsGroupBy) GetSortOk() (*LogsAggregateSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetTotal() LogsGroupByTotal
GetTotal returns the Total field value if set, zero value otherwise.
func (o *LogsGroupBy) GetTotalOk() (*LogsGroupByTotal, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) HasHistogram() bool
HasHistogram returns a boolean if a field has been set.
func (o *LogsGroupBy) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *LogsGroupBy) HasMissing() bool
HasMissing returns a boolean if a field has been set.
func (o *LogsGroupBy) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o *LogsGroupBy) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o LogsGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsGroupBy) SetFacet(v string)
SetFacet sets field value.
func (o *LogsGroupBy) SetHistogram(v LogsGroupByHistogram)
SetHistogram gets a reference to the given LogsGroupByHistogram and assigns it to the Histogram field.
func (o *LogsGroupBy) SetLimit(v int64)
SetLimit gets a reference to the given int64 and assigns it to the Limit field.
func (o *LogsGroupBy) SetMissing(v LogsGroupByMissing)
SetMissing gets a reference to the given LogsGroupByMissing and assigns it to the Missing field.
func (o *LogsGroupBy) SetSort(v LogsAggregateSort)
SetSort gets a reference to the given LogsAggregateSort and assigns it to the Sort field.
func (o *LogsGroupBy) SetTotal(v LogsGroupByTotal)
SetTotal gets a reference to the given LogsGroupByTotal and assigns it to the Total field.
func (o *LogsGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsGroupByHistogram Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
type LogsGroupByHistogram struct {
// The bin size of the histogram buckets
Interval float64 `json:"interval"`
// The maximum value for the measure used in the histogram
// (values greater than this one are filtered out)
Max float64 `json:"max"`
// The minimum value for the measure used in the histogram
// (values smaller than this one are filtered out)
Min float64 `json:"min"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsGroupByHistogram(interval float64, max float64, min float64) *LogsGroupByHistogram
NewLogsGroupByHistogram instantiates a new LogsGroupByHistogram object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsGroupByHistogramWithDefaults() *LogsGroupByHistogram
NewLogsGroupByHistogramWithDefaults instantiates a new LogsGroupByHistogram object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsGroupByHistogram) GetInterval() float64
GetInterval returns the Interval field value.
func (o *LogsGroupByHistogram) GetIntervalOk() (*float64, bool)
GetIntervalOk returns a tuple with the Interval field value and a boolean to check if the value has been set.
func (o *LogsGroupByHistogram) GetMax() float64
GetMax returns the Max field value.
func (o *LogsGroupByHistogram) GetMaxOk() (*float64, bool)
GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.
func (o *LogsGroupByHistogram) GetMin() float64
GetMin returns the Min field value.
func (o *LogsGroupByHistogram) GetMinOk() (*float64, bool)
GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.
func (o LogsGroupByHistogram) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsGroupByHistogram) SetInterval(v float64)
SetInterval sets field value.
func (o *LogsGroupByHistogram) SetMax(v float64)
SetMax sets field value.
func (o *LogsGroupByHistogram) SetMin(v float64)
SetMin sets field value.
func (o *LogsGroupByHistogram) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsGroupByMissing - The value to use for logs that don't have the facet used to group by
type LogsGroupByMissing struct {
LogsGroupByMissingString *string
LogsGroupByMissingNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsGroupByMissingNumberAsLogsGroupByMissing(v *float64) LogsGroupByMissing
LogsGroupByMissingNumberAsLogsGroupByMissing is a convenience function that returns float64 wrapped in LogsGroupByMissing.
func LogsGroupByMissingStringAsLogsGroupByMissing(v *string) LogsGroupByMissing
LogsGroupByMissingStringAsLogsGroupByMissing is a convenience function that returns string wrapped in LogsGroupByMissing.
func (obj *LogsGroupByMissing) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsGroupByMissing) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsGroupByMissing) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsGroupByTotal - A resulting object to put the given computes in over all the matching records.
type LogsGroupByTotal struct {
LogsGroupByTotalBoolean *bool
LogsGroupByTotalString *string
LogsGroupByTotalNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsGroupByTotalBooleanAsLogsGroupByTotal(v *bool) LogsGroupByTotal
LogsGroupByTotalBooleanAsLogsGroupByTotal is a convenience function that returns bool wrapped in LogsGroupByTotal.
func LogsGroupByTotalNumberAsLogsGroupByTotal(v *float64) LogsGroupByTotal
LogsGroupByTotalNumberAsLogsGroupByTotal is a convenience function that returns float64 wrapped in LogsGroupByTotal.
func LogsGroupByTotalStringAsLogsGroupByTotal(v *string) LogsGroupByTotal
LogsGroupByTotalStringAsLogsGroupByTotal is a convenience function that returns string wrapped in LogsGroupByTotal.
func (obj *LogsGroupByTotal) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsGroupByTotal) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsGroupByTotal) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsListRequest The request for a logs list.
type LogsListRequest struct {
// The search and filter query settings
Filter *LogsQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Note: You should only supply timezone or time offset but not both otherwise the query will fail.
Options *LogsQueryOptions `json:"options,omitempty"`
// Paging attributes for listing logs.
Page *LogsListRequestPage `json:"page,omitempty"`
// Sort parameters when querying logs.
Sort *LogsSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsListRequest() *LogsListRequest
NewLogsListRequest instantiates a new LogsListRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsListRequestWithDefaults() *LogsListRequest
NewLogsListRequestWithDefaults instantiates a new LogsListRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsListRequest) GetFilter() LogsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsListRequest) GetFilterOk() (*LogsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequest) GetOptions() LogsQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *LogsListRequest) GetOptionsOk() (*LogsQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequest) GetPage() LogsListRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *LogsListRequest) GetPageOk() (*LogsListRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequest) GetSort() LogsSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *LogsListRequest) GetSortOk() (*LogsSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsListRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *LogsListRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *LogsListRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o LogsListRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsListRequest) SetFilter(v LogsQueryFilter)
SetFilter gets a reference to the given LogsQueryFilter and assigns it to the Filter field.
func (o *LogsListRequest) SetOptions(v LogsQueryOptions)
SetOptions gets a reference to the given LogsQueryOptions and assigns it to the Options field.
func (o *LogsListRequest) SetPage(v LogsListRequestPage)
SetPage gets a reference to the given LogsListRequestPage and assigns it to the Page field.
func (o *LogsListRequest) SetSort(v LogsSort)
SetSort gets a reference to the given LogsSort and assigns it to the Sort field.
func (o *LogsListRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsListRequestPage Paging attributes for listing logs.
type LogsListRequestPage struct {
// List following results with a cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// Maximum number of logs in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsListRequestPage() *LogsListRequestPage
NewLogsListRequestPage instantiates a new LogsListRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsListRequestPageWithDefaults() *LogsListRequestPage
NewLogsListRequestPageWithDefaults instantiates a new LogsListRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsListRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *LogsListRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequestPage) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *LogsListRequestPage) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *LogsListRequestPage) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o LogsListRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsListRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *LogsListRequestPage) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *LogsListRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsListResponse Response object with all logs matching the request and pagination information.
type LogsListResponse struct {
// Array of logs matching the request.
Data []Log `json:"data,omitempty"`
// Links attributes.
Links *LogsListResponseLinks `json:"links,omitempty"`
// The metadata associated with a request
Meta *LogsResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsListResponse() *LogsListResponse
NewLogsListResponse instantiates a new LogsListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsListResponseWithDefaults() *LogsListResponse
NewLogsListResponseWithDefaults instantiates a new LogsListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsListResponse) GetData() []Log
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsListResponse) GetDataOk() (*[]Log, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListResponse) GetLinks() LogsListResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *LogsListResponse) GetLinksOk() (*LogsListResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListResponse) GetMeta() LogsResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *LogsListResponse) GetMetaOk() (*LogsResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *LogsListResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *LogsListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o LogsListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsListResponse) SetData(v []Log)
SetData gets a reference to the given []Log and assigns it to the Data field.
func (o *LogsListResponse) SetLinks(v LogsListResponseLinks)
SetLinks gets a reference to the given LogsListResponseLinks and assigns it to the Links field.
func (o *LogsListResponse) SetMeta(v LogsResponseMetadata)
SetMeta gets a reference to the given LogsResponseMetadata and assigns it to the Meta field.
func (o *LogsListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsListResponseLinks Links attributes.
type LogsListResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsListResponseLinks() *LogsListResponseLinks
NewLogsListResponseLinks instantiates a new LogsListResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsListResponseLinksWithDefaults() *LogsListResponseLinks
NewLogsListResponseLinksWithDefaults instantiates a new LogsListResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsListResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *LogsListResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o LogsListResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsListResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *LogsListResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricCompute The compute rule to compute the log-based metric.
type LogsMetricCompute struct {
// The type of aggregation to use.
AggregationType LogsMetricComputeAggregationType `json:"aggregation_type"`
// Toggle to include or exclude percentile aggregations for distribution metrics.
// Only present when the `aggregation_type` is `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution").
Path *string `json:"path,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricCompute(aggregationType LogsMetricComputeAggregationType) *LogsMetricCompute
NewLogsMetricCompute instantiates a new LogsMetricCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricComputeWithDefaults() *LogsMetricCompute
NewLogsMetricComputeWithDefaults instantiates a new LogsMetricCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricCompute) GetAggregationType() LogsMetricComputeAggregationType
GetAggregationType returns the AggregationType field value.
func (o *LogsMetricCompute) GetAggregationTypeOk() (*LogsMetricComputeAggregationType, bool)
GetAggregationTypeOk returns a tuple with the AggregationType field value and a boolean to check if the value has been set.
func (o *LogsMetricCompute) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *LogsMetricCompute) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricCompute) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsMetricCompute) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricCompute) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o *LogsMetricCompute) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o LogsMetricCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricCompute) SetAggregationType(v LogsMetricComputeAggregationType)
SetAggregationType sets field value.
func (o *LogsMetricCompute) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *LogsMetricCompute) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsMetricCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricComputeAggregationType The type of aggregation to use.
type LogsMetricComputeAggregationType string
List of LogsMetricComputeAggregationType.
const (
LOGSMETRICCOMPUTEAGGREGATIONTYPE_COUNT LogsMetricComputeAggregationType = "count"
LOGSMETRICCOMPUTEAGGREGATIONTYPE_DISTRIBUTION LogsMetricComputeAggregationType = "distribution"
)
func NewLogsMetricComputeAggregationTypeFromValue(v string) (*LogsMetricComputeAggregationType, error)
NewLogsMetricComputeAggregationTypeFromValue returns a pointer to a valid LogsMetricComputeAggregationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsMetricComputeAggregationType) GetAllowedValues() []LogsMetricComputeAggregationType
GetAllowedValues reeturns the list of possible values.
func (v LogsMetricComputeAggregationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsMetricComputeAggregationType) Ptr() *LogsMetricComputeAggregationType
Ptr returns reference to LogsMetricComputeAggregationType value.
func (v *LogsMetricComputeAggregationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsMetricCreateAttributes The object describing the Datadog log-based metric to create.
type LogsMetricCreateAttributes struct {
// The compute rule to compute the log-based metric.
Compute LogsMetricCompute `json:"compute"`
// The log-based metric filter. Logs matching this filter will be aggregated in this metric.
Filter *LogsMetricFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []LogsMetricGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricCreateAttributes(compute LogsMetricCompute) *LogsMetricCreateAttributes
NewLogsMetricCreateAttributes instantiates a new LogsMetricCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricCreateAttributesWithDefaults() *LogsMetricCreateAttributes
NewLogsMetricCreateAttributesWithDefaults instantiates a new LogsMetricCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricCreateAttributes) GetCompute() LogsMetricCompute
GetCompute returns the Compute field value.
func (o *LogsMetricCreateAttributes) GetComputeOk() (*LogsMetricCompute, bool)
GetComputeOk returns a tuple with the Compute field value and a boolean to check if the value has been set.
func (o *LogsMetricCreateAttributes) GetFilter() LogsMetricFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsMetricCreateAttributes) GetFilterOk() (*LogsMetricFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricCreateAttributes) GetGroupBy() []LogsMetricGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *LogsMetricCreateAttributes) GetGroupByOk() (*[]LogsMetricGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricCreateAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsMetricCreateAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o LogsMetricCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricCreateAttributes) SetCompute(v LogsMetricCompute)
SetCompute sets field value.
func (o *LogsMetricCreateAttributes) SetFilter(v LogsMetricFilter)
SetFilter gets a reference to the given LogsMetricFilter and assigns it to the Filter field.
func (o *LogsMetricCreateAttributes) SetGroupBy(v []LogsMetricGroupBy)
SetGroupBy gets a reference to the given []LogsMetricGroupBy and assigns it to the GroupBy field.
func (o *LogsMetricCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricCreateData The new log-based metric properties.
type LogsMetricCreateData struct {
// The object describing the Datadog log-based metric to create.
Attributes LogsMetricCreateAttributes `json:"attributes"`
// The name of the log-based metric.
Id string `json:"id"`
// The type of the resource. The value should always be logs_metrics.
Type LogsMetricType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricCreateData(attributes LogsMetricCreateAttributes, id string, typeVar LogsMetricType) *LogsMetricCreateData
NewLogsMetricCreateData instantiates a new LogsMetricCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricCreateDataWithDefaults() *LogsMetricCreateData
NewLogsMetricCreateDataWithDefaults instantiates a new LogsMetricCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricCreateData) GetAttributes() LogsMetricCreateAttributes
GetAttributes returns the Attributes field value.
func (o *LogsMetricCreateData) GetAttributesOk() (*LogsMetricCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *LogsMetricCreateData) GetId() string
GetId returns the Id field value.
func (o *LogsMetricCreateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *LogsMetricCreateData) GetType() LogsMetricType
GetType returns the Type field value.
func (o *LogsMetricCreateData) GetTypeOk() (*LogsMetricType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o LogsMetricCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricCreateData) SetAttributes(v LogsMetricCreateAttributes)
SetAttributes sets field value.
func (o *LogsMetricCreateData) SetId(v string)
SetId sets field value.
func (o *LogsMetricCreateData) SetType(v LogsMetricType)
SetType sets field value.
func (o *LogsMetricCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricCreateRequest The new log-based metric body.
type LogsMetricCreateRequest struct {
// The new log-based metric properties.
Data LogsMetricCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricCreateRequest(data LogsMetricCreateData) *LogsMetricCreateRequest
NewLogsMetricCreateRequest instantiates a new LogsMetricCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricCreateRequestWithDefaults() *LogsMetricCreateRequest
NewLogsMetricCreateRequestWithDefaults instantiates a new LogsMetricCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricCreateRequest) GetData() LogsMetricCreateData
GetData returns the Data field value.
func (o *LogsMetricCreateRequest) GetDataOk() (*LogsMetricCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o LogsMetricCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricCreateRequest) SetData(v LogsMetricCreateData)
SetData sets field value.
func (o *LogsMetricCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricFilter The log-based metric filter. Logs matching this filter will be aggregated in this metric.
type LogsMetricFilter struct {
// The search query - following the log search syntax.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricFilter() *LogsMetricFilter
NewLogsMetricFilter instantiates a new LogsMetricFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricFilterWithDefaults() *LogsMetricFilter
NewLogsMetricFilterWithDefaults instantiates a new LogsMetricFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *LogsMetricFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o LogsMetricFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *LogsMetricFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricGroupBy A group by rule.
type LogsMetricGroupBy struct {
// The path to the value the log-based metric will be aggregated over.
Path string `json:"path"`
// Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
TagName *string `json:"tag_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricGroupBy(path string) *LogsMetricGroupBy
NewLogsMetricGroupBy instantiates a new LogsMetricGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricGroupByWithDefaults() *LogsMetricGroupBy
NewLogsMetricGroupByWithDefaults instantiates a new LogsMetricGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricGroupBy) GetPath() string
GetPath returns the Path field value.
func (o *LogsMetricGroupBy) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.
func (o *LogsMetricGroupBy) GetTagName() string
GetTagName returns the TagName field value if set, zero value otherwise.
func (o *LogsMetricGroupBy) GetTagNameOk() (*string, bool)
GetTagNameOk returns a tuple with the TagName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricGroupBy) HasTagName() bool
HasTagName returns a boolean if a field has been set.
func (o LogsMetricGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricGroupBy) SetPath(v string)
SetPath sets field value.
func (o *LogsMetricGroupBy) SetTagName(v string)
SetTagName gets a reference to the given string and assigns it to the TagName field.
func (o *LogsMetricGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponse The log-based metric object.
type LogsMetricResponse struct {
// The log-based metric properties.
Data *LogsMetricResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponse() *LogsMetricResponse
NewLogsMetricResponse instantiates a new LogsMetricResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseWithDefaults() *LogsMetricResponse
NewLogsMetricResponseWithDefaults instantiates a new LogsMetricResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponse) GetData() LogsMetricResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsMetricResponse) GetDataOk() (*LogsMetricResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsMetricResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponse) SetData(v LogsMetricResponseData)
SetData gets a reference to the given LogsMetricResponseData and assigns it to the Data field.
func (o *LogsMetricResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseAttributes The object describing a Datadog log-based metric.
type LogsMetricResponseAttributes struct {
// The compute rule to compute the log-based metric.
Compute *LogsMetricResponseCompute `json:"compute,omitempty"`
// The log-based metric filter. Logs matching this filter will be aggregated in this metric.
Filter *LogsMetricResponseFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []LogsMetricResponseGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseAttributes() *LogsMetricResponseAttributes
NewLogsMetricResponseAttributes instantiates a new LogsMetricResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseAttributesWithDefaults() *LogsMetricResponseAttributes
NewLogsMetricResponseAttributesWithDefaults instantiates a new LogsMetricResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseAttributes) GetCompute() LogsMetricResponseCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *LogsMetricResponseAttributes) GetComputeOk() (*LogsMetricResponseCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseAttributes) GetFilter() LogsMetricResponseFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsMetricResponseAttributes) GetFilterOk() (*LogsMetricResponseFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseAttributes) GetGroupBy() []LogsMetricResponseGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *LogsMetricResponseAttributes) GetGroupByOk() (*[]LogsMetricResponseGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseAttributes) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *LogsMetricResponseAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsMetricResponseAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o LogsMetricResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseAttributes) SetCompute(v LogsMetricResponseCompute)
SetCompute gets a reference to the given LogsMetricResponseCompute and assigns it to the Compute field.
func (o *LogsMetricResponseAttributes) SetFilter(v LogsMetricResponseFilter)
SetFilter gets a reference to the given LogsMetricResponseFilter and assigns it to the Filter field.
func (o *LogsMetricResponseAttributes) SetGroupBy(v []LogsMetricResponseGroupBy)
SetGroupBy gets a reference to the given []LogsMetricResponseGroupBy and assigns it to the GroupBy field.
func (o *LogsMetricResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseCompute The compute rule to compute the log-based metric.
type LogsMetricResponseCompute struct {
// The type of aggregation to use.
AggregationType *LogsMetricResponseComputeAggregationType `json:"aggregation_type,omitempty"`
// Toggle to include or exclude percentile aggregations for distribution metrics.
// Only present when the `aggregation_type` is `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution").
Path *string `json:"path,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseCompute() *LogsMetricResponseCompute
NewLogsMetricResponseCompute instantiates a new LogsMetricResponseCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseComputeWithDefaults() *LogsMetricResponseCompute
NewLogsMetricResponseComputeWithDefaults instantiates a new LogsMetricResponseCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseCompute) GetAggregationType() LogsMetricResponseComputeAggregationType
GetAggregationType returns the AggregationType field value if set, zero value otherwise.
func (o *LogsMetricResponseCompute) GetAggregationTypeOk() (*LogsMetricResponseComputeAggregationType, bool)
GetAggregationTypeOk returns a tuple with the AggregationType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseCompute) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *LogsMetricResponseCompute) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseCompute) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsMetricResponseCompute) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseCompute) HasAggregationType() bool
HasAggregationType returns a boolean if a field has been set.
func (o *LogsMetricResponseCompute) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o *LogsMetricResponseCompute) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o LogsMetricResponseCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseCompute) SetAggregationType(v LogsMetricResponseComputeAggregationType)
SetAggregationType gets a reference to the given LogsMetricResponseComputeAggregationType and assigns it to the AggregationType field.
func (o *LogsMetricResponseCompute) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *LogsMetricResponseCompute) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsMetricResponseCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseComputeAggregationType The type of aggregation to use.
type LogsMetricResponseComputeAggregationType string
List of LogsMetricResponseComputeAggregationType.
const (
LOGSMETRICRESPONSECOMPUTEAGGREGATIONTYPE_COUNT LogsMetricResponseComputeAggregationType = "count"
LOGSMETRICRESPONSECOMPUTEAGGREGATIONTYPE_DISTRIBUTION LogsMetricResponseComputeAggregationType = "distribution"
)
func NewLogsMetricResponseComputeAggregationTypeFromValue(v string) (*LogsMetricResponseComputeAggregationType, error)
NewLogsMetricResponseComputeAggregationTypeFromValue returns a pointer to a valid LogsMetricResponseComputeAggregationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsMetricResponseComputeAggregationType) GetAllowedValues() []LogsMetricResponseComputeAggregationType
GetAllowedValues reeturns the list of possible values.
func (v LogsMetricResponseComputeAggregationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsMetricResponseComputeAggregationType) Ptr() *LogsMetricResponseComputeAggregationType
Ptr returns reference to LogsMetricResponseComputeAggregationType value.
func (v *LogsMetricResponseComputeAggregationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsMetricResponseData The log-based metric properties.
type LogsMetricResponseData struct {
// The object describing a Datadog log-based metric.
Attributes *LogsMetricResponseAttributes `json:"attributes,omitempty"`
// The name of the log-based metric.
Id *string `json:"id,omitempty"`
// The type of the resource. The value should always be logs_metrics.
Type *LogsMetricType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseData() *LogsMetricResponseData
NewLogsMetricResponseData instantiates a new LogsMetricResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseDataWithDefaults() *LogsMetricResponseData
NewLogsMetricResponseDataWithDefaults instantiates a new LogsMetricResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseData) GetAttributes() LogsMetricResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *LogsMetricResponseData) GetAttributesOk() (*LogsMetricResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *LogsMetricResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseData) GetType() LogsMetricType
GetType returns the Type field value if set, zero value otherwise.
func (o *LogsMetricResponseData) GetTypeOk() (*LogsMetricType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *LogsMetricResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *LogsMetricResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o LogsMetricResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseData) SetAttributes(v LogsMetricResponseAttributes)
SetAttributes gets a reference to the given LogsMetricResponseAttributes and assigns it to the Attributes field.
func (o *LogsMetricResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *LogsMetricResponseData) SetType(v LogsMetricType)
SetType gets a reference to the given LogsMetricType and assigns it to the Type field.
func (o *LogsMetricResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseFilter The log-based metric filter. Logs matching this filter will be aggregated in this metric.
type LogsMetricResponseFilter struct {
// The search query - following the log search syntax.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseFilter() *LogsMetricResponseFilter
NewLogsMetricResponseFilter instantiates a new LogsMetricResponseFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseFilterWithDefaults() *LogsMetricResponseFilter
NewLogsMetricResponseFilterWithDefaults instantiates a new LogsMetricResponseFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *LogsMetricResponseFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o LogsMetricResponseFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *LogsMetricResponseFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseGroupBy A group by rule.
type LogsMetricResponseGroupBy struct {
// The path to the value the log-based metric will be aggregated over.
Path *string `json:"path,omitempty"`
// Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
TagName *string `json:"tag_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseGroupBy() *LogsMetricResponseGroupBy
NewLogsMetricResponseGroupBy instantiates a new LogsMetricResponseGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseGroupByWithDefaults() *LogsMetricResponseGroupBy
NewLogsMetricResponseGroupByWithDefaults instantiates a new LogsMetricResponseGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseGroupBy) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsMetricResponseGroupBy) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseGroupBy) GetTagName() string
GetTagName returns the TagName field value if set, zero value otherwise.
func (o *LogsMetricResponseGroupBy) GetTagNameOk() (*string, bool)
GetTagNameOk returns a tuple with the TagName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseGroupBy) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o *LogsMetricResponseGroupBy) HasTagName() bool
HasTagName returns a boolean if a field has been set.
func (o LogsMetricResponseGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseGroupBy) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsMetricResponseGroupBy) SetTagName(v string)
SetTagName gets a reference to the given string and assigns it to the TagName field.
func (o *LogsMetricResponseGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricType The type of the resource. The value should always be logs_metrics.
type LogsMetricType string
List of LogsMetricType.
const (
LOGSMETRICTYPE_LOGS_METRICS LogsMetricType = "logs_metrics"
)
func NewLogsMetricTypeFromValue(v string) (*LogsMetricType, error)
NewLogsMetricTypeFromValue returns a pointer to a valid LogsMetricType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsMetricType) GetAllowedValues() []LogsMetricType
GetAllowedValues reeturns the list of possible values.
func (v LogsMetricType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsMetricType) Ptr() *LogsMetricType
Ptr returns reference to LogsMetricType value.
func (v *LogsMetricType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsMetricUpdateAttributes The log-based metric properties that will be updated.
type LogsMetricUpdateAttributes struct {
// The compute rule to compute the log-based metric.
Compute *LogsMetricUpdateCompute `json:"compute,omitempty"`
// The log-based metric filter. Logs matching this filter will be aggregated in this metric.
Filter *LogsMetricFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []LogsMetricGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricUpdateAttributes() *LogsMetricUpdateAttributes
NewLogsMetricUpdateAttributes instantiates a new LogsMetricUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricUpdateAttributesWithDefaults() *LogsMetricUpdateAttributes
NewLogsMetricUpdateAttributesWithDefaults instantiates a new LogsMetricUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricUpdateAttributes) GetCompute() LogsMetricUpdateCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *LogsMetricUpdateAttributes) GetComputeOk() (*LogsMetricUpdateCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricUpdateAttributes) GetFilter() LogsMetricFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsMetricUpdateAttributes) GetFilterOk() (*LogsMetricFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricUpdateAttributes) GetGroupBy() []LogsMetricGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *LogsMetricUpdateAttributes) GetGroupByOk() (*[]LogsMetricGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricUpdateAttributes) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *LogsMetricUpdateAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsMetricUpdateAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o LogsMetricUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricUpdateAttributes) SetCompute(v LogsMetricUpdateCompute)
SetCompute gets a reference to the given LogsMetricUpdateCompute and assigns it to the Compute field.
func (o *LogsMetricUpdateAttributes) SetFilter(v LogsMetricFilter)
SetFilter gets a reference to the given LogsMetricFilter and assigns it to the Filter field.
func (o *LogsMetricUpdateAttributes) SetGroupBy(v []LogsMetricGroupBy)
SetGroupBy gets a reference to the given []LogsMetricGroupBy and assigns it to the GroupBy field.
func (o *LogsMetricUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricUpdateCompute The compute rule to compute the log-based metric.
type LogsMetricUpdateCompute struct {
// Toggle to include or exclude percentile aggregations for distribution metrics.
// Only present when the `aggregation_type` is `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricUpdateCompute() *LogsMetricUpdateCompute
NewLogsMetricUpdateCompute instantiates a new LogsMetricUpdateCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricUpdateComputeWithDefaults() *LogsMetricUpdateCompute
NewLogsMetricUpdateComputeWithDefaults instantiates a new LogsMetricUpdateCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricUpdateCompute) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *LogsMetricUpdateCompute) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricUpdateCompute) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o LogsMetricUpdateCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricUpdateCompute) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *LogsMetricUpdateCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricUpdateData The new log-based metric properties.
type LogsMetricUpdateData struct {
// The log-based metric properties that will be updated.
Attributes LogsMetricUpdateAttributes `json:"attributes"`
// The type of the resource. The value should always be logs_metrics.
Type LogsMetricType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricUpdateData(attributes LogsMetricUpdateAttributes, typeVar LogsMetricType) *LogsMetricUpdateData
NewLogsMetricUpdateData instantiates a new LogsMetricUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricUpdateDataWithDefaults() *LogsMetricUpdateData
NewLogsMetricUpdateDataWithDefaults instantiates a new LogsMetricUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricUpdateData) GetAttributes() LogsMetricUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *LogsMetricUpdateData) GetAttributesOk() (*LogsMetricUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *LogsMetricUpdateData) GetType() LogsMetricType
GetType returns the Type field value.
func (o *LogsMetricUpdateData) GetTypeOk() (*LogsMetricType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o LogsMetricUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricUpdateData) SetAttributes(v LogsMetricUpdateAttributes)
SetAttributes sets field value.
func (o *LogsMetricUpdateData) SetType(v LogsMetricType)
SetType sets field value.
func (o *LogsMetricUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricUpdateRequest The new log-based metric body.
type LogsMetricUpdateRequest struct {
// The new log-based metric properties.
Data LogsMetricUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricUpdateRequest(data LogsMetricUpdateData) *LogsMetricUpdateRequest
NewLogsMetricUpdateRequest instantiates a new LogsMetricUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricUpdateRequestWithDefaults() *LogsMetricUpdateRequest
NewLogsMetricUpdateRequestWithDefaults instantiates a new LogsMetricUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricUpdateRequest) GetData() LogsMetricUpdateData
GetData returns the Data field value.
func (o *LogsMetricUpdateRequest) GetDataOk() (*LogsMetricUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o LogsMetricUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricUpdateRequest) SetData(v LogsMetricUpdateData)
SetData sets field value.
func (o *LogsMetricUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricsApi service type
type LogsMetricsApi datadog.Service
func NewLogsMetricsApi(client *datadog.APIClient) *LogsMetricsApi
NewLogsMetricsApi Returns NewLogsMetricsApi.
func (a *LogsMetricsApi) CreateLogsMetric(ctx _context.Context, body LogsMetricCreateRequest) (LogsMetricResponse, *_nethttp.Response, error)
CreateLogsMetric Create a log-based metric. Create a metric based on your ingested logs in your organization. Returns the log-based metric object from the request body when the request is successful.
func (a *LogsMetricsApi) DeleteLogsMetric(ctx _context.Context, metricId string) (*_nethttp.Response, error)
DeleteLogsMetric Delete a log-based metric. Delete a specific log-based metric from your organization.
func (a *LogsMetricsApi) GetLogsMetric(ctx _context.Context, metricId string) (LogsMetricResponse, *_nethttp.Response, error)
GetLogsMetric Get a log-based metric. Get a specific log-based metric from your organization.
func (a *LogsMetricsApi) ListLogsMetrics(ctx _context.Context) (LogsMetricsResponse, *_nethttp.Response, error)
ListLogsMetrics Get all log-based metrics. Get the list of configured log-based metrics with their definitions.
func (a *LogsMetricsApi) UpdateLogsMetric(ctx _context.Context, metricId string, body LogsMetricUpdateRequest) (LogsMetricResponse, *_nethttp.Response, error)
UpdateLogsMetric Update a log-based metric. Update a specific log-based metric from your organization. Returns the log-based metric object from the request body when the request is successful.
LogsMetricsResponse All the available log-based metric objects.
type LogsMetricsResponse struct {
// A list of log-based metric objects.
Data []LogsMetricResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricsResponse() *LogsMetricsResponse
NewLogsMetricsResponse instantiates a new LogsMetricsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricsResponseWithDefaults() *LogsMetricsResponse
NewLogsMetricsResponseWithDefaults instantiates a new LogsMetricsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricsResponse) GetData() []LogsMetricResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsMetricsResponse) GetDataOk() (*[]LogsMetricResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsMetricsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricsResponse) SetData(v []LogsMetricResponseData)
SetData gets a reference to the given []LogsMetricResponseData and assigns it to the Data field.
func (o *LogsMetricsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsQueryFilter The search and filter query settings
type LogsQueryFilter struct {
// The minimum time for the requested logs, supports date math and regular timestamps (milliseconds).
From *string `json:"from,omitempty"`
// For customers with multiple indexes, the indexes to search. Defaults to ['*'] which means all indexes.
Indexes []string `json:"indexes,omitempty"`
// The search query - following the log search syntax.
Query *string `json:"query,omitempty"`
// Specifies storage type as indexes or online-archives
StorageTier *LogsStorageTier `json:"storage_tier,omitempty"`
// The maximum time for the requested logs, supports date math and regular timestamps (milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsQueryFilter() *LogsQueryFilter
NewLogsQueryFilter instantiates a new LogsQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsQueryFilterWithDefaults() *LogsQueryFilter
NewLogsQueryFilterWithDefaults instantiates a new LogsQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) GetIndexes() []string
GetIndexes returns the Indexes field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetIndexesOk() (*[]string, bool)
GetIndexesOk returns a tuple with the Indexes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) GetStorageTier() LogsStorageTier
GetStorageTier returns the StorageTier field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetStorageTierOk() (*LogsStorageTier, bool)
GetStorageTierOk returns a tuple with the StorageTier field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *LogsQueryFilter) HasIndexes() bool
HasIndexes returns a boolean if a field has been set.
func (o *LogsQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *LogsQueryFilter) HasStorageTier() bool
HasStorageTier returns a boolean if a field has been set.
func (o *LogsQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o LogsQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *LogsQueryFilter) SetIndexes(v []string)
SetIndexes gets a reference to the given []string and assigns it to the Indexes field.
func (o *LogsQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *LogsQueryFilter) SetStorageTier(v LogsStorageTier)
SetStorageTier gets a reference to the given LogsStorageTier and assigns it to the StorageTier field.
func (o *LogsQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *LogsQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsQueryOptions Global query options that are used during the query. Note: You should only supply timezone or time offset but not both otherwise the query will fail.
type LogsQueryOptions struct {
// The time offset (in seconds) to apply to the query.
TimeOffset *int64 `json:"timeOffset,omitempty"`
// The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York).
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsQueryOptions() *LogsQueryOptions
NewLogsQueryOptions instantiates a new LogsQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsQueryOptionsWithDefaults() *LogsQueryOptions
NewLogsQueryOptionsWithDefaults instantiates a new LogsQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *LogsQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *LogsQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *LogsQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o LogsQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *LogsQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *LogsQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsResponseMetadata The metadata associated with a request
type LogsResponseMetadata struct {
// The time elapsed in milliseconds
Elapsed *int64 `json:"elapsed,omitempty"`
// Paging attributes.
Page *LogsResponseMetadataPage `json:"page,omitempty"`
// The identifier of the request
RequestId *string `json:"request_id,omitempty"`
// The status of the response
Status *LogsAggregateResponseStatus `json:"status,omitempty"`
// A list of warnings (non fatal errors) encountered, partial results might be returned if
// warnings are present in the response.
Warnings []LogsWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsResponseMetadata() *LogsResponseMetadata
NewLogsResponseMetadata instantiates a new LogsResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsResponseMetadataWithDefaults() *LogsResponseMetadata
NewLogsResponseMetadataWithDefaults instantiates a new LogsResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) GetPage() LogsResponseMetadataPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetPageOk() (*LogsResponseMetadataPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) GetStatus() LogsAggregateResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetStatusOk() (*LogsAggregateResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) GetWarnings() []LogsWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetWarningsOk() (*[]LogsWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *LogsResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *LogsResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *LogsResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *LogsResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o LogsResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *LogsResponseMetadata) SetPage(v LogsResponseMetadataPage)
SetPage gets a reference to the given LogsResponseMetadataPage and assigns it to the Page field.
func (o *LogsResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *LogsResponseMetadata) SetStatus(v LogsAggregateResponseStatus)
SetStatus gets a reference to the given LogsAggregateResponseStatus and assigns it to the Status field.
func (o *LogsResponseMetadata) SetWarnings(v []LogsWarning)
SetWarnings gets a reference to the given []LogsWarning and assigns it to the Warnings field.
func (o *LogsResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsResponseMetadataPage Paging attributes.
type LogsResponseMetadataPage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same.
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsResponseMetadataPage() *LogsResponseMetadataPage
NewLogsResponseMetadataPage instantiates a new LogsResponseMetadataPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsResponseMetadataPageWithDefaults() *LogsResponseMetadataPage
NewLogsResponseMetadataPageWithDefaults instantiates a new LogsResponseMetadataPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsResponseMetadataPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *LogsResponseMetadataPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadataPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o LogsResponseMetadataPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsResponseMetadataPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *LogsResponseMetadataPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsSort Sort parameters when querying logs.
type LogsSort string
List of LogsSort.
const (
LOGSSORT_TIMESTAMP_ASCENDING LogsSort = "timestamp"
LOGSSORT_TIMESTAMP_DESCENDING LogsSort = "-timestamp"
)
func NewLogsSortFromValue(v string) (*LogsSort, error)
NewLogsSortFromValue returns a pointer to a valid LogsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsSort) GetAllowedValues() []LogsSort
GetAllowedValues reeturns the list of possible values.
func (v LogsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsSort) Ptr() *LogsSort
Ptr returns reference to LogsSort value.
func (v *LogsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsSortOrder The order to use, ascending or descending
type LogsSortOrder string
List of LogsSortOrder.
const (
LOGSSORTORDER_ASCENDING LogsSortOrder = "asc"
LOGSSORTORDER_DESCENDING LogsSortOrder = "desc"
)
func NewLogsSortOrderFromValue(v string) (*LogsSortOrder, error)
NewLogsSortOrderFromValue returns a pointer to a valid LogsSortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsSortOrder) GetAllowedValues() []LogsSortOrder
GetAllowedValues reeturns the list of possible values.
func (v LogsSortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsSortOrder) Ptr() *LogsSortOrder
Ptr returns reference to LogsSortOrder value.
func (v *LogsSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsStorageTier Specifies storage type as indexes or online-archives
type LogsStorageTier string
List of LogsStorageTier.
const (
LOGSSTORAGETIER_INDEXES LogsStorageTier = "indexes"
LOGSSTORAGETIER_ONLINE_ARCHIVES LogsStorageTier = "online-archives"
)
func NewLogsStorageTierFromValue(v string) (*LogsStorageTier, error)
NewLogsStorageTierFromValue returns a pointer to a valid LogsStorageTier for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsStorageTier) GetAllowedValues() []LogsStorageTier
GetAllowedValues reeturns the list of possible values.
func (v LogsStorageTier) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsStorageTier) Ptr() *LogsStorageTier
Ptr returns reference to LogsStorageTier value.
func (v *LogsStorageTier) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsWarning A warning message indicating something that went wrong with the query
type LogsWarning struct {
// A unique code for this type of warning
Code *string `json:"code,omitempty"`
// A detailed explanation of this specific warning
Detail *string `json:"detail,omitempty"`
// A short human-readable summary of the warning
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsWarning() *LogsWarning
NewLogsWarning instantiates a new LogsWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsWarningWithDefaults() *LogsWarning
NewLogsWarningWithDefaults instantiates a new LogsWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *LogsWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *LogsWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *LogsWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *LogsWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *LogsWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o LogsWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *LogsWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *LogsWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *LogsWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MakeGCPSTSDelegateOptionalParameters holds optional parameters for MakeGCPSTSDelegate.
type MakeGCPSTSDelegateOptionalParameters struct {
Body *interface{}
}
func NewMakeGCPSTSDelegateOptionalParameters() *MakeGCPSTSDelegateOptionalParameters
NewMakeGCPSTSDelegateOptionalParameters creates an empty struct for parameters.
func (r *MakeGCPSTSDelegateOptionalParameters) WithBody(body interface{}) *MakeGCPSTSDelegateOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
Metric Object for a single metric tag configuration.
type Metric struct {
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric resource type.
Type *MetricType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetric() *Metric
NewMetric instantiates a new Metric object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricWithDefaults() *Metric
NewMetricWithDefaults instantiates a new Metric object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Metric) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Metric) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Metric) GetType() MetricType
GetType returns the Type field value if set, zero value otherwise.
func (o *Metric) GetTypeOk() (*MetricType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Metric) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Metric) HasType() bool
HasType returns a boolean if a field has been set.
func (o Metric) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Metric) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Metric) SetType(v MetricType)
SetType gets a reference to the given MetricType and assigns it to the Type field.
func (o *Metric) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricActiveConfigurationType The metric actively queried configuration resource type.
type MetricActiveConfigurationType string
List of MetricActiveConfigurationType.
const (
METRICACTIVECONFIGURATIONTYPE_ACTIVELY_QUERIED_CONFIGURATIONS MetricActiveConfigurationType = "actively_queried_configurations"
)
func NewMetricActiveConfigurationTypeFromValue(v string) (*MetricActiveConfigurationType, error)
NewMetricActiveConfigurationTypeFromValue returns a pointer to a valid MetricActiveConfigurationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricActiveConfigurationType) GetAllowedValues() []MetricActiveConfigurationType
GetAllowedValues reeturns the list of possible values.
func (v MetricActiveConfigurationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricActiveConfigurationType) Ptr() *MetricActiveConfigurationType
Ptr returns reference to MetricActiveConfigurationType value.
func (v *MetricActiveConfigurationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricAllTags Object for a single metric's indexed tags.
type MetricAllTags struct {
// Object containing the definition of a metric's tags.
Attributes *MetricAllTagsAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric resource type.
Type *MetricType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricAllTags() *MetricAllTags
NewMetricAllTags instantiates a new MetricAllTags object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricAllTagsWithDefaults() *MetricAllTags
NewMetricAllTagsWithDefaults instantiates a new MetricAllTags object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricAllTags) GetAttributes() MetricAllTagsAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricAllTags) GetAttributesOk() (*MetricAllTagsAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTags) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricAllTags) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTags) GetType() MetricType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricAllTags) GetTypeOk() (*MetricType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTags) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricAllTags) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricAllTags) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricAllTags) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricAllTags) SetAttributes(v MetricAllTagsAttributes)
SetAttributes gets a reference to the given MetricAllTagsAttributes and assigns it to the Attributes field.
func (o *MetricAllTags) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricAllTags) SetType(v MetricType)
SetType gets a reference to the given MetricType and assigns it to the Type field.
func (o *MetricAllTags) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricAllTagsAttributes Object containing the definition of a metric's tags.
type MetricAllTagsAttributes struct {
// List of indexed tag value pairs.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricAllTagsAttributes() *MetricAllTagsAttributes
NewMetricAllTagsAttributes instantiates a new MetricAllTagsAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricAllTagsAttributesWithDefaults() *MetricAllTagsAttributes
NewMetricAllTagsAttributesWithDefaults instantiates a new MetricAllTagsAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricAllTagsAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricAllTagsAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTagsAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricAllTagsAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricAllTagsAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricAllTagsAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricAllTagsResponse Response object that includes a single metric's indexed tags.
type MetricAllTagsResponse struct {
// Object for a single metric's indexed tags.
Data *MetricAllTags `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricAllTagsResponse() *MetricAllTagsResponse
NewMetricAllTagsResponse instantiates a new MetricAllTagsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricAllTagsResponseWithDefaults() *MetricAllTagsResponse
NewMetricAllTagsResponseWithDefaults instantiates a new MetricAllTagsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricAllTagsResponse) GetData() MetricAllTags
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricAllTagsResponse) GetDataOk() (*MetricAllTags, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTagsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricAllTagsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricAllTagsResponse) SetData(v MetricAllTags)
SetData gets a reference to the given MetricAllTags and assigns it to the Data field.
func (o *MetricAllTagsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkConfigureTagsType The metric bulk configure tags resource.
type MetricBulkConfigureTagsType string
List of MetricBulkConfigureTagsType.
const (
METRICBULKCONFIGURETAGSTYPE_BULK_MANAGE_TAGS MetricBulkConfigureTagsType = "metric_bulk_configure_tags"
)
func NewMetricBulkConfigureTagsTypeFromValue(v string) (*MetricBulkConfigureTagsType, error)
NewMetricBulkConfigureTagsTypeFromValue returns a pointer to a valid MetricBulkConfigureTagsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricBulkConfigureTagsType) GetAllowedValues() []MetricBulkConfigureTagsType
GetAllowedValues reeturns the list of possible values.
func (v MetricBulkConfigureTagsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricBulkConfigureTagsType) Ptr() *MetricBulkConfigureTagsType
Ptr returns reference to MetricBulkConfigureTagsType value.
func (v *MetricBulkConfigureTagsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigCreate Request object to bulk configure tags for metrics matching the given prefix.
type MetricBulkTagConfigCreate struct {
// Optional parameters for bulk creating metric tag configurations.
Attributes *MetricBulkTagConfigCreateAttributes `json:"attributes,omitempty"`
// A text prefix to match against metric names.
Id string `json:"id"`
// The metric bulk configure tags resource.
Type MetricBulkConfigureTagsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigCreate(id string, typeVar MetricBulkConfigureTagsType) *MetricBulkTagConfigCreate
NewMetricBulkTagConfigCreate instantiates a new MetricBulkTagConfigCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigCreateWithDefaults() *MetricBulkTagConfigCreate
NewMetricBulkTagConfigCreateWithDefaults instantiates a new MetricBulkTagConfigCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigCreate) GetAttributes() MetricBulkTagConfigCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricBulkTagConfigCreate) GetAttributesOk() (*MetricBulkTagConfigCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreate) GetId() string
GetId returns the Id field value.
func (o *MetricBulkTagConfigCreate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreate) GetType() MetricBulkConfigureTagsType
GetType returns the Type field value.
func (o *MetricBulkTagConfigCreate) GetTypeOk() (*MetricBulkConfigureTagsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricBulkTagConfigCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigCreate) SetAttributes(v MetricBulkTagConfigCreateAttributes)
SetAttributes gets a reference to the given MetricBulkTagConfigCreateAttributes and assigns it to the Attributes field.
func (o *MetricBulkTagConfigCreate) SetId(v string)
SetId sets field value.
func (o *MetricBulkTagConfigCreate) SetType(v MetricBulkConfigureTagsType)
SetType sets field value.
func (o *MetricBulkTagConfigCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigCreateAttributes Optional parameters for bulk creating metric tag configurations.
type MetricBulkTagConfigCreateAttributes struct {
// A list of account emails to notify when the configuration is applied.
Emails []string `json:"emails,omitempty"`
// A list of tag names to apply to the configuration.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigCreateAttributes() *MetricBulkTagConfigCreateAttributes
NewMetricBulkTagConfigCreateAttributes instantiates a new MetricBulkTagConfigCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigCreateAttributesWithDefaults() *MetricBulkTagConfigCreateAttributes
NewMetricBulkTagConfigCreateAttributesWithDefaults instantiates a new MetricBulkTagConfigCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigCreateAttributes) GetEmails() []string
GetEmails returns the Emails field value if set, zero value otherwise.
func (o *MetricBulkTagConfigCreateAttributes) GetEmailsOk() (*[]string, bool)
GetEmailsOk returns a tuple with the Emails field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreateAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricBulkTagConfigCreateAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreateAttributes) HasEmails() bool
HasEmails returns a boolean if a field has been set.
func (o *MetricBulkTagConfigCreateAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricBulkTagConfigCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigCreateAttributes) SetEmails(v []string)
SetEmails gets a reference to the given []string and assigns it to the Emails field.
func (o *MetricBulkTagConfigCreateAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricBulkTagConfigCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigCreateRequest Wrapper object for a single bulk tag configuration request.
type MetricBulkTagConfigCreateRequest struct {
// Request object to bulk configure tags for metrics matching the given prefix.
Data MetricBulkTagConfigCreate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigCreateRequest(data MetricBulkTagConfigCreate) *MetricBulkTagConfigCreateRequest
NewMetricBulkTagConfigCreateRequest instantiates a new MetricBulkTagConfigCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigCreateRequestWithDefaults() *MetricBulkTagConfigCreateRequest
NewMetricBulkTagConfigCreateRequestWithDefaults instantiates a new MetricBulkTagConfigCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigCreateRequest) GetData() MetricBulkTagConfigCreate
GetData returns the Data field value.
func (o *MetricBulkTagConfigCreateRequest) GetDataOk() (*MetricBulkTagConfigCreate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MetricBulkTagConfigCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigCreateRequest) SetData(v MetricBulkTagConfigCreate)
SetData sets field value.
func (o *MetricBulkTagConfigCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigDelete Request object to bulk delete all tag configurations for metrics matching the given prefix.
type MetricBulkTagConfigDelete struct {
// Optional parameters for bulk deleting metric tag configurations.
Attributes *MetricBulkTagConfigDeleteAttributes `json:"attributes,omitempty"`
// A text prefix to match against metric names.
Id string `json:"id"`
// The metric bulk configure tags resource.
Type MetricBulkConfigureTagsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigDelete(id string, typeVar MetricBulkConfigureTagsType) *MetricBulkTagConfigDelete
NewMetricBulkTagConfigDelete instantiates a new MetricBulkTagConfigDelete object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigDeleteWithDefaults() *MetricBulkTagConfigDelete
NewMetricBulkTagConfigDeleteWithDefaults instantiates a new MetricBulkTagConfigDelete object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigDelete) GetAttributes() MetricBulkTagConfigDeleteAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricBulkTagConfigDelete) GetAttributesOk() (*MetricBulkTagConfigDeleteAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigDelete) GetId() string
GetId returns the Id field value.
func (o *MetricBulkTagConfigDelete) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigDelete) GetType() MetricBulkConfigureTagsType
GetType returns the Type field value.
func (o *MetricBulkTagConfigDelete) GetTypeOk() (*MetricBulkConfigureTagsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigDelete) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricBulkTagConfigDelete) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigDelete) SetAttributes(v MetricBulkTagConfigDeleteAttributes)
SetAttributes gets a reference to the given MetricBulkTagConfigDeleteAttributes and assigns it to the Attributes field.
func (o *MetricBulkTagConfigDelete) SetId(v string)
SetId sets field value.
func (o *MetricBulkTagConfigDelete) SetType(v MetricBulkConfigureTagsType)
SetType sets field value.
func (o *MetricBulkTagConfigDelete) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigDeleteAttributes Optional parameters for bulk deleting metric tag configurations.
type MetricBulkTagConfigDeleteAttributes struct {
// A list of account emails to notify when the configuration is applied.
Emails []string `json:"emails,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigDeleteAttributes() *MetricBulkTagConfigDeleteAttributes
NewMetricBulkTagConfigDeleteAttributes instantiates a new MetricBulkTagConfigDeleteAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigDeleteAttributesWithDefaults() *MetricBulkTagConfigDeleteAttributes
NewMetricBulkTagConfigDeleteAttributesWithDefaults instantiates a new MetricBulkTagConfigDeleteAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigDeleteAttributes) GetEmails() []string
GetEmails returns the Emails field value if set, zero value otherwise.
func (o *MetricBulkTagConfigDeleteAttributes) GetEmailsOk() (*[]string, bool)
GetEmailsOk returns a tuple with the Emails field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigDeleteAttributes) HasEmails() bool
HasEmails returns a boolean if a field has been set.
func (o MetricBulkTagConfigDeleteAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigDeleteAttributes) SetEmails(v []string)
SetEmails gets a reference to the given []string and assigns it to the Emails field.
func (o *MetricBulkTagConfigDeleteAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigDeleteRequest Wrapper object for a single bulk tag deletion request.
type MetricBulkTagConfigDeleteRequest struct {
// Request object to bulk delete all tag configurations for metrics matching the given prefix.
Data MetricBulkTagConfigDelete `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigDeleteRequest(data MetricBulkTagConfigDelete) *MetricBulkTagConfigDeleteRequest
NewMetricBulkTagConfigDeleteRequest instantiates a new MetricBulkTagConfigDeleteRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigDeleteRequestWithDefaults() *MetricBulkTagConfigDeleteRequest
NewMetricBulkTagConfigDeleteRequestWithDefaults instantiates a new MetricBulkTagConfigDeleteRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigDeleteRequest) GetData() MetricBulkTagConfigDelete
GetData returns the Data field value.
func (o *MetricBulkTagConfigDeleteRequest) GetDataOk() (*MetricBulkTagConfigDelete, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MetricBulkTagConfigDeleteRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigDeleteRequest) SetData(v MetricBulkTagConfigDelete)
SetData sets field value.
func (o *MetricBulkTagConfigDeleteRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigResponse Wrapper for a single bulk tag configuration status response.
type MetricBulkTagConfigResponse struct {
// The status of a request to bulk configure metric tags.
// It contains the fields from the original request for reference.
Data *MetricBulkTagConfigStatus `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigResponse() *MetricBulkTagConfigResponse
NewMetricBulkTagConfigResponse instantiates a new MetricBulkTagConfigResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigResponseWithDefaults() *MetricBulkTagConfigResponse
NewMetricBulkTagConfigResponseWithDefaults instantiates a new MetricBulkTagConfigResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigResponse) GetData() MetricBulkTagConfigStatus
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricBulkTagConfigResponse) GetDataOk() (*MetricBulkTagConfigStatus, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricBulkTagConfigResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigResponse) SetData(v MetricBulkTagConfigStatus)
SetData gets a reference to the given MetricBulkTagConfigStatus and assigns it to the Data field.
func (o *MetricBulkTagConfigResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigStatus The status of a request to bulk configure metric tags. It contains the fields from the original request for reference.
type MetricBulkTagConfigStatus struct {
// Optional attributes for the status of a bulk tag configuration request.
Attributes *MetricBulkTagConfigStatusAttributes `json:"attributes,omitempty"`
// A text prefix to match against metric names.
Id string `json:"id"`
// The metric bulk configure tags resource.
Type MetricBulkConfigureTagsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigStatus(id string, typeVar MetricBulkConfigureTagsType) *MetricBulkTagConfigStatus
NewMetricBulkTagConfigStatus instantiates a new MetricBulkTagConfigStatus object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigStatusWithDefaults() *MetricBulkTagConfigStatus
NewMetricBulkTagConfigStatusWithDefaults instantiates a new MetricBulkTagConfigStatus object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigStatus) GetAttributes() MetricBulkTagConfigStatusAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricBulkTagConfigStatus) GetAttributesOk() (*MetricBulkTagConfigStatusAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatus) GetId() string
GetId returns the Id field value.
func (o *MetricBulkTagConfigStatus) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatus) GetType() MetricBulkConfigureTagsType
GetType returns the Type field value.
func (o *MetricBulkTagConfigStatus) GetTypeOk() (*MetricBulkConfigureTagsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatus) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricBulkTagConfigStatus) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigStatus) SetAttributes(v MetricBulkTagConfigStatusAttributes)
SetAttributes gets a reference to the given MetricBulkTagConfigStatusAttributes and assigns it to the Attributes field.
func (o *MetricBulkTagConfigStatus) SetId(v string)
SetId sets field value.
func (o *MetricBulkTagConfigStatus) SetType(v MetricBulkConfigureTagsType)
SetType sets field value.
func (o *MetricBulkTagConfigStatus) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigStatusAttributes Optional attributes for the status of a bulk tag configuration request.
type MetricBulkTagConfigStatusAttributes struct {
// A list of account emails to notify when the configuration is applied.
Emails []string `json:"emails,omitempty"`
// The status of the request.
Status *string `json:"status,omitempty"`
// A list of tag names to apply to the configuration.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigStatusAttributes() *MetricBulkTagConfigStatusAttributes
NewMetricBulkTagConfigStatusAttributes instantiates a new MetricBulkTagConfigStatusAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigStatusAttributesWithDefaults() *MetricBulkTagConfigStatusAttributes
NewMetricBulkTagConfigStatusAttributesWithDefaults instantiates a new MetricBulkTagConfigStatusAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigStatusAttributes) GetEmails() []string
GetEmails returns the Emails field value if set, zero value otherwise.
func (o *MetricBulkTagConfigStatusAttributes) GetEmailsOk() (*[]string, bool)
GetEmailsOk returns a tuple with the Emails field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatusAttributes) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *MetricBulkTagConfigStatusAttributes) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatusAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricBulkTagConfigStatusAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatusAttributes) HasEmails() bool
HasEmails returns a boolean if a field has been set.
func (o *MetricBulkTagConfigStatusAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *MetricBulkTagConfigStatusAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricBulkTagConfigStatusAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigStatusAttributes) SetEmails(v []string)
SetEmails gets a reference to the given []string and assigns it to the Emails field.
func (o *MetricBulkTagConfigStatusAttributes) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *MetricBulkTagConfigStatusAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricBulkTagConfigStatusAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricContentEncoding HTTP header used to compress the media-type.
type MetricContentEncoding string
List of MetricContentEncoding.
const (
METRICCONTENTENCODING_DEFLATE MetricContentEncoding = "deflate"
METRICCONTENTENCODING_ZSTD1 MetricContentEncoding = "zstd1"
METRICCONTENTENCODING_GZIP MetricContentEncoding = "gzip"
)
func NewMetricContentEncodingFromValue(v string) (*MetricContentEncoding, error)
NewMetricContentEncodingFromValue returns a pointer to a valid MetricContentEncoding for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricContentEncoding) GetAllowedValues() []MetricContentEncoding
GetAllowedValues reeturns the list of possible values.
func (v MetricContentEncoding) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricContentEncoding) Ptr() *MetricContentEncoding
Ptr returns reference to MetricContentEncoding value.
func (v *MetricContentEncoding) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricCustomAggregation A time and space aggregation combination for use in query.
type MetricCustomAggregation struct {
// A space aggregation for use in query.
Space MetricCustomSpaceAggregation `json:"space"`
// A time aggregation for use in query.
Time MetricCustomTimeAggregation `json:"time"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricCustomAggregation(space MetricCustomSpaceAggregation, time MetricCustomTimeAggregation) *MetricCustomAggregation
NewMetricCustomAggregation instantiates a new MetricCustomAggregation object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricCustomAggregationWithDefaults() *MetricCustomAggregation
NewMetricCustomAggregationWithDefaults instantiates a new MetricCustomAggregation object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricCustomAggregation) GetSpace() MetricCustomSpaceAggregation
GetSpace returns the Space field value.
func (o *MetricCustomAggregation) GetSpaceOk() (*MetricCustomSpaceAggregation, bool)
GetSpaceOk returns a tuple with the Space field value and a boolean to check if the value has been set.
func (o *MetricCustomAggregation) GetTime() MetricCustomTimeAggregation
GetTime returns the Time field value.
func (o *MetricCustomAggregation) GetTimeOk() (*MetricCustomTimeAggregation, bool)
GetTimeOk returns a tuple with the Time field value and a boolean to check if the value has been set.
func (o MetricCustomAggregation) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricCustomAggregation) SetSpace(v MetricCustomSpaceAggregation)
SetSpace sets field value.
func (o *MetricCustomAggregation) SetTime(v MetricCustomTimeAggregation)
SetTime sets field value.
func (o *MetricCustomAggregation) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricCustomSpaceAggregation A space aggregation for use in query.
type MetricCustomSpaceAggregation string
List of MetricCustomSpaceAggregation.
const (
METRICCUSTOMSPACEAGGREGATION_AVG MetricCustomSpaceAggregation = "avg"
METRICCUSTOMSPACEAGGREGATION_MAX MetricCustomSpaceAggregation = "max"
METRICCUSTOMSPACEAGGREGATION_MIN MetricCustomSpaceAggregation = "min"
METRICCUSTOMSPACEAGGREGATION_SUM MetricCustomSpaceAggregation = "sum"
)
func NewMetricCustomSpaceAggregationFromValue(v string) (*MetricCustomSpaceAggregation, error)
NewMetricCustomSpaceAggregationFromValue returns a pointer to a valid MetricCustomSpaceAggregation for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricCustomSpaceAggregation) GetAllowedValues() []MetricCustomSpaceAggregation
GetAllowedValues reeturns the list of possible values.
func (v MetricCustomSpaceAggregation) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricCustomSpaceAggregation) Ptr() *MetricCustomSpaceAggregation
Ptr returns reference to MetricCustomSpaceAggregation value.
func (v *MetricCustomSpaceAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricCustomTimeAggregation A time aggregation for use in query.
type MetricCustomTimeAggregation string
List of MetricCustomTimeAggregation.
const (
METRICCUSTOMTIMEAGGREGATION_AVG MetricCustomTimeAggregation = "avg"
METRICCUSTOMTIMEAGGREGATION_COUNT MetricCustomTimeAggregation = "count"
METRICCUSTOMTIMEAGGREGATION_MAX MetricCustomTimeAggregation = "max"
METRICCUSTOMTIMEAGGREGATION_MIN MetricCustomTimeAggregation = "min"
METRICCUSTOMTIMEAGGREGATION_SUM MetricCustomTimeAggregation = "sum"
)
func NewMetricCustomTimeAggregationFromValue(v string) (*MetricCustomTimeAggregation, error)
NewMetricCustomTimeAggregationFromValue returns a pointer to a valid MetricCustomTimeAggregation for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricCustomTimeAggregation) GetAllowedValues() []MetricCustomTimeAggregation
GetAllowedValues reeturns the list of possible values.
func (v MetricCustomTimeAggregation) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricCustomTimeAggregation) Ptr() *MetricCustomTimeAggregation
Ptr returns reference to MetricCustomTimeAggregation value.
func (v *MetricCustomTimeAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricDistinctVolume Object for a single metric's distinct volume.
type MetricDistinctVolume struct {
// Object containing the definition of a metric's distinct volume.
Attributes *MetricDistinctVolumeAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric distinct volume type.
Type *MetricDistinctVolumeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricDistinctVolume() *MetricDistinctVolume
NewMetricDistinctVolume instantiates a new MetricDistinctVolume object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricDistinctVolumeWithDefaults() *MetricDistinctVolume
NewMetricDistinctVolumeWithDefaults instantiates a new MetricDistinctVolume object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricDistinctVolume) GetAttributes() MetricDistinctVolumeAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricDistinctVolume) GetAttributesOk() (*MetricDistinctVolumeAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricDistinctVolume) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricDistinctVolume) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricDistinctVolume) GetType() MetricDistinctVolumeType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricDistinctVolume) GetTypeOk() (*MetricDistinctVolumeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricDistinctVolume) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricDistinctVolume) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricDistinctVolume) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricDistinctVolume) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricDistinctVolume) SetAttributes(v MetricDistinctVolumeAttributes)
SetAttributes gets a reference to the given MetricDistinctVolumeAttributes and assigns it to the Attributes field.
func (o *MetricDistinctVolume) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricDistinctVolume) SetType(v MetricDistinctVolumeType)
SetType gets a reference to the given MetricDistinctVolumeType and assigns it to the Type field.
func (o *MetricDistinctVolume) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricDistinctVolumeAttributes Object containing the definition of a metric's distinct volume.
type MetricDistinctVolumeAttributes struct {
// Distinct volume for the given metric.
DistinctVolume *int64 `json:"distinct_volume,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricDistinctVolumeAttributes() *MetricDistinctVolumeAttributes
NewMetricDistinctVolumeAttributes instantiates a new MetricDistinctVolumeAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricDistinctVolumeAttributesWithDefaults() *MetricDistinctVolumeAttributes
NewMetricDistinctVolumeAttributesWithDefaults instantiates a new MetricDistinctVolumeAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricDistinctVolumeAttributes) GetDistinctVolume() int64
GetDistinctVolume returns the DistinctVolume field value if set, zero value otherwise.
func (o *MetricDistinctVolumeAttributes) GetDistinctVolumeOk() (*int64, bool)
GetDistinctVolumeOk returns a tuple with the DistinctVolume field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricDistinctVolumeAttributes) HasDistinctVolume() bool
HasDistinctVolume returns a boolean if a field has been set.
func (o MetricDistinctVolumeAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricDistinctVolumeAttributes) SetDistinctVolume(v int64)
SetDistinctVolume gets a reference to the given int64 and assigns it to the DistinctVolume field.
func (o *MetricDistinctVolumeAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricDistinctVolumeType The metric distinct volume type.
type MetricDistinctVolumeType string
List of MetricDistinctVolumeType.
const (
METRICDISTINCTVOLUMETYPE_DISTINCT_METRIC_VOLUMES MetricDistinctVolumeType = "distinct_metric_volumes"
)
func NewMetricDistinctVolumeTypeFromValue(v string) (*MetricDistinctVolumeType, error)
NewMetricDistinctVolumeTypeFromValue returns a pointer to a valid MetricDistinctVolumeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricDistinctVolumeType) GetAllowedValues() []MetricDistinctVolumeType
GetAllowedValues reeturns the list of possible values.
func (v MetricDistinctVolumeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricDistinctVolumeType) Ptr() *MetricDistinctVolumeType
Ptr returns reference to MetricDistinctVolumeType value.
func (v *MetricDistinctVolumeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricEstimate Object for a metric cardinality estimate.
type MetricEstimate struct {
// Object containing the definition of a metric estimate attribute.
Attributes *MetricEstimateAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric estimate resource type.
Type *MetricEstimateResourceType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricEstimate() *MetricEstimate
NewMetricEstimate instantiates a new MetricEstimate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricEstimateWithDefaults() *MetricEstimate
NewMetricEstimateWithDefaults instantiates a new MetricEstimate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricEstimate) GetAttributes() MetricEstimateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricEstimate) GetAttributesOk() (*MetricEstimateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimate) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricEstimate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimate) GetType() MetricEstimateResourceType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricEstimate) GetTypeOk() (*MetricEstimateResourceType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricEstimate) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricEstimate) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricEstimate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricEstimate) SetAttributes(v MetricEstimateAttributes)
SetAttributes gets a reference to the given MetricEstimateAttributes and assigns it to the Attributes field.
func (o *MetricEstimate) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricEstimate) SetType(v MetricEstimateResourceType)
SetType gets a reference to the given MetricEstimateResourceType and assigns it to the Type field.
func (o *MetricEstimate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricEstimateAttributes Object containing the definition of a metric estimate attribute.
type MetricEstimateAttributes struct {
// Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric.
EstimateType *MetricEstimateType `json:"estimate_type,omitempty"`
// Timestamp when the cardinality estimate was requested.
EstimatedAt *time.Time `json:"estimated_at,omitempty"`
// Estimated cardinality of the metric based on the queried configuration.
EstimatedOutputSeries *int64 `json:"estimated_output_series,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricEstimateAttributes() *MetricEstimateAttributes
NewMetricEstimateAttributes instantiates a new MetricEstimateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricEstimateAttributesWithDefaults() *MetricEstimateAttributes
NewMetricEstimateAttributesWithDefaults instantiates a new MetricEstimateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricEstimateAttributes) GetEstimateType() MetricEstimateType
GetEstimateType returns the EstimateType field value if set, zero value otherwise.
func (o *MetricEstimateAttributes) GetEstimateTypeOk() (*MetricEstimateType, bool)
GetEstimateTypeOk returns a tuple with the EstimateType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimateAttributes) GetEstimatedAt() time.Time
GetEstimatedAt returns the EstimatedAt field value if set, zero value otherwise.
func (o *MetricEstimateAttributes) GetEstimatedAtOk() (*time.Time, bool)
GetEstimatedAtOk returns a tuple with the EstimatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimateAttributes) GetEstimatedOutputSeries() int64
GetEstimatedOutputSeries returns the EstimatedOutputSeries field value if set, zero value otherwise.
func (o *MetricEstimateAttributes) GetEstimatedOutputSeriesOk() (*int64, bool)
GetEstimatedOutputSeriesOk returns a tuple with the EstimatedOutputSeries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimateAttributes) HasEstimateType() bool
HasEstimateType returns a boolean if a field has been set.
func (o *MetricEstimateAttributes) HasEstimatedAt() bool
HasEstimatedAt returns a boolean if a field has been set.
func (o *MetricEstimateAttributes) HasEstimatedOutputSeries() bool
HasEstimatedOutputSeries returns a boolean if a field has been set.
func (o MetricEstimateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricEstimateAttributes) SetEstimateType(v MetricEstimateType)
SetEstimateType gets a reference to the given MetricEstimateType and assigns it to the EstimateType field.
func (o *MetricEstimateAttributes) SetEstimatedAt(v time.Time)
SetEstimatedAt gets a reference to the given time.Time and assigns it to the EstimatedAt field.
func (o *MetricEstimateAttributes) SetEstimatedOutputSeries(v int64)
SetEstimatedOutputSeries gets a reference to the given int64 and assigns it to the EstimatedOutputSeries field.
func (o *MetricEstimateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricEstimateResourceType The metric estimate resource type.
type MetricEstimateResourceType string
List of MetricEstimateResourceType.
const (
METRICESTIMATERESOURCETYPE_METRIC_CARDINALITY_ESTIMATE MetricEstimateResourceType = "metric_cardinality_estimate"
)
func NewMetricEstimateResourceTypeFromValue(v string) (*MetricEstimateResourceType, error)
NewMetricEstimateResourceTypeFromValue returns a pointer to a valid MetricEstimateResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricEstimateResourceType) GetAllowedValues() []MetricEstimateResourceType
GetAllowedValues reeturns the list of possible values.
func (v MetricEstimateResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricEstimateResourceType) Ptr() *MetricEstimateResourceType
Ptr returns reference to MetricEstimateResourceType value.
func (v *MetricEstimateResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricEstimateResponse Response object that includes metric cardinality estimates.
type MetricEstimateResponse struct {
// Object for a metric cardinality estimate.
Data *MetricEstimate `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricEstimateResponse() *MetricEstimateResponse
NewMetricEstimateResponse instantiates a new MetricEstimateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricEstimateResponseWithDefaults() *MetricEstimateResponse
NewMetricEstimateResponseWithDefaults instantiates a new MetricEstimateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricEstimateResponse) GetData() MetricEstimate
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricEstimateResponse) GetDataOk() (*MetricEstimate, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricEstimateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricEstimateResponse) SetData(v MetricEstimate)
SetData gets a reference to the given MetricEstimate and assigns it to the Data field.
func (o *MetricEstimateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricEstimateType Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric.
type MetricEstimateType string
List of MetricEstimateType.
const (
METRICESTIMATETYPE_COUNT_OR_GAUGE MetricEstimateType = "count_or_gauge"
METRICESTIMATETYPE_DISTRIBUTION MetricEstimateType = "distribution"
METRICESTIMATETYPE_PERCENTILE MetricEstimateType = "percentile"
)
func NewMetricEstimateTypeFromValue(v string) (*MetricEstimateType, error)
NewMetricEstimateTypeFromValue returns a pointer to a valid MetricEstimateType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricEstimateType) GetAllowedValues() []MetricEstimateType
GetAllowedValues reeturns the list of possible values.
func (v MetricEstimateType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricEstimateType) Ptr() *MetricEstimateType
Ptr returns reference to MetricEstimateType value.
func (v *MetricEstimateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricIngestedIndexedVolume Object for a single metric's ingested and indexed volume.
type MetricIngestedIndexedVolume struct {
// Object containing the definition of a metric's ingested and indexed volume.
Attributes *MetricIngestedIndexedVolumeAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric ingested and indexed volume type.
Type *MetricIngestedIndexedVolumeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricIngestedIndexedVolume() *MetricIngestedIndexedVolume
NewMetricIngestedIndexedVolume instantiates a new MetricIngestedIndexedVolume object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricIngestedIndexedVolumeWithDefaults() *MetricIngestedIndexedVolume
NewMetricIngestedIndexedVolumeWithDefaults instantiates a new MetricIngestedIndexedVolume object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricIngestedIndexedVolume) GetAttributes() MetricIngestedIndexedVolumeAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolume) GetAttributesOk() (*MetricIngestedIndexedVolumeAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolume) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolume) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolume) GetType() MetricIngestedIndexedVolumeType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolume) GetTypeOk() (*MetricIngestedIndexedVolumeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolume) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricIngestedIndexedVolume) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricIngestedIndexedVolume) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricIngestedIndexedVolume) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricIngestedIndexedVolume) SetAttributes(v MetricIngestedIndexedVolumeAttributes)
SetAttributes gets a reference to the given MetricIngestedIndexedVolumeAttributes and assigns it to the Attributes field.
func (o *MetricIngestedIndexedVolume) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricIngestedIndexedVolume) SetType(v MetricIngestedIndexedVolumeType)
SetType gets a reference to the given MetricIngestedIndexedVolumeType and assigns it to the Type field.
func (o *MetricIngestedIndexedVolume) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricIngestedIndexedVolumeAttributes Object containing the definition of a metric's ingested and indexed volume.
type MetricIngestedIndexedVolumeAttributes struct {
// Indexed volume for the given metric.
IndexedVolume *int64 `json:"indexed_volume,omitempty"`
// Ingested volume for the given metric.
IngestedVolume *int64 `json:"ingested_volume,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricIngestedIndexedVolumeAttributes() *MetricIngestedIndexedVolumeAttributes
NewMetricIngestedIndexedVolumeAttributes instantiates a new MetricIngestedIndexedVolumeAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricIngestedIndexedVolumeAttributesWithDefaults() *MetricIngestedIndexedVolumeAttributes
NewMetricIngestedIndexedVolumeAttributesWithDefaults instantiates a new MetricIngestedIndexedVolumeAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricIngestedIndexedVolumeAttributes) GetIndexedVolume() int64
GetIndexedVolume returns the IndexedVolume field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolumeAttributes) GetIndexedVolumeOk() (*int64, bool)
GetIndexedVolumeOk returns a tuple with the IndexedVolume field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolumeAttributes) GetIngestedVolume() int64
GetIngestedVolume returns the IngestedVolume field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolumeAttributes) GetIngestedVolumeOk() (*int64, bool)
GetIngestedVolumeOk returns a tuple with the IngestedVolume field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolumeAttributes) HasIndexedVolume() bool
HasIndexedVolume returns a boolean if a field has been set.
func (o *MetricIngestedIndexedVolumeAttributes) HasIngestedVolume() bool
HasIngestedVolume returns a boolean if a field has been set.
func (o MetricIngestedIndexedVolumeAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricIngestedIndexedVolumeAttributes) SetIndexedVolume(v int64)
SetIndexedVolume gets a reference to the given int64 and assigns it to the IndexedVolume field.
func (o *MetricIngestedIndexedVolumeAttributes) SetIngestedVolume(v int64)
SetIngestedVolume gets a reference to the given int64 and assigns it to the IngestedVolume field.
func (o *MetricIngestedIndexedVolumeAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricIngestedIndexedVolumeType The metric ingested and indexed volume type.
type MetricIngestedIndexedVolumeType string
List of MetricIngestedIndexedVolumeType.
const (
METRICINGESTEDINDEXEDVOLUMETYPE_METRIC_VOLUMES MetricIngestedIndexedVolumeType = "metric_volumes"
)
func NewMetricIngestedIndexedVolumeTypeFromValue(v string) (*MetricIngestedIndexedVolumeType, error)
NewMetricIngestedIndexedVolumeTypeFromValue returns a pointer to a valid MetricIngestedIndexedVolumeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricIngestedIndexedVolumeType) GetAllowedValues() []MetricIngestedIndexedVolumeType
GetAllowedValues reeturns the list of possible values.
func (v MetricIngestedIndexedVolumeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricIngestedIndexedVolumeType) Ptr() *MetricIngestedIndexedVolumeType
Ptr returns reference to MetricIngestedIndexedVolumeType value.
func (v *MetricIngestedIndexedVolumeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricIntakeType The type of metric. The available types are `0` (unspecified), `1` (count), `2` (rate), and `3` (gauge).
type MetricIntakeType int32
List of MetricIntakeType.
const (
METRICINTAKETYPE_UNSPECIFIED MetricIntakeType = 0
METRICINTAKETYPE_COUNT MetricIntakeType = 1
METRICINTAKETYPE_RATE MetricIntakeType = 2
METRICINTAKETYPE_GAUGE MetricIntakeType = 3
)
func NewMetricIntakeTypeFromValue(v int32) (*MetricIntakeType, error)
NewMetricIntakeTypeFromValue returns a pointer to a valid MetricIntakeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricIntakeType) GetAllowedValues() []MetricIntakeType
GetAllowedValues reeturns the list of possible values.
func (v MetricIntakeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricIntakeType) Ptr() *MetricIntakeType
Ptr returns reference to MetricIntakeType value.
func (v *MetricIntakeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricMetadata Metadata for the metric.
type MetricMetadata struct {
// Metric origin information.
Origin *MetricOrigin `json:"origin,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricMetadata() *MetricMetadata
NewMetricMetadata instantiates a new MetricMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricMetadataWithDefaults() *MetricMetadata
NewMetricMetadataWithDefaults instantiates a new MetricMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricMetadata) GetOrigin() MetricOrigin
GetOrigin returns the Origin field value if set, zero value otherwise.
func (o *MetricMetadata) GetOriginOk() (*MetricOrigin, bool)
GetOriginOk returns a tuple with the Origin field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricMetadata) HasOrigin() bool
HasOrigin returns a boolean if a field has been set.
func (o MetricMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricMetadata) SetOrigin(v MetricOrigin)
SetOrigin gets a reference to the given MetricOrigin and assigns it to the Origin field.
func (o *MetricMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricOrigin Metric origin information.
type MetricOrigin struct {
// The origin metric type code
MetricType *int32 `json:"metric_type,omitempty"`
// The origin product code
Product *int32 `json:"product,omitempty"`
// The origin service code
Service *int32 `json:"service,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricOrigin() *MetricOrigin
NewMetricOrigin instantiates a new MetricOrigin object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricOriginWithDefaults() *MetricOrigin
NewMetricOriginWithDefaults instantiates a new MetricOrigin object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricOrigin) GetMetricType() int32
GetMetricType returns the MetricType field value if set, zero value otherwise.
func (o *MetricOrigin) GetMetricTypeOk() (*int32, bool)
GetMetricTypeOk returns a tuple with the MetricType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricOrigin) GetProduct() int32
GetProduct returns the Product field value if set, zero value otherwise.
func (o *MetricOrigin) GetProductOk() (*int32, bool)
GetProductOk returns a tuple with the Product field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricOrigin) GetService() int32
GetService returns the Service field value if set, zero value otherwise.
func (o *MetricOrigin) GetServiceOk() (*int32, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricOrigin) HasMetricType() bool
HasMetricType returns a boolean if a field has been set.
func (o *MetricOrigin) HasProduct() bool
HasProduct returns a boolean if a field has been set.
func (o *MetricOrigin) HasService() bool
HasService returns a boolean if a field has been set.
func (o MetricOrigin) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricOrigin) SetMetricType(v int32)
SetMetricType gets a reference to the given int32 and assigns it to the MetricType field.
func (o *MetricOrigin) SetProduct(v int32)
SetProduct gets a reference to the given int32 and assigns it to the Product field.
func (o *MetricOrigin) SetService(v int32)
SetService gets a reference to the given int32 and assigns it to the Service field.
func (o *MetricOrigin) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricPayload The metrics' payload.
type MetricPayload struct {
// A list of time series to submit to Datadog.
Series []MetricSeries `json:"series"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricPayload(series []MetricSeries) *MetricPayload
NewMetricPayload instantiates a new MetricPayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricPayloadWithDefaults() *MetricPayload
NewMetricPayloadWithDefaults instantiates a new MetricPayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricPayload) GetSeries() []MetricSeries
GetSeries returns the Series field value.
func (o *MetricPayload) GetSeriesOk() (*[]MetricSeries, bool)
GetSeriesOk returns a tuple with the Series field value and a boolean to check if the value has been set.
func (o MetricPayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricPayload) SetSeries(v []MetricSeries)
SetSeries sets field value.
func (o *MetricPayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricPoint A point object is of the form `{POSIX_timestamp, numeric_value}`.
type MetricPoint struct {
// The timestamp should be in seconds and current.
// Current is defined as not more than 10 minutes in the future or more than 1 hour in the past.
Timestamp *int64 `json:"timestamp,omitempty"`
// The numeric value format should be a 64bit float gauge-type value.
Value *float64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricPoint() *MetricPoint
NewMetricPoint instantiates a new MetricPoint object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricPointWithDefaults() *MetricPoint
NewMetricPointWithDefaults instantiates a new MetricPoint object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricPoint) GetTimestamp() int64
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *MetricPoint) GetTimestampOk() (*int64, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricPoint) GetValue() float64
GetValue returns the Value field value if set, zero value otherwise.
func (o *MetricPoint) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricPoint) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *MetricPoint) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o MetricPoint) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricPoint) SetTimestamp(v int64)
SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field.
func (o *MetricPoint) SetValue(v float64)
SetValue gets a reference to the given float64 and assigns it to the Value field.
func (o *MetricPoint) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricResource Metric resource.
type MetricResource struct {
// The name of the resource.
Name *string `json:"name,omitempty"`
// The type of the resource.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricResource() *MetricResource
NewMetricResource instantiates a new MetricResource object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricResourceWithDefaults() *MetricResource
NewMetricResourceWithDefaults instantiates a new MetricResource object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricResource) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *MetricResource) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricResource) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricResource) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricResource) HasName() bool
HasName returns a boolean if a field has been set.
func (o *MetricResource) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricResource) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricResource) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *MetricResource) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *MetricResource) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricSeries A metric to submit to Datadog. See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties).
type MetricSeries struct {
// If the type of the metric is rate or count, define the corresponding interval.
Interval *int64 `json:"interval,omitempty"`
// Metadata for the metric.
Metadata *MetricMetadata `json:"metadata,omitempty"`
// The name of the timeseries.
Metric string `json:"metric"`
// Points relating to a metric. All points must be objects with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past.
Points []MetricPoint `json:"points"`
// A list of resources to associate with this metric.
Resources []MetricResource `json:"resources,omitempty"`
// The source type name.
SourceTypeName *string `json:"source_type_name,omitempty"`
// A list of tags associated with the metric.
Tags []string `json:"tags,omitempty"`
// The type of metric. The available types are `0` (unspecified), `1` (count), `2` (rate), and `3` (gauge).
Type *MetricIntakeType `json:"type,omitempty"`
// The unit of point value.
Unit *string `json:"unit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricSeries(metric string, points []MetricPoint) *MetricSeries
NewMetricSeries instantiates a new MetricSeries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricSeriesWithDefaults() *MetricSeries
NewMetricSeriesWithDefaults instantiates a new MetricSeries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricSeries) GetInterval() int64
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *MetricSeries) GetIntervalOk() (*int64, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetMetadata() MetricMetadata
GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *MetricSeries) GetMetadataOk() (*MetricMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetMetric() string
GetMetric returns the Metric field value.
func (o *MetricSeries) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value and a boolean to check if the value has been set.
func (o *MetricSeries) GetPoints() []MetricPoint
GetPoints returns the Points field value.
func (o *MetricSeries) GetPointsOk() (*[]MetricPoint, bool)
GetPointsOk returns a tuple with the Points field value and a boolean to check if the value has been set.
func (o *MetricSeries) GetResources() []MetricResource
GetResources returns the Resources field value if set, zero value otherwise.
func (o *MetricSeries) GetResourcesOk() (*[]MetricResource, bool)
GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetSourceTypeName() string
GetSourceTypeName returns the SourceTypeName field value if set, zero value otherwise.
func (o *MetricSeries) GetSourceTypeNameOk() (*string, bool)
GetSourceTypeNameOk returns a tuple with the SourceTypeName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricSeries) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetType() MetricIntakeType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricSeries) GetTypeOk() (*MetricIntakeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetUnit() string
GetUnit returns the Unit field value if set, zero value otherwise.
func (o *MetricSeries) GetUnitOk() (*string, bool)
GetUnitOk returns a tuple with the Unit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *MetricSeries) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *MetricSeries) HasResources() bool
HasResources returns a boolean if a field has been set.
func (o *MetricSeries) HasSourceTypeName() bool
HasSourceTypeName returns a boolean if a field has been set.
func (o *MetricSeries) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *MetricSeries) HasType() bool
HasType returns a boolean if a field has been set.
func (o *MetricSeries) HasUnit() bool
HasUnit returns a boolean if a field has been set.
func (o MetricSeries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricSeries) SetInterval(v int64)
SetInterval gets a reference to the given int64 and assigns it to the Interval field.
func (o *MetricSeries) SetMetadata(v MetricMetadata)
SetMetadata gets a reference to the given MetricMetadata and assigns it to the Metadata field.
func (o *MetricSeries) SetMetric(v string)
SetMetric sets field value.
func (o *MetricSeries) SetPoints(v []MetricPoint)
SetPoints sets field value.
func (o *MetricSeries) SetResources(v []MetricResource)
SetResources gets a reference to the given []MetricResource and assigns it to the Resources field.
func (o *MetricSeries) SetSourceTypeName(v string)
SetSourceTypeName gets a reference to the given string and assigns it to the SourceTypeName field.
func (o *MetricSeries) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricSeries) SetType(v MetricIntakeType)
SetType gets a reference to the given MetricIntakeType and assigns it to the Type field.
func (o *MetricSeries) SetUnit(v string)
SetUnit gets a reference to the given string and assigns it to the Unit field.
func (o *MetricSeries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricSuggestedTagsAndAggregations Object for a single metric's actively queried tags and aggregations.
type MetricSuggestedTagsAndAggregations struct {
// Object containing the definition of a metric's actively queried tags and aggregations.
Attributes *MetricSuggestedTagsAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric actively queried configuration resource type.
Type *MetricActiveConfigurationType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricSuggestedTagsAndAggregations() *MetricSuggestedTagsAndAggregations
NewMetricSuggestedTagsAndAggregations instantiates a new MetricSuggestedTagsAndAggregations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricSuggestedTagsAndAggregationsWithDefaults() *MetricSuggestedTagsAndAggregations
NewMetricSuggestedTagsAndAggregationsWithDefaults instantiates a new MetricSuggestedTagsAndAggregations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricSuggestedTagsAndAggregations) GetAttributes() MetricSuggestedTagsAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAndAggregations) GetAttributesOk() (*MetricSuggestedTagsAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAndAggregations) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAndAggregations) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAndAggregations) GetType() MetricActiveConfigurationType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAndAggregations) GetTypeOk() (*MetricActiveConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAndAggregations) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricSuggestedTagsAndAggregations) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricSuggestedTagsAndAggregations) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricSuggestedTagsAndAggregations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricSuggestedTagsAndAggregations) SetAttributes(v MetricSuggestedTagsAttributes)
SetAttributes gets a reference to the given MetricSuggestedTagsAttributes and assigns it to the Attributes field.
func (o *MetricSuggestedTagsAndAggregations) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricSuggestedTagsAndAggregations) SetType(v MetricActiveConfigurationType)
SetType gets a reference to the given MetricActiveConfigurationType and assigns it to the Type field.
func (o *MetricSuggestedTagsAndAggregations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricSuggestedTagsAndAggregationsResponse Response object that includes a single metric's actively queried tags and aggregations.
type MetricSuggestedTagsAndAggregationsResponse struct {
// Object for a single metric's actively queried tags and aggregations.
Data *MetricSuggestedTagsAndAggregations `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricSuggestedTagsAndAggregationsResponse() *MetricSuggestedTagsAndAggregationsResponse
NewMetricSuggestedTagsAndAggregationsResponse instantiates a new MetricSuggestedTagsAndAggregationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricSuggestedTagsAndAggregationsResponseWithDefaults() *MetricSuggestedTagsAndAggregationsResponse
NewMetricSuggestedTagsAndAggregationsResponseWithDefaults instantiates a new MetricSuggestedTagsAndAggregationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricSuggestedTagsAndAggregationsResponse) GetData() MetricSuggestedTagsAndAggregations
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAndAggregationsResponse) GetDataOk() (*MetricSuggestedTagsAndAggregations, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAndAggregationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricSuggestedTagsAndAggregationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricSuggestedTagsAndAggregationsResponse) SetData(v MetricSuggestedTagsAndAggregations)
SetData gets a reference to the given MetricSuggestedTagsAndAggregations and assigns it to the Data field.
func (o *MetricSuggestedTagsAndAggregationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricSuggestedTagsAttributes Object containing the definition of a metric's actively queried tags and aggregations.
type MetricSuggestedTagsAttributes struct {
// List of aggregation combinations that have been actively queried.
ActiveAggregations []MetricCustomAggregation `json:"active_aggregations,omitempty"`
// List of tag keys that have been actively queried.
ActiveTags []string `json:"active_tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricSuggestedTagsAttributes() *MetricSuggestedTagsAttributes
NewMetricSuggestedTagsAttributes instantiates a new MetricSuggestedTagsAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricSuggestedTagsAttributesWithDefaults() *MetricSuggestedTagsAttributes
NewMetricSuggestedTagsAttributesWithDefaults instantiates a new MetricSuggestedTagsAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricSuggestedTagsAttributes) GetActiveAggregations() []MetricCustomAggregation
GetActiveAggregations returns the ActiveAggregations field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAttributes) GetActiveAggregationsOk() (*[]MetricCustomAggregation, bool)
GetActiveAggregationsOk returns a tuple with the ActiveAggregations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAttributes) GetActiveTags() []string
GetActiveTags returns the ActiveTags field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAttributes) GetActiveTagsOk() (*[]string, bool)
GetActiveTagsOk returns a tuple with the ActiveTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAttributes) HasActiveAggregations() bool
HasActiveAggregations returns a boolean if a field has been set.
func (o *MetricSuggestedTagsAttributes) HasActiveTags() bool
HasActiveTags returns a boolean if a field has been set.
func (o MetricSuggestedTagsAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricSuggestedTagsAttributes) SetActiveAggregations(v []MetricCustomAggregation)
SetActiveAggregations gets a reference to the given []MetricCustomAggregation and assigns it to the ActiveAggregations field.
func (o *MetricSuggestedTagsAttributes) SetActiveTags(v []string)
SetActiveTags gets a reference to the given []string and assigns it to the ActiveTags field.
func (o *MetricSuggestedTagsAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfiguration Object for a single metric tag configuration.
type MetricTagConfiguration struct {
// Object containing the definition of a metric tag configuration attributes.
Attributes *MetricTagConfigurationAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric tag configuration resource type.
Type *MetricTagConfigurationType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfiguration() *MetricTagConfiguration
NewMetricTagConfiguration instantiates a new MetricTagConfiguration object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationWithDefaults() *MetricTagConfiguration
NewMetricTagConfigurationWithDefaults instantiates a new MetricTagConfiguration object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfiguration) GetAttributes() MetricTagConfigurationAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricTagConfiguration) GetAttributesOk() (*MetricTagConfigurationAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfiguration) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricTagConfiguration) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfiguration) GetType() MetricTagConfigurationType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricTagConfiguration) GetTypeOk() (*MetricTagConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfiguration) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricTagConfiguration) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricTagConfiguration) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricTagConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfiguration) SetAttributes(v MetricTagConfigurationAttributes)
SetAttributes gets a reference to the given MetricTagConfigurationAttributes and assigns it to the Attributes field.
func (o *MetricTagConfiguration) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricTagConfiguration) SetType(v MetricTagConfigurationType)
SetType gets a reference to the given MetricTagConfigurationType and assigns it to the Type field.
func (o *MetricTagConfiguration) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationAttributes Object containing the definition of a metric tag configuration attributes.
type MetricTagConfigurationAttributes struct {
// A list of queryable aggregation combinations for a count, rate, or gauge metric.
// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
// Gauge metrics require the (time: avg, space: avg) aggregation.
// Additional time & space combinations are also available:
//
// - time: avg, space: avg
// - time: avg, space: max
// - time: avg, space: min
// - time: avg, space: sum
// - time: count, space: sum
// - time: max, space: max
// - time: min, space: min
// - time: sum, space: avg
// - time: sum, space: sum
//
// Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
Aggregations []MetricCustomAggregation `json:"aggregations,omitempty"`
// Timestamp when the tag configuration was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Toggle to include or exclude percentile aggregations for distribution metrics.
// Only present when the `metric_type` is `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// The metric's type.
MetricType *MetricTagConfigurationMetricTypes `json:"metric_type,omitempty"`
// Timestamp when the tag configuration was last modified.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// List of tag keys on which to group.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationAttributes() *MetricTagConfigurationAttributes
NewMetricTagConfigurationAttributes instantiates a new MetricTagConfigurationAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationAttributesWithDefaults() *MetricTagConfigurationAttributes
NewMetricTagConfigurationAttributesWithDefaults instantiates a new MetricTagConfigurationAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationAttributes) GetAggregations() []MetricCustomAggregation
GetAggregations returns the Aggregations field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetAggregationsOk() (*[]MetricCustomAggregation, bool)
GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetMetricType() MetricTagConfigurationMetricTypes
GetMetricType returns the MetricType field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetMetricTypeOk() (*MetricTagConfigurationMetricTypes, bool)
GetMetricTypeOk returns a tuple with the MetricType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) HasAggregations() bool
HasAggregations returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasMetricType() bool
HasMetricType returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricTagConfigurationAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationAttributes) SetAggregations(v []MetricCustomAggregation)
SetAggregations gets a reference to the given []MetricCustomAggregation and assigns it to the Aggregations field.
func (o *MetricTagConfigurationAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *MetricTagConfigurationAttributes) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *MetricTagConfigurationAttributes) SetMetricType(v MetricTagConfigurationMetricTypes)
SetMetricType gets a reference to the given MetricTagConfigurationMetricTypes and assigns it to the MetricType field.
func (o *MetricTagConfigurationAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *MetricTagConfigurationAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricTagConfigurationAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationCreateAttributes Object containing the definition of a metric tag configuration to be created.
type MetricTagConfigurationCreateAttributes struct {
// A list of queryable aggregation combinations for a count, rate, or gauge metric.
// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
// Gauge metrics require the (time: avg, space: avg) aggregation.
// Additional time & space combinations are also available:
//
// - time: avg, space: avg
// - time: avg, space: max
// - time: avg, space: min
// - time: avg, space: sum
// - time: count, space: sum
// - time: max, space: max
// - time: min, space: min
// - time: sum, space: avg
// - time: sum, space: sum
//
// Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
Aggregations []MetricCustomAggregation `json:"aggregations,omitempty"`
// Toggle to include/exclude percentiles for a distribution metric.
// Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// The metric's type.
MetricType MetricTagConfigurationMetricTypes `json:"metric_type"`
// A list of tag keys that will be queryable for your metric.
Tags []string `json:"tags"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationCreateAttributes(metricType MetricTagConfigurationMetricTypes, tags []string) *MetricTagConfigurationCreateAttributes
NewMetricTagConfigurationCreateAttributes instantiates a new MetricTagConfigurationCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationCreateAttributesWithDefaults() *MetricTagConfigurationCreateAttributes
NewMetricTagConfigurationCreateAttributesWithDefaults instantiates a new MetricTagConfigurationCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationCreateAttributes) GetAggregations() []MetricCustomAggregation
GetAggregations returns the Aggregations field value if set, zero value otherwise.
func (o *MetricTagConfigurationCreateAttributes) GetAggregationsOk() (*[]MetricCustomAggregation, bool)
GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateAttributes) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *MetricTagConfigurationCreateAttributes) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateAttributes) GetMetricType() MetricTagConfigurationMetricTypes
GetMetricType returns the MetricType field value.
func (o *MetricTagConfigurationCreateAttributes) GetMetricTypeOk() (*MetricTagConfigurationMetricTypes, bool)
GetMetricTypeOk returns a tuple with the MetricType field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateAttributes) GetTags() []string
GetTags returns the Tags field value.
func (o *MetricTagConfigurationCreateAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateAttributes) HasAggregations() bool
HasAggregations returns a boolean if a field has been set.
func (o *MetricTagConfigurationCreateAttributes) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o MetricTagConfigurationCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationCreateAttributes) SetAggregations(v []MetricCustomAggregation)
SetAggregations gets a reference to the given []MetricCustomAggregation and assigns it to the Aggregations field.
func (o *MetricTagConfigurationCreateAttributes) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *MetricTagConfigurationCreateAttributes) SetMetricType(v MetricTagConfigurationMetricTypes)
SetMetricType sets field value.
func (o *MetricTagConfigurationCreateAttributes) SetTags(v []string)
SetTags sets field value.
func (o *MetricTagConfigurationCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationCreateData Object for a single metric to be configure tags on.
type MetricTagConfigurationCreateData struct {
// Object containing the definition of a metric tag configuration to be created.
Attributes *MetricTagConfigurationCreateAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id string `json:"id"`
// The metric tag configuration resource type.
Type MetricTagConfigurationType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationCreateData(id string, typeVar MetricTagConfigurationType) *MetricTagConfigurationCreateData
NewMetricTagConfigurationCreateData instantiates a new MetricTagConfigurationCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationCreateDataWithDefaults() *MetricTagConfigurationCreateData
NewMetricTagConfigurationCreateDataWithDefaults instantiates a new MetricTagConfigurationCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationCreateData) GetAttributes() MetricTagConfigurationCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricTagConfigurationCreateData) GetAttributesOk() (*MetricTagConfigurationCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateData) GetId() string
GetId returns the Id field value.
func (o *MetricTagConfigurationCreateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateData) GetType() MetricTagConfigurationType
GetType returns the Type field value.
func (o *MetricTagConfigurationCreateData) GetTypeOk() (*MetricTagConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricTagConfigurationCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationCreateData) SetAttributes(v MetricTagConfigurationCreateAttributes)
SetAttributes gets a reference to the given MetricTagConfigurationCreateAttributes and assigns it to the Attributes field.
func (o *MetricTagConfigurationCreateData) SetId(v string)
SetId sets field value.
func (o *MetricTagConfigurationCreateData) SetType(v MetricTagConfigurationType)
SetType sets field value.
func (o *MetricTagConfigurationCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationCreateRequest Request object that includes the metric that you would like to configure tags for.
type MetricTagConfigurationCreateRequest struct {
// Object for a single metric to be configure tags on.
Data MetricTagConfigurationCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationCreateRequest(data MetricTagConfigurationCreateData) *MetricTagConfigurationCreateRequest
NewMetricTagConfigurationCreateRequest instantiates a new MetricTagConfigurationCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationCreateRequestWithDefaults() *MetricTagConfigurationCreateRequest
NewMetricTagConfigurationCreateRequestWithDefaults instantiates a new MetricTagConfigurationCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationCreateRequest) GetData() MetricTagConfigurationCreateData
GetData returns the Data field value.
func (o *MetricTagConfigurationCreateRequest) GetDataOk() (*MetricTagConfigurationCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MetricTagConfigurationCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationCreateRequest) SetData(v MetricTagConfigurationCreateData)
SetData sets field value.
func (o *MetricTagConfigurationCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationMetricTypes The metric's type.
type MetricTagConfigurationMetricTypes string
List of MetricTagConfigurationMetricTypes.
const (
METRICTAGCONFIGURATIONMETRICTYPES_GAUGE MetricTagConfigurationMetricTypes = "gauge"
METRICTAGCONFIGURATIONMETRICTYPES_COUNT MetricTagConfigurationMetricTypes = "count"
METRICTAGCONFIGURATIONMETRICTYPES_RATE MetricTagConfigurationMetricTypes = "rate"
METRICTAGCONFIGURATIONMETRICTYPES_DISTRIBUTION MetricTagConfigurationMetricTypes = "distribution"
)
func NewMetricTagConfigurationMetricTypesFromValue(v string) (*MetricTagConfigurationMetricTypes, error)
NewMetricTagConfigurationMetricTypesFromValue returns a pointer to a valid MetricTagConfigurationMetricTypes for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricTagConfigurationMetricTypes) GetAllowedValues() []MetricTagConfigurationMetricTypes
GetAllowedValues reeturns the list of possible values.
func (v MetricTagConfigurationMetricTypes) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricTagConfigurationMetricTypes) Ptr() *MetricTagConfigurationMetricTypes
Ptr returns reference to MetricTagConfigurationMetricTypes value.
func (v *MetricTagConfigurationMetricTypes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationResponse Response object which includes a single metric's tag configuration.
type MetricTagConfigurationResponse struct {
// Object for a single metric tag configuration.
Data *MetricTagConfiguration `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationResponse() *MetricTagConfigurationResponse
NewMetricTagConfigurationResponse instantiates a new MetricTagConfigurationResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationResponseWithDefaults() *MetricTagConfigurationResponse
NewMetricTagConfigurationResponseWithDefaults instantiates a new MetricTagConfigurationResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationResponse) GetData() MetricTagConfiguration
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricTagConfigurationResponse) GetDataOk() (*MetricTagConfiguration, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricTagConfigurationResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationResponse) SetData(v MetricTagConfiguration)
SetData gets a reference to the given MetricTagConfiguration and assigns it to the Data field.
func (o *MetricTagConfigurationResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationType The metric tag configuration resource type.
type MetricTagConfigurationType string
List of MetricTagConfigurationType.
const (
METRICTAGCONFIGURATIONTYPE_MANAGE_TAGS MetricTagConfigurationType = "manage_tags"
)
func NewMetricTagConfigurationTypeFromValue(v string) (*MetricTagConfigurationType, error)
NewMetricTagConfigurationTypeFromValue returns a pointer to a valid MetricTagConfigurationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricTagConfigurationType) GetAllowedValues() []MetricTagConfigurationType
GetAllowedValues reeturns the list of possible values.
func (v MetricTagConfigurationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricTagConfigurationType) Ptr() *MetricTagConfigurationType
Ptr returns reference to MetricTagConfigurationType value.
func (v *MetricTagConfigurationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationUpdateAttributes Object containing the definition of a metric tag configuration to be updated.
type MetricTagConfigurationUpdateAttributes struct {
// A list of queryable aggregation combinations for a count, rate, or gauge metric.
// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
// Gauge metrics require the (time: avg, space: avg) aggregation.
// Additional time & space combinations are also available:
//
// - time: avg, space: avg
// - time: avg, space: max
// - time: avg, space: min
// - time: avg, space: sum
// - time: count, space: sum
// - time: max, space: max
// - time: min, space: min
// - time: sum, space: avg
// - time: sum, space: sum
//
// Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
Aggregations []MetricCustomAggregation `json:"aggregations,omitempty"`
// Toggle to include/exclude percentiles for a distribution metric.
// Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// A list of tag keys that will be queryable for your metric.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationUpdateAttributes() *MetricTagConfigurationUpdateAttributes
NewMetricTagConfigurationUpdateAttributes instantiates a new MetricTagConfigurationUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationUpdateAttributesWithDefaults() *MetricTagConfigurationUpdateAttributes
NewMetricTagConfigurationUpdateAttributesWithDefaults instantiates a new MetricTagConfigurationUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationUpdateAttributes) GetAggregations() []MetricCustomAggregation
GetAggregations returns the Aggregations field value if set, zero value otherwise.
func (o *MetricTagConfigurationUpdateAttributes) GetAggregationsOk() (*[]MetricCustomAggregation, bool)
GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateAttributes) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *MetricTagConfigurationUpdateAttributes) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricTagConfigurationUpdateAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateAttributes) HasAggregations() bool
HasAggregations returns a boolean if a field has been set.
func (o *MetricTagConfigurationUpdateAttributes) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o *MetricTagConfigurationUpdateAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricTagConfigurationUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationUpdateAttributes) SetAggregations(v []MetricCustomAggregation)
SetAggregations gets a reference to the given []MetricCustomAggregation and assigns it to the Aggregations field.
func (o *MetricTagConfigurationUpdateAttributes) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *MetricTagConfigurationUpdateAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricTagConfigurationUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationUpdateData Object for a single tag configuration to be edited.
type MetricTagConfigurationUpdateData struct {
// Object containing the definition of a metric tag configuration to be updated.
Attributes *MetricTagConfigurationUpdateAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id string `json:"id"`
// The metric tag configuration resource type.
Type MetricTagConfigurationType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationUpdateData(id string, typeVar MetricTagConfigurationType) *MetricTagConfigurationUpdateData
NewMetricTagConfigurationUpdateData instantiates a new MetricTagConfigurationUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationUpdateDataWithDefaults() *MetricTagConfigurationUpdateData
NewMetricTagConfigurationUpdateDataWithDefaults instantiates a new MetricTagConfigurationUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationUpdateData) GetAttributes() MetricTagConfigurationUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricTagConfigurationUpdateData) GetAttributesOk() (*MetricTagConfigurationUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateData) GetId() string
GetId returns the Id field value.
func (o *MetricTagConfigurationUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateData) GetType() MetricTagConfigurationType
GetType returns the Type field value.
func (o *MetricTagConfigurationUpdateData) GetTypeOk() (*MetricTagConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricTagConfigurationUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationUpdateData) SetAttributes(v MetricTagConfigurationUpdateAttributes)
SetAttributes gets a reference to the given MetricTagConfigurationUpdateAttributes and assigns it to the Attributes field.
func (o *MetricTagConfigurationUpdateData) SetId(v string)
SetId sets field value.
func (o *MetricTagConfigurationUpdateData) SetType(v MetricTagConfigurationType)
SetType sets field value.
func (o *MetricTagConfigurationUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationUpdateRequest Request object that includes the metric that you would like to edit the tag configuration on.
type MetricTagConfigurationUpdateRequest struct {
// Object for a single tag configuration to be edited.
Data MetricTagConfigurationUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationUpdateRequest(data MetricTagConfigurationUpdateData) *MetricTagConfigurationUpdateRequest
NewMetricTagConfigurationUpdateRequest instantiates a new MetricTagConfigurationUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationUpdateRequestWithDefaults() *MetricTagConfigurationUpdateRequest
NewMetricTagConfigurationUpdateRequestWithDefaults instantiates a new MetricTagConfigurationUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationUpdateRequest) GetData() MetricTagConfigurationUpdateData
GetData returns the Data field value.
func (o *MetricTagConfigurationUpdateRequest) GetDataOk() (*MetricTagConfigurationUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MetricTagConfigurationUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationUpdateRequest) SetData(v MetricTagConfigurationUpdateData)
SetData sets field value.
func (o *MetricTagConfigurationUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricType The metric resource type.
type MetricType string
List of MetricType.
const (
METRICTYPE_METRICS MetricType = "metrics"
)
func NewMetricTypeFromValue(v string) (*MetricType, error)
NewMetricTypeFromValue returns a pointer to a valid MetricType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricType) GetAllowedValues() []MetricType
GetAllowedValues reeturns the list of possible values.
func (v MetricType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricType) Ptr() *MetricType
Ptr returns reference to MetricType value.
func (v *MetricType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricVolumes - Possible response objects for a metric's volume.
type MetricVolumes struct {
MetricDistinctVolume *MetricDistinctVolume
MetricIngestedIndexedVolume *MetricIngestedIndexedVolume
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func MetricDistinctVolumeAsMetricVolumes(v *MetricDistinctVolume) MetricVolumes
MetricDistinctVolumeAsMetricVolumes is a convenience function that returns MetricDistinctVolume wrapped in MetricVolumes.
func MetricIngestedIndexedVolumeAsMetricVolumes(v *MetricIngestedIndexedVolume) MetricVolumes
MetricIngestedIndexedVolumeAsMetricVolumes is a convenience function that returns MetricIngestedIndexedVolume wrapped in MetricVolumes.
func (obj *MetricVolumes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj MetricVolumes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *MetricVolumes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
MetricVolumesResponse Response object which includes a single metric's volume.
type MetricVolumesResponse struct {
// Possible response objects for a metric's volume.
Data *MetricVolumes `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricVolumesResponse() *MetricVolumesResponse
NewMetricVolumesResponse instantiates a new MetricVolumesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricVolumesResponseWithDefaults() *MetricVolumesResponse
NewMetricVolumesResponseWithDefaults instantiates a new MetricVolumesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricVolumesResponse) GetData() MetricVolumes
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricVolumesResponse) GetDataOk() (*MetricVolumes, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricVolumesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricVolumesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricVolumesResponse) SetData(v MetricVolumes)
SetData gets a reference to the given MetricVolumes and assigns it to the Data field.
func (o *MetricVolumesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricsAggregator The type of aggregation that can be performed on metrics-based queries.
type MetricsAggregator string
List of MetricsAggregator.
const (
METRICSAGGREGATOR_AVG MetricsAggregator = "avg"
METRICSAGGREGATOR_MIN MetricsAggregator = "min"
METRICSAGGREGATOR_MAX MetricsAggregator = "max"
METRICSAGGREGATOR_SUM MetricsAggregator = "sum"
METRICSAGGREGATOR_LAST MetricsAggregator = "last"
METRICSAGGREGATOR_PERCENTILE MetricsAggregator = "percentile"
METRICSAGGREGATOR_MEAN MetricsAggregator = "mean"
METRICSAGGREGATOR_L2NORM MetricsAggregator = "l2norm"
METRICSAGGREGATOR_AREA MetricsAggregator = "area"
)
func NewMetricsAggregatorFromValue(v string) (*MetricsAggregator, error)
NewMetricsAggregatorFromValue returns a pointer to a valid MetricsAggregator for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricsAggregator) GetAllowedValues() []MetricsAggregator
GetAllowedValues reeturns the list of possible values.
func (v MetricsAggregator) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricsAggregator) Ptr() *MetricsAggregator
Ptr returns reference to MetricsAggregator value.
func (v *MetricsAggregator) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricsAndMetricTagConfigurations - Object for a metrics and metric tag configurations.
type MetricsAndMetricTagConfigurations struct {
Metric *Metric
MetricTagConfiguration *MetricTagConfiguration
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func MetricAsMetricsAndMetricTagConfigurations(v *Metric) MetricsAndMetricTagConfigurations
MetricAsMetricsAndMetricTagConfigurations is a convenience function that returns Metric wrapped in MetricsAndMetricTagConfigurations.
func MetricTagConfigurationAsMetricsAndMetricTagConfigurations(v *MetricTagConfiguration) MetricsAndMetricTagConfigurations
MetricTagConfigurationAsMetricsAndMetricTagConfigurations is a convenience function that returns MetricTagConfiguration wrapped in MetricsAndMetricTagConfigurations.
func (obj *MetricsAndMetricTagConfigurations) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj MetricsAndMetricTagConfigurations) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *MetricsAndMetricTagConfigurations) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
MetricsAndMetricTagConfigurationsResponse Response object that includes metrics and metric tag configurations.
type MetricsAndMetricTagConfigurationsResponse struct {
// Array of metrics and metric tag configurations.
Data []MetricsAndMetricTagConfigurations `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricsAndMetricTagConfigurationsResponse() *MetricsAndMetricTagConfigurationsResponse
NewMetricsAndMetricTagConfigurationsResponse instantiates a new MetricsAndMetricTagConfigurationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricsAndMetricTagConfigurationsResponseWithDefaults() *MetricsAndMetricTagConfigurationsResponse
NewMetricsAndMetricTagConfigurationsResponseWithDefaults instantiates a new MetricsAndMetricTagConfigurationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricsAndMetricTagConfigurationsResponse) GetData() []MetricsAndMetricTagConfigurations
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricsAndMetricTagConfigurationsResponse) GetDataOk() (*[]MetricsAndMetricTagConfigurations, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricsAndMetricTagConfigurationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricsAndMetricTagConfigurationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricsAndMetricTagConfigurationsResponse) SetData(v []MetricsAndMetricTagConfigurations)
SetData gets a reference to the given []MetricsAndMetricTagConfigurations and assigns it to the Data field.
func (o *MetricsAndMetricTagConfigurationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricsApi service type
type MetricsApi datadog.Service
func NewMetricsApi(client *datadog.APIClient) *MetricsApi
NewMetricsApi Returns NewMetricsApi.
func (a *MetricsApi) CreateBulkTagsMetricsConfiguration(ctx _context.Context, body MetricBulkTagConfigCreateRequest) (MetricBulkTagConfigResponse, *_nethttp.Response, error)
CreateBulkTagsMetricsConfiguration Configure tags for multiple metrics. Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations. Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not expect deterministic ordering of concurrent calls. Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
func (a *MetricsApi) CreateTagConfiguration(ctx _context.Context, metricName string, body MetricTagConfigurationCreateRequest) (MetricTagConfigurationResponse, *_nethttp.Response, error)
CreateTagConfiguration Create a tag configuration. Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. Optionally, include percentile aggregations on any distribution metric or configure custom aggregations on any count, rate, or gauge metric. Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
func (a *MetricsApi) DeleteBulkTagsMetricsConfiguration(ctx _context.Context, body MetricBulkTagConfigDeleteRequest) (MetricBulkTagConfigResponse, *_nethttp.Response, error)
DeleteBulkTagsMetricsConfiguration Delete tags for multiple metrics. Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
func (a *MetricsApi) DeleteTagConfiguration(ctx _context.Context, metricName string) (*_nethttp.Response, error)
DeleteTagConfiguration Delete a tag configuration. Deletes a metric's tag configuration. Can only be used with application keys from users with the `Manage Tags for Metrics` permission.
func (a *MetricsApi) EstimateMetricsOutputSeries(ctx _context.Context, metricName string, o ...EstimateMetricsOutputSeriesOptionalParameters) (MetricEstimateResponse, *_nethttp.Response, error)
EstimateMetricsOutputSeries Tag Configuration Cardinality Estimator. Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™.
func (a *MetricsApi) ListActiveMetricConfigurations(ctx _context.Context, metricName string, o ...ListActiveMetricConfigurationsOptionalParameters) (MetricSuggestedTagsAndAggregationsResponse, *_nethttp.Response, error)
ListActiveMetricConfigurations List active tags and aggregations. List tags and aggregations that are actively queried on dashboards and monitors for a given metric name.
func (a *MetricsApi) ListTagConfigurationByName(ctx _context.Context, metricName string) (MetricTagConfigurationResponse, *_nethttp.Response, error)
ListTagConfigurationByName List tag configuration by name. Returns the tag configuration for the given metric name.
func (a *MetricsApi) ListTagConfigurations(ctx _context.Context, o ...ListTagConfigurationsOptionalParameters) (MetricsAndMetricTagConfigurationsResponse, *_nethttp.Response, error)
ListTagConfigurations Get a list of metrics. Returns all metrics that can be configured in the Metrics Summary page or with Metrics without Limits™ (matching additional filters if specified).
func (a *MetricsApi) ListTagsByMetricName(ctx _context.Context, metricName string) (MetricAllTagsResponse, *_nethttp.Response, error)
ListTagsByMetricName List tags by metric name. View indexed tag key-value pairs for a given metric name.
func (a *MetricsApi) ListVolumesByMetricName(ctx _context.Context, metricName string) (MetricVolumesResponse, *_nethttp.Response, error)
ListVolumesByMetricName List distinct metric volumes by metric name. View distinct metrics volumes for the given metric name.
Custom metrics generated in-app from other products will return `null` for ingested volumes.
func (a *MetricsApi) QueryScalarData(ctx _context.Context, body ScalarFormulaQueryRequest) (ScalarFormulaQueryResponse, *_nethttp.Response, error)
QueryScalarData Query scalar data across multiple products. Query scalar values (as seen on Query Value, Table, and Toplist widgets). Multiple data sources are supported with the ability to process the data using formulas and functions.
func (a *MetricsApi) QueryTimeseriesData(ctx _context.Context, body TimeseriesFormulaQueryRequest) (TimeseriesFormulaQueryResponse, *_nethttp.Response, error)
QueryTimeseriesData Query timeseries data across multiple products. Query timeseries data across various data sources and process the data by applying formulas and functions.
func (a *MetricsApi) SubmitMetrics(ctx _context.Context, body MetricPayload, o ...SubmitMetricsOptionalParameters) (IntakePayloadAccepted, *_nethttp.Response, error)
SubmitMetrics Submit metrics. The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. The maximum payload size is 500 kilobytes (512000 bytes). Compressed payloads must have a decompressed size of less than 5 megabytes (5242880 bytes).
If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect:
- 64 bits for the timestamp - 64 bits for the value - 20 bytes for the metric names - 50 bytes for the timeseries - The full payload is approximately 100 bytes.
Host name is one of the resources in the Resources field.
func (a *MetricsApi) UpdateTagConfiguration(ctx _context.Context, metricName string, body MetricTagConfigurationUpdateRequest) (MetricTagConfigurationResponse, *_nethttp.Response, error)
UpdateTagConfiguration Update a tag configuration. Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations of a count, rate, or gauge metric. Can only be used with application keys from users with the `Manage Tags for Metrics` permission.
MetricsDataSource A data source that is powered by the Metrics platform.
type MetricsDataSource string
List of MetricsDataSource.
const (
METRICSDATASOURCE_METRICS MetricsDataSource = "metrics"
METRICSDATASOURCE_CLOUD_COST MetricsDataSource = "cloud_cost"
)
func NewMetricsDataSourceFromValue(v string) (*MetricsDataSource, error)
NewMetricsDataSourceFromValue returns a pointer to a valid MetricsDataSource for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricsDataSource) GetAllowedValues() []MetricsDataSource
GetAllowedValues reeturns the list of possible values.
func (v MetricsDataSource) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricsDataSource) Ptr() *MetricsDataSource
Ptr returns reference to MetricsDataSource value.
func (v *MetricsDataSource) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricsScalarQuery An individual scalar metrics query.
type MetricsScalarQuery struct {
// The type of aggregation that can be performed on metrics-based queries.
Aggregator MetricsAggregator `json:"aggregator"`
// A data source that is powered by the Metrics platform.
DataSource MetricsDataSource `json:"data_source"`
// The variable name for use in formulas.
Name *string `json:"name,omitempty"`
// A classic metrics query string.
Query string `json:"query"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricsScalarQuery(aggregator MetricsAggregator, dataSource MetricsDataSource, query string) *MetricsScalarQuery
NewMetricsScalarQuery instantiates a new MetricsScalarQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricsScalarQueryWithDefaults() *MetricsScalarQuery
NewMetricsScalarQueryWithDefaults instantiates a new MetricsScalarQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricsScalarQuery) GetAggregator() MetricsAggregator
GetAggregator returns the Aggregator field value.
func (o *MetricsScalarQuery) GetAggregatorOk() (*MetricsAggregator, bool)
GetAggregatorOk returns a tuple with the Aggregator field value and a boolean to check if the value has been set.
func (o *MetricsScalarQuery) GetDataSource() MetricsDataSource
GetDataSource returns the DataSource field value.
func (o *MetricsScalarQuery) GetDataSourceOk() (*MetricsDataSource, bool)
GetDataSourceOk returns a tuple with the DataSource field value and a boolean to check if the value has been set.
func (o *MetricsScalarQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *MetricsScalarQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricsScalarQuery) GetQuery() string
GetQuery returns the Query field value.
func (o *MetricsScalarQuery) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o *MetricsScalarQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o MetricsScalarQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricsScalarQuery) SetAggregator(v MetricsAggregator)
SetAggregator sets field value.
func (o *MetricsScalarQuery) SetDataSource(v MetricsDataSource)
SetDataSource sets field value.
func (o *MetricsScalarQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *MetricsScalarQuery) SetQuery(v string)
SetQuery sets field value.
func (o *MetricsScalarQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricsTimeseriesQuery An individual timeseries metrics query.
type MetricsTimeseriesQuery struct {
// A data source that is powered by the Metrics platform.
DataSource MetricsDataSource `json:"data_source"`
// The variable name for use in formulas.
Name *string `json:"name,omitempty"`
// A classic metrics query string.
Query string `json:"query"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricsTimeseriesQuery(dataSource MetricsDataSource, query string) *MetricsTimeseriesQuery
NewMetricsTimeseriesQuery instantiates a new MetricsTimeseriesQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricsTimeseriesQueryWithDefaults() *MetricsTimeseriesQuery
NewMetricsTimeseriesQueryWithDefaults instantiates a new MetricsTimeseriesQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricsTimeseriesQuery) GetDataSource() MetricsDataSource
GetDataSource returns the DataSource field value.
func (o *MetricsTimeseriesQuery) GetDataSourceOk() (*MetricsDataSource, bool)
GetDataSourceOk returns a tuple with the DataSource field value and a boolean to check if the value has been set.
func (o *MetricsTimeseriesQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *MetricsTimeseriesQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricsTimeseriesQuery) GetQuery() string
GetQuery returns the Query field value.
func (o *MetricsTimeseriesQuery) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o *MetricsTimeseriesQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o MetricsTimeseriesQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricsTimeseriesQuery) SetDataSource(v MetricsDataSource)
SetDataSource sets field value.
func (o *MetricsTimeseriesQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *MetricsTimeseriesQuery) SetQuery(v string)
SetQuery sets field value.
func (o *MetricsTimeseriesQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyAttributeCreateRequest Policy and policy type for a monitor configuration policy.
type MonitorConfigPolicyAttributeCreateRequest struct {
// Configuration for the policy.
Policy MonitorConfigPolicyPolicyCreateRequest `json:"policy"`
// The monitor configuration policy type.
PolicyType MonitorConfigPolicyType `json:"policy_type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyAttributeCreateRequest(policy MonitorConfigPolicyPolicyCreateRequest, policyType MonitorConfigPolicyType) *MonitorConfigPolicyAttributeCreateRequest
NewMonitorConfigPolicyAttributeCreateRequest instantiates a new MonitorConfigPolicyAttributeCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyAttributeCreateRequestWithDefaults() *MonitorConfigPolicyAttributeCreateRequest
NewMonitorConfigPolicyAttributeCreateRequestWithDefaults instantiates a new MonitorConfigPolicyAttributeCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyAttributeCreateRequest) GetPolicy() MonitorConfigPolicyPolicyCreateRequest
GetPolicy returns the Policy field value.
func (o *MonitorConfigPolicyAttributeCreateRequest) GetPolicyOk() (*MonitorConfigPolicyPolicyCreateRequest, bool)
GetPolicyOk returns a tuple with the Policy field value and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyAttributeCreateRequest) GetPolicyType() MonitorConfigPolicyType
GetPolicyType returns the PolicyType field value.
func (o *MonitorConfigPolicyAttributeCreateRequest) GetPolicyTypeOk() (*MonitorConfigPolicyType, bool)
GetPolicyTypeOk returns a tuple with the PolicyType field value and a boolean to check if the value has been set.
func (o MonitorConfigPolicyAttributeCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyAttributeCreateRequest) SetPolicy(v MonitorConfigPolicyPolicyCreateRequest)
SetPolicy sets field value.
func (o *MonitorConfigPolicyAttributeCreateRequest) SetPolicyType(v MonitorConfigPolicyType)
SetPolicyType sets field value.
func (o *MonitorConfigPolicyAttributeCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyAttributeEditRequest Policy and policy type for a monitor configuration policy.
type MonitorConfigPolicyAttributeEditRequest struct {
// Configuration for the policy.
Policy MonitorConfigPolicyPolicy `json:"policy"`
// The monitor configuration policy type.
PolicyType MonitorConfigPolicyType `json:"policy_type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyAttributeEditRequest(policy MonitorConfigPolicyPolicy, policyType MonitorConfigPolicyType) *MonitorConfigPolicyAttributeEditRequest
NewMonitorConfigPolicyAttributeEditRequest instantiates a new MonitorConfigPolicyAttributeEditRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyAttributeEditRequestWithDefaults() *MonitorConfigPolicyAttributeEditRequest
NewMonitorConfigPolicyAttributeEditRequestWithDefaults instantiates a new MonitorConfigPolicyAttributeEditRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyAttributeEditRequest) GetPolicy() MonitorConfigPolicyPolicy
GetPolicy returns the Policy field value.
func (o *MonitorConfigPolicyAttributeEditRequest) GetPolicyOk() (*MonitorConfigPolicyPolicy, bool)
GetPolicyOk returns a tuple with the Policy field value and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyAttributeEditRequest) GetPolicyType() MonitorConfigPolicyType
GetPolicyType returns the PolicyType field value.
func (o *MonitorConfigPolicyAttributeEditRequest) GetPolicyTypeOk() (*MonitorConfigPolicyType, bool)
GetPolicyTypeOk returns a tuple with the PolicyType field value and a boolean to check if the value has been set.
func (o MonitorConfigPolicyAttributeEditRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyAttributeEditRequest) SetPolicy(v MonitorConfigPolicyPolicy)
SetPolicy sets field value.
func (o *MonitorConfigPolicyAttributeEditRequest) SetPolicyType(v MonitorConfigPolicyType)
SetPolicyType sets field value.
func (o *MonitorConfigPolicyAttributeEditRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyAttributeResponse Policy and policy type for a monitor configuration policy.
type MonitorConfigPolicyAttributeResponse struct {
// Configuration for the policy.
Policy *MonitorConfigPolicyPolicy `json:"policy,omitempty"`
// The monitor configuration policy type.
PolicyType *MonitorConfigPolicyType `json:"policy_type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyAttributeResponse() *MonitorConfigPolicyAttributeResponse
NewMonitorConfigPolicyAttributeResponse instantiates a new MonitorConfigPolicyAttributeResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyAttributeResponseWithDefaults() *MonitorConfigPolicyAttributeResponse
NewMonitorConfigPolicyAttributeResponseWithDefaults instantiates a new MonitorConfigPolicyAttributeResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyAttributeResponse) GetPolicy() MonitorConfigPolicyPolicy
GetPolicy returns the Policy field value if set, zero value otherwise.
func (o *MonitorConfigPolicyAttributeResponse) GetPolicyOk() (*MonitorConfigPolicyPolicy, bool)
GetPolicyOk returns a tuple with the Policy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyAttributeResponse) GetPolicyType() MonitorConfigPolicyType
GetPolicyType returns the PolicyType field value if set, zero value otherwise.
func (o *MonitorConfigPolicyAttributeResponse) GetPolicyTypeOk() (*MonitorConfigPolicyType, bool)
GetPolicyTypeOk returns a tuple with the PolicyType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyAttributeResponse) HasPolicy() bool
HasPolicy returns a boolean if a field has been set.
func (o *MonitorConfigPolicyAttributeResponse) HasPolicyType() bool
HasPolicyType returns a boolean if a field has been set.
func (o MonitorConfigPolicyAttributeResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyAttributeResponse) SetPolicy(v MonitorConfigPolicyPolicy)
SetPolicy gets a reference to the given MonitorConfigPolicyPolicy and assigns it to the Policy field.
func (o *MonitorConfigPolicyAttributeResponse) SetPolicyType(v MonitorConfigPolicyType)
SetPolicyType gets a reference to the given MonitorConfigPolicyType and assigns it to the PolicyType field.
func (o *MonitorConfigPolicyAttributeResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyCreateData A monitor configuration policy data.
type MonitorConfigPolicyCreateData struct {
// Policy and policy type for a monitor configuration policy.
Attributes MonitorConfigPolicyAttributeCreateRequest `json:"attributes"`
// Monitor configuration policy resource type.
Type MonitorConfigPolicyResourceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyCreateData(attributes MonitorConfigPolicyAttributeCreateRequest, typeVar MonitorConfigPolicyResourceType) *MonitorConfigPolicyCreateData
NewMonitorConfigPolicyCreateData instantiates a new MonitorConfigPolicyCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyCreateDataWithDefaults() *MonitorConfigPolicyCreateData
NewMonitorConfigPolicyCreateDataWithDefaults instantiates a new MonitorConfigPolicyCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyCreateData) GetAttributes() MonitorConfigPolicyAttributeCreateRequest
GetAttributes returns the Attributes field value.
func (o *MonitorConfigPolicyCreateData) GetAttributesOk() (*MonitorConfigPolicyAttributeCreateRequest, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyCreateData) GetType() MonitorConfigPolicyResourceType
GetType returns the Type field value.
func (o *MonitorConfigPolicyCreateData) GetTypeOk() (*MonitorConfigPolicyResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o MonitorConfigPolicyCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyCreateData) SetAttributes(v MonitorConfigPolicyAttributeCreateRequest)
SetAttributes sets field value.
func (o *MonitorConfigPolicyCreateData) SetType(v MonitorConfigPolicyResourceType)
SetType sets field value.
func (o *MonitorConfigPolicyCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyCreateRequest Request for creating a monitor configuration policy.
type MonitorConfigPolicyCreateRequest struct {
// A monitor configuration policy data.
Data MonitorConfigPolicyCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyCreateRequest(data MonitorConfigPolicyCreateData) *MonitorConfigPolicyCreateRequest
NewMonitorConfigPolicyCreateRequest instantiates a new MonitorConfigPolicyCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyCreateRequestWithDefaults() *MonitorConfigPolicyCreateRequest
NewMonitorConfigPolicyCreateRequestWithDefaults instantiates a new MonitorConfigPolicyCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyCreateRequest) GetData() MonitorConfigPolicyCreateData
GetData returns the Data field value.
func (o *MonitorConfigPolicyCreateRequest) GetDataOk() (*MonitorConfigPolicyCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MonitorConfigPolicyCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyCreateRequest) SetData(v MonitorConfigPolicyCreateData)
SetData sets field value.
func (o *MonitorConfigPolicyCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyEditData A monitor configuration policy data.
type MonitorConfigPolicyEditData struct {
// Policy and policy type for a monitor configuration policy.
Attributes MonitorConfigPolicyAttributeEditRequest `json:"attributes"`
// ID of this monitor configuration policy.
Id string `json:"id"`
// Monitor configuration policy resource type.
Type MonitorConfigPolicyResourceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyEditData(attributes MonitorConfigPolicyAttributeEditRequest, id string, typeVar MonitorConfigPolicyResourceType) *MonitorConfigPolicyEditData
NewMonitorConfigPolicyEditData instantiates a new MonitorConfigPolicyEditData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyEditDataWithDefaults() *MonitorConfigPolicyEditData
NewMonitorConfigPolicyEditDataWithDefaults instantiates a new MonitorConfigPolicyEditData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyEditData) GetAttributes() MonitorConfigPolicyAttributeEditRequest
GetAttributes returns the Attributes field value.
func (o *MonitorConfigPolicyEditData) GetAttributesOk() (*MonitorConfigPolicyAttributeEditRequest, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyEditData) GetId() string
GetId returns the Id field value.
func (o *MonitorConfigPolicyEditData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyEditData) GetType() MonitorConfigPolicyResourceType
GetType returns the Type field value.
func (o *MonitorConfigPolicyEditData) GetTypeOk() (*MonitorConfigPolicyResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o MonitorConfigPolicyEditData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyEditData) SetAttributes(v MonitorConfigPolicyAttributeEditRequest)
SetAttributes sets field value.
func (o *MonitorConfigPolicyEditData) SetId(v string)
SetId sets field value.
func (o *MonitorConfigPolicyEditData) SetType(v MonitorConfigPolicyResourceType)
SetType sets field value.
func (o *MonitorConfigPolicyEditData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyEditRequest Request for editing a monitor configuration policy.
type MonitorConfigPolicyEditRequest struct {
// A monitor configuration policy data.
Data MonitorConfigPolicyEditData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyEditRequest(data MonitorConfigPolicyEditData) *MonitorConfigPolicyEditRequest
NewMonitorConfigPolicyEditRequest instantiates a new MonitorConfigPolicyEditRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyEditRequestWithDefaults() *MonitorConfigPolicyEditRequest
NewMonitorConfigPolicyEditRequestWithDefaults instantiates a new MonitorConfigPolicyEditRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyEditRequest) GetData() MonitorConfigPolicyEditData
GetData returns the Data field value.
func (o *MonitorConfigPolicyEditRequest) GetDataOk() (*MonitorConfigPolicyEditData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MonitorConfigPolicyEditRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyEditRequest) SetData(v MonitorConfigPolicyEditData)
SetData sets field value.
func (o *MonitorConfigPolicyEditRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyListResponse Response for retrieving all monitor configuration policies.
type MonitorConfigPolicyListResponse struct {
// An array of monitor configuration policies.
Data []MonitorConfigPolicyResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyListResponse() *MonitorConfigPolicyListResponse
NewMonitorConfigPolicyListResponse instantiates a new MonitorConfigPolicyListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyListResponseWithDefaults() *MonitorConfigPolicyListResponse
NewMonitorConfigPolicyListResponseWithDefaults instantiates a new MonitorConfigPolicyListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyListResponse) GetData() []MonitorConfigPolicyResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *MonitorConfigPolicyListResponse) GetDataOk() (*[]MonitorConfigPolicyResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MonitorConfigPolicyListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyListResponse) SetData(v []MonitorConfigPolicyResponseData)
SetData gets a reference to the given []MonitorConfigPolicyResponseData and assigns it to the Data field.
func (o *MonitorConfigPolicyListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyPolicy - Configuration for the policy.
type MonitorConfigPolicyPolicy struct {
MonitorConfigPolicyTagPolicy *MonitorConfigPolicyTagPolicy
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func MonitorConfigPolicyTagPolicyAsMonitorConfigPolicyPolicy(v *MonitorConfigPolicyTagPolicy) MonitorConfigPolicyPolicy
MonitorConfigPolicyTagPolicyAsMonitorConfigPolicyPolicy is a convenience function that returns MonitorConfigPolicyTagPolicy wrapped in MonitorConfigPolicyPolicy.
func (obj *MonitorConfigPolicyPolicy) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj MonitorConfigPolicyPolicy) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *MonitorConfigPolicyPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
MonitorConfigPolicyPolicyCreateRequest - Configuration for the policy.
type MonitorConfigPolicyPolicyCreateRequest struct {
MonitorConfigPolicyTagPolicyCreateRequest *MonitorConfigPolicyTagPolicyCreateRequest
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func MonitorConfigPolicyTagPolicyCreateRequestAsMonitorConfigPolicyPolicyCreateRequest(v *MonitorConfigPolicyTagPolicyCreateRequest) MonitorConfigPolicyPolicyCreateRequest
MonitorConfigPolicyTagPolicyCreateRequestAsMonitorConfigPolicyPolicyCreateRequest is a convenience function that returns MonitorConfigPolicyTagPolicyCreateRequest wrapped in MonitorConfigPolicyPolicyCreateRequest.
func (obj *MonitorConfigPolicyPolicyCreateRequest) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj MonitorConfigPolicyPolicyCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *MonitorConfigPolicyPolicyCreateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
MonitorConfigPolicyResourceType Monitor configuration policy resource type.
type MonitorConfigPolicyResourceType string
List of MonitorConfigPolicyResourceType.
const (
MONITORCONFIGPOLICYRESOURCETYPE_MONITOR_CONFIG_POLICY MonitorConfigPolicyResourceType = "monitor-config-policy"
)
func NewMonitorConfigPolicyResourceTypeFromValue(v string) (*MonitorConfigPolicyResourceType, error)
NewMonitorConfigPolicyResourceTypeFromValue returns a pointer to a valid MonitorConfigPolicyResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MonitorConfigPolicyResourceType) GetAllowedValues() []MonitorConfigPolicyResourceType
GetAllowedValues reeturns the list of possible values.
func (v MonitorConfigPolicyResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MonitorConfigPolicyResourceType) Ptr() *MonitorConfigPolicyResourceType
Ptr returns reference to MonitorConfigPolicyResourceType value.
func (v *MonitorConfigPolicyResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyResponse Response for retrieving a monitor configuration policy.
type MonitorConfigPolicyResponse struct {
// A monitor configuration policy data.
Data *MonitorConfigPolicyResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyResponse() *MonitorConfigPolicyResponse
NewMonitorConfigPolicyResponse instantiates a new MonitorConfigPolicyResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyResponseWithDefaults() *MonitorConfigPolicyResponse
NewMonitorConfigPolicyResponseWithDefaults instantiates a new MonitorConfigPolicyResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyResponse) GetData() MonitorConfigPolicyResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *MonitorConfigPolicyResponse) GetDataOk() (*MonitorConfigPolicyResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MonitorConfigPolicyResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyResponse) SetData(v MonitorConfigPolicyResponseData)
SetData gets a reference to the given MonitorConfigPolicyResponseData and assigns it to the Data field.
func (o *MonitorConfigPolicyResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyResponseData A monitor configuration policy data.
type MonitorConfigPolicyResponseData struct {
// Policy and policy type for a monitor configuration policy.
Attributes *MonitorConfigPolicyAttributeResponse `json:"attributes,omitempty"`
// ID of this monitor configuration policy.
Id *string `json:"id,omitempty"`
// Monitor configuration policy resource type.
Type *MonitorConfigPolicyResourceType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyResponseData() *MonitorConfigPolicyResponseData
NewMonitorConfigPolicyResponseData instantiates a new MonitorConfigPolicyResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyResponseDataWithDefaults() *MonitorConfigPolicyResponseData
NewMonitorConfigPolicyResponseDataWithDefaults instantiates a new MonitorConfigPolicyResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyResponseData) GetAttributes() MonitorConfigPolicyAttributeResponse
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MonitorConfigPolicyResponseData) GetAttributesOk() (*MonitorConfigPolicyAttributeResponse, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MonitorConfigPolicyResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyResponseData) GetType() MonitorConfigPolicyResourceType
GetType returns the Type field value if set, zero value otherwise.
func (o *MonitorConfigPolicyResponseData) GetTypeOk() (*MonitorConfigPolicyResourceType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MonitorConfigPolicyResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MonitorConfigPolicyResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o MonitorConfigPolicyResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyResponseData) SetAttributes(v MonitorConfigPolicyAttributeResponse)
SetAttributes gets a reference to the given MonitorConfigPolicyAttributeResponse and assigns it to the Attributes field.
func (o *MonitorConfigPolicyResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MonitorConfigPolicyResponseData) SetType(v MonitorConfigPolicyResourceType)
SetType gets a reference to the given MonitorConfigPolicyResourceType and assigns it to the Type field.
func (o *MonitorConfigPolicyResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyTagPolicy Tag attributes of a monitor configuration policy.
type MonitorConfigPolicyTagPolicy struct {
// The key of the tag.
TagKey *string `json:"tag_key,omitempty"`
// If a tag key is required for monitor creation.
TagKeyRequired *bool `json:"tag_key_required,omitempty"`
// Valid values for the tag.
ValidTagValues []string `json:"valid_tag_values,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyTagPolicy() *MonitorConfigPolicyTagPolicy
NewMonitorConfigPolicyTagPolicy instantiates a new MonitorConfigPolicyTagPolicy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyTagPolicyWithDefaults() *MonitorConfigPolicyTagPolicy
NewMonitorConfigPolicyTagPolicyWithDefaults instantiates a new MonitorConfigPolicyTagPolicy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyTagPolicy) GetTagKey() string
GetTagKey returns the TagKey field value if set, zero value otherwise.
func (o *MonitorConfigPolicyTagPolicy) GetTagKeyOk() (*string, bool)
GetTagKeyOk returns a tuple with the TagKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyTagPolicy) GetTagKeyRequired() bool
GetTagKeyRequired returns the TagKeyRequired field value if set, zero value otherwise.
func (o *MonitorConfigPolicyTagPolicy) GetTagKeyRequiredOk() (*bool, bool)
GetTagKeyRequiredOk returns a tuple with the TagKeyRequired field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyTagPolicy) GetValidTagValues() []string
GetValidTagValues returns the ValidTagValues field value if set, zero value otherwise.
func (o *MonitorConfigPolicyTagPolicy) GetValidTagValuesOk() (*[]string, bool)
GetValidTagValuesOk returns a tuple with the ValidTagValues field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyTagPolicy) HasTagKey() bool
HasTagKey returns a boolean if a field has been set.
func (o *MonitorConfigPolicyTagPolicy) HasTagKeyRequired() bool
HasTagKeyRequired returns a boolean if a field has been set.
func (o *MonitorConfigPolicyTagPolicy) HasValidTagValues() bool
HasValidTagValues returns a boolean if a field has been set.
func (o MonitorConfigPolicyTagPolicy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyTagPolicy) SetTagKey(v string)
SetTagKey gets a reference to the given string and assigns it to the TagKey field.
func (o *MonitorConfigPolicyTagPolicy) SetTagKeyRequired(v bool)
SetTagKeyRequired gets a reference to the given bool and assigns it to the TagKeyRequired field.
func (o *MonitorConfigPolicyTagPolicy) SetValidTagValues(v []string)
SetValidTagValues gets a reference to the given []string and assigns it to the ValidTagValues field.
func (o *MonitorConfigPolicyTagPolicy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyTagPolicyCreateRequest Tag attributes of a monitor configuration policy.
type MonitorConfigPolicyTagPolicyCreateRequest struct {
// The key of the tag.
TagKey string `json:"tag_key"`
// If a tag key is required for monitor creation.
TagKeyRequired bool `json:"tag_key_required"`
// Valid values for the tag.
ValidTagValues []string `json:"valid_tag_values"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorConfigPolicyTagPolicyCreateRequest(tagKey string, tagKeyRequired bool, validTagValues []string) *MonitorConfigPolicyTagPolicyCreateRequest
NewMonitorConfigPolicyTagPolicyCreateRequest instantiates a new MonitorConfigPolicyTagPolicyCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorConfigPolicyTagPolicyCreateRequestWithDefaults() *MonitorConfigPolicyTagPolicyCreateRequest
NewMonitorConfigPolicyTagPolicyCreateRequestWithDefaults instantiates a new MonitorConfigPolicyTagPolicyCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) GetTagKey() string
GetTagKey returns the TagKey field value.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) GetTagKeyOk() (*string, bool)
GetTagKeyOk returns a tuple with the TagKey field value and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) GetTagKeyRequired() bool
GetTagKeyRequired returns the TagKeyRequired field value.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) GetTagKeyRequiredOk() (*bool, bool)
GetTagKeyRequiredOk returns a tuple with the TagKeyRequired field value and a boolean to check if the value has been set.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) GetValidTagValues() []string
GetValidTagValues returns the ValidTagValues field value.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) GetValidTagValuesOk() (*[]string, bool)
GetValidTagValuesOk returns a tuple with the ValidTagValues field value and a boolean to check if the value has been set.
func (o MonitorConfigPolicyTagPolicyCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) SetTagKey(v string)
SetTagKey sets field value.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) SetTagKeyRequired(v bool)
SetTagKeyRequired sets field value.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) SetValidTagValues(v []string)
SetValidTagValues sets field value.
func (o *MonitorConfigPolicyTagPolicyCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorConfigPolicyType The monitor configuration policy type.
type MonitorConfigPolicyType string
List of MonitorConfigPolicyType.
const (
MONITORCONFIGPOLICYTYPE_TAG MonitorConfigPolicyType = "tag"
)
func NewMonitorConfigPolicyTypeFromValue(v string) (*MonitorConfigPolicyType, error)
NewMonitorConfigPolicyTypeFromValue returns a pointer to a valid MonitorConfigPolicyType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MonitorConfigPolicyType) GetAllowedValues() []MonitorConfigPolicyType
GetAllowedValues reeturns the list of possible values.
func (v MonitorConfigPolicyType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MonitorConfigPolicyType) Ptr() *MonitorConfigPolicyType
Ptr returns reference to MonitorConfigPolicyType value.
func (v *MonitorConfigPolicyType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MonitorDowntimeMatchResourceType Monitor Downtime Match resource type.
type MonitorDowntimeMatchResourceType string
List of MonitorDowntimeMatchResourceType.
const (
MONITORDOWNTIMEMATCHRESOURCETYPE_DOWNTIME_MATCH MonitorDowntimeMatchResourceType = "downtime_match"
)
func NewMonitorDowntimeMatchResourceTypeFromValue(v string) (*MonitorDowntimeMatchResourceType, error)
NewMonitorDowntimeMatchResourceTypeFromValue returns a pointer to a valid MonitorDowntimeMatchResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MonitorDowntimeMatchResourceType) GetAllowedValues() []MonitorDowntimeMatchResourceType
GetAllowedValues reeturns the list of possible values.
func (v MonitorDowntimeMatchResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MonitorDowntimeMatchResourceType) Ptr() *MonitorDowntimeMatchResourceType
Ptr returns reference to MonitorDowntimeMatchResourceType value.
func (v *MonitorDowntimeMatchResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MonitorDowntimeMatchResponse Response for retrieving all downtime matches for a monitor.
type MonitorDowntimeMatchResponse struct {
// An array of downtime matches.
Data []MonitorDowntimeMatchResponseData `json:"data,omitempty"`
// Pagination metadata returned by the API.
Meta *DowntimeMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorDowntimeMatchResponse() *MonitorDowntimeMatchResponse
NewMonitorDowntimeMatchResponse instantiates a new MonitorDowntimeMatchResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorDowntimeMatchResponseWithDefaults() *MonitorDowntimeMatchResponse
NewMonitorDowntimeMatchResponseWithDefaults instantiates a new MonitorDowntimeMatchResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorDowntimeMatchResponse) GetData() []MonitorDowntimeMatchResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *MonitorDowntimeMatchResponse) GetDataOk() (*[]MonitorDowntimeMatchResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorDowntimeMatchResponse) GetMeta() DowntimeMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *MonitorDowntimeMatchResponse) GetMetaOk() (*DowntimeMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorDowntimeMatchResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *MonitorDowntimeMatchResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o MonitorDowntimeMatchResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorDowntimeMatchResponse) SetData(v []MonitorDowntimeMatchResponseData)
SetData gets a reference to the given []MonitorDowntimeMatchResponseData and assigns it to the Data field.
func (o *MonitorDowntimeMatchResponse) SetMeta(v DowntimeMeta)
SetMeta gets a reference to the given DowntimeMeta and assigns it to the Meta field.
func (o *MonitorDowntimeMatchResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorDowntimeMatchResponseAttributes Downtime match details.
type MonitorDowntimeMatchResponseAttributes struct {
// The end of the downtime.
End datadog.NullableTime `json:"end,omitempty"`
// An array of groups associated with the downtime.
Groups []string `json:"groups,omitempty"`
// The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/).
Scope *string `json:"scope,omitempty"`
// The start of the downtime.
Start *time.Time `json:"start,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorDowntimeMatchResponseAttributes() *MonitorDowntimeMatchResponseAttributes
NewMonitorDowntimeMatchResponseAttributes instantiates a new MonitorDowntimeMatchResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorDowntimeMatchResponseAttributesWithDefaults() *MonitorDowntimeMatchResponseAttributes
NewMonitorDowntimeMatchResponseAttributesWithDefaults instantiates a new MonitorDowntimeMatchResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorDowntimeMatchResponseAttributes) GetEnd() time.Time
GetEnd returns the End field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MonitorDowntimeMatchResponseAttributes) GetEndOk() (*time.Time, bool)
GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *MonitorDowntimeMatchResponseAttributes) GetGroups() []string
GetGroups returns the Groups field value if set, zero value otherwise.
func (o *MonitorDowntimeMatchResponseAttributes) GetGroupsOk() (*[]string, bool)
GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorDowntimeMatchResponseAttributes) GetScope() string
GetScope returns the Scope field value if set, zero value otherwise.
func (o *MonitorDowntimeMatchResponseAttributes) GetScopeOk() (*string, bool)
GetScopeOk returns a tuple with the Scope field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorDowntimeMatchResponseAttributes) GetStart() time.Time
GetStart returns the Start field value if set, zero value otherwise.
func (o *MonitorDowntimeMatchResponseAttributes) GetStartOk() (*time.Time, bool)
GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorDowntimeMatchResponseAttributes) HasEnd() bool
HasEnd returns a boolean if a field has been set.
func (o *MonitorDowntimeMatchResponseAttributes) HasGroups() bool
HasGroups returns a boolean if a field has been set.
func (o *MonitorDowntimeMatchResponseAttributes) HasScope() bool
HasScope returns a boolean if a field has been set.
func (o *MonitorDowntimeMatchResponseAttributes) HasStart() bool
HasStart returns a boolean if a field has been set.
func (o MonitorDowntimeMatchResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorDowntimeMatchResponseAttributes) SetEnd(v time.Time)
SetEnd gets a reference to the given datadog.NullableTime and assigns it to the End field.
func (o *MonitorDowntimeMatchResponseAttributes) SetEndNil()
SetEndNil sets the value for End to be an explicit nil.
func (o *MonitorDowntimeMatchResponseAttributes) SetGroups(v []string)
SetGroups gets a reference to the given []string and assigns it to the Groups field.
func (o *MonitorDowntimeMatchResponseAttributes) SetScope(v string)
SetScope gets a reference to the given string and assigns it to the Scope field.
func (o *MonitorDowntimeMatchResponseAttributes) SetStart(v time.Time)
SetStart gets a reference to the given time.Time and assigns it to the Start field.
func (o *MonitorDowntimeMatchResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *MonitorDowntimeMatchResponseAttributes) UnsetEnd()
UnsetEnd ensures that no value is present for End, not even an explicit nil.
MonitorDowntimeMatchResponseData A downtime match.
type MonitorDowntimeMatchResponseData struct {
// Downtime match details.
Attributes *MonitorDowntimeMatchResponseAttributes `json:"attributes,omitempty"`
// The downtime ID.
Id datadog.NullableString `json:"id,omitempty"`
// Monitor Downtime Match resource type.
Type *MonitorDowntimeMatchResourceType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorDowntimeMatchResponseData() *MonitorDowntimeMatchResponseData
NewMonitorDowntimeMatchResponseData instantiates a new MonitorDowntimeMatchResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorDowntimeMatchResponseDataWithDefaults() *MonitorDowntimeMatchResponseData
NewMonitorDowntimeMatchResponseDataWithDefaults instantiates a new MonitorDowntimeMatchResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorDowntimeMatchResponseData) GetAttributes() MonitorDowntimeMatchResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MonitorDowntimeMatchResponseData) GetAttributesOk() (*MonitorDowntimeMatchResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorDowntimeMatchResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MonitorDowntimeMatchResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *MonitorDowntimeMatchResponseData) GetType() MonitorDowntimeMatchResourceType
GetType returns the Type field value if set, zero value otherwise.
func (o *MonitorDowntimeMatchResponseData) GetTypeOk() (*MonitorDowntimeMatchResourceType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorDowntimeMatchResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MonitorDowntimeMatchResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MonitorDowntimeMatchResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o MonitorDowntimeMatchResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorDowntimeMatchResponseData) SetAttributes(v MonitorDowntimeMatchResponseAttributes)
SetAttributes gets a reference to the given MonitorDowntimeMatchResponseAttributes and assigns it to the Attributes field.
func (o *MonitorDowntimeMatchResponseData) SetId(v string)
SetId gets a reference to the given datadog.NullableString and assigns it to the Id field.
func (o *MonitorDowntimeMatchResponseData) SetIdNil()
SetIdNil sets the value for Id to be an explicit nil.
func (o *MonitorDowntimeMatchResponseData) SetType(v MonitorDowntimeMatchResourceType)
SetType gets a reference to the given MonitorDowntimeMatchResourceType and assigns it to the Type field.
func (o *MonitorDowntimeMatchResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *MonitorDowntimeMatchResponseData) UnsetId()
UnsetId ensures that no value is present for Id, not even an explicit nil.
MonitorType Attributes from the monitor that triggered the event.
type MonitorType struct {
// The POSIX timestamp of the monitor's creation in nanoseconds.
CreatedAt *int64 `json:"created_at,omitempty"`
// Monitor group status used when there is no `result_groups`.
GroupStatus *int32 `json:"group_status,omitempty"`
// Groups to which the monitor belongs.
Groups []string `json:"groups,omitempty"`
// The monitor ID.
Id *int64 `json:"id,omitempty"`
// The monitor message.
Message *string `json:"message,omitempty"`
// The monitor's last-modified timestamp.
Modified *int64 `json:"modified,omitempty"`
// The monitor name.
Name *string `json:"name,omitempty"`
// The query that triggers the alert.
Query *string `json:"query,omitempty"`
// A list of tags attached to the monitor.
Tags []string `json:"tags,omitempty"`
// The templated name of the monitor before resolving any template variables.
TemplatedName *string `json:"templated_name,omitempty"`
// The monitor type.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorType() *MonitorType
NewMonitorType instantiates a new MonitorType object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorTypeWithDefaults() *MonitorType
NewMonitorTypeWithDefaults instantiates a new MonitorType object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorType) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *MonitorType) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetGroupStatus() int32
GetGroupStatus returns the GroupStatus field value if set, zero value otherwise.
func (o *MonitorType) GetGroupStatusOk() (*int32, bool)
GetGroupStatusOk returns a tuple with the GroupStatus field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetGroups() []string
GetGroups returns the Groups field value if set, zero value otherwise.
func (o *MonitorType) GetGroupsOk() (*[]string, bool)
GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetId() int64
GetId returns the Id field value if set, zero value otherwise.
func (o *MonitorType) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *MonitorType) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetModified() int64
GetModified returns the Modified field value if set, zero value otherwise.
func (o *MonitorType) GetModifiedOk() (*int64, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *MonitorType) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *MonitorType) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MonitorType) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetTemplatedName() string
GetTemplatedName returns the TemplatedName field value if set, zero value otherwise.
func (o *MonitorType) GetTemplatedNameOk() (*string, bool)
GetTemplatedNameOk returns a tuple with the TemplatedName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *MonitorType) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *MonitorType) HasGroupStatus() bool
HasGroupStatus returns a boolean if a field has been set.
func (o *MonitorType) HasGroups() bool
HasGroups returns a boolean if a field has been set.
func (o *MonitorType) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MonitorType) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *MonitorType) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *MonitorType) HasName() bool
HasName returns a boolean if a field has been set.
func (o *MonitorType) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *MonitorType) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *MonitorType) HasTemplatedName() bool
HasTemplatedName returns a boolean if a field has been set.
func (o *MonitorType) HasType() bool
HasType returns a boolean if a field has been set.
func (o MonitorType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorType) SetCreatedAt(v int64)
SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *MonitorType) SetGroupStatus(v int32)
SetGroupStatus gets a reference to the given int32 and assigns it to the GroupStatus field.
func (o *MonitorType) SetGroups(v []string)
SetGroups gets a reference to the given []string and assigns it to the Groups field.
func (o *MonitorType) SetId(v int64)
SetId gets a reference to the given int64 and assigns it to the Id field.
func (o *MonitorType) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *MonitorType) SetModified(v int64)
SetModified gets a reference to the given int64 and assigns it to the Modified field.
func (o *MonitorType) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *MonitorType) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *MonitorType) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MonitorType) SetTemplatedName(v string)
SetTemplatedName gets a reference to the given string and assigns it to the TemplatedName field.
func (o *MonitorType) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *MonitorType) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MonitorsApi service type
type MonitorsApi datadog.Service
func NewMonitorsApi(client *datadog.APIClient) *MonitorsApi
NewMonitorsApi Returns NewMonitorsApi.
func (a *MonitorsApi) CreateMonitorConfigPolicy(ctx _context.Context, body MonitorConfigPolicyCreateRequest) (MonitorConfigPolicyResponse, *_nethttp.Response, error)
CreateMonitorConfigPolicy Create a monitor configuration policy. Create a monitor configuration policy.
func (a *MonitorsApi) DeleteMonitorConfigPolicy(ctx _context.Context, policyId string) (*_nethttp.Response, error)
DeleteMonitorConfigPolicy Delete a monitor configuration policy. Delete a monitor configuration policy.
func (a *MonitorsApi) GetMonitorConfigPolicy(ctx _context.Context, policyId string) (MonitorConfigPolicyResponse, *_nethttp.Response, error)
GetMonitorConfigPolicy Get a monitor configuration policy. Get a monitor configuration policy by `policy_id`.
func (a *MonitorsApi) ListMonitorConfigPolicies(ctx _context.Context) (MonitorConfigPolicyListResponse, *_nethttp.Response, error)
ListMonitorConfigPolicies Get all monitor configuration policies. Get all monitor configuration policies.
func (a *MonitorsApi) UpdateMonitorConfigPolicy(ctx _context.Context, policyId string, body MonitorConfigPolicyEditRequest) (MonitorConfigPolicyResponse, *_nethttp.Response, error)
UpdateMonitorConfigPolicy Edit a monitor configuration policy. Edit a monitor configuration policy.
MuteFindingRequest The new mute finding request.
type MuteFindingRequest struct {
// Data object containing the new mute properties of the finding.
Data MuteFindingRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMuteFindingRequest(data MuteFindingRequestData) *MuteFindingRequest
NewMuteFindingRequest instantiates a new MuteFindingRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMuteFindingRequestWithDefaults() *MuteFindingRequest
NewMuteFindingRequestWithDefaults instantiates a new MuteFindingRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MuteFindingRequest) GetData() MuteFindingRequestData
GetData returns the Data field value.
func (o *MuteFindingRequest) GetDataOk() (*MuteFindingRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MuteFindingRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MuteFindingRequest) SetData(v MuteFindingRequestData)
SetData sets field value.
func (o *MuteFindingRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MuteFindingRequestAttributes The mute properties to be updated.
type MuteFindingRequestAttributes struct {
// Object containing the new mute properties of the finding.
Mute MuteFindingRequestProperties `json:"mute"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
}
func NewMuteFindingRequestAttributes(mute MuteFindingRequestProperties) *MuteFindingRequestAttributes
NewMuteFindingRequestAttributes instantiates a new MuteFindingRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMuteFindingRequestAttributesWithDefaults() *MuteFindingRequestAttributes
NewMuteFindingRequestAttributesWithDefaults instantiates a new MuteFindingRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MuteFindingRequestAttributes) GetMute() MuteFindingRequestProperties
GetMute returns the Mute field value.
func (o *MuteFindingRequestAttributes) GetMuteOk() (*MuteFindingRequestProperties, bool)
GetMuteOk returns a tuple with the Mute field value and a boolean to check if the value has been set.
func (o MuteFindingRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MuteFindingRequestAttributes) SetMute(v MuteFindingRequestProperties)
SetMute sets field value.
func (o *MuteFindingRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MuteFindingRequestData Data object containing the new mute properties of the finding.
type MuteFindingRequestData struct {
// The mute properties to be updated.
Attributes MuteFindingRequestAttributes `json:"attributes"`
// The unique ID for this finding.
Id string `json:"id"`
// The JSON:API type for findings.
Type FindingType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMuteFindingRequestData(attributes MuteFindingRequestAttributes, id string, typeVar FindingType) *MuteFindingRequestData
NewMuteFindingRequestData instantiates a new MuteFindingRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMuteFindingRequestDataWithDefaults() *MuteFindingRequestData
NewMuteFindingRequestDataWithDefaults instantiates a new MuteFindingRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MuteFindingRequestData) GetAttributes() MuteFindingRequestAttributes
GetAttributes returns the Attributes field value.
func (o *MuteFindingRequestData) GetAttributesOk() (*MuteFindingRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *MuteFindingRequestData) GetId() string
GetId returns the Id field value.
func (o *MuteFindingRequestData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MuteFindingRequestData) GetType() FindingType
GetType returns the Type field value.
func (o *MuteFindingRequestData) GetTypeOk() (*FindingType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o MuteFindingRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MuteFindingRequestData) SetAttributes(v MuteFindingRequestAttributes)
SetAttributes sets field value.
func (o *MuteFindingRequestData) SetId(v string)
SetId sets field value.
func (o *MuteFindingRequestData) SetType(v FindingType)
SetType sets field value.
func (o *MuteFindingRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MuteFindingRequestProperties Object containing the new mute properties of the finding.
type MuteFindingRequestProperties struct {
// Additional information about the reason why this finding is muted or unmuted. This field has a maximum limit of 280 characters.
Description *string `json:"description,omitempty"`
// The expiration date of the mute or unmute action (Unix ms). It must be set to a value greater than the current timestamp.
// If this field is not provided, the finding will be muted or unmuted indefinitely, which is equivalent to setting the expiration date to 9999999999999.
//
ExpirationDate *int64 `json:"expiration_date,omitempty"`
// Whether this finding is muted or unmuted.
Muted bool `json:"muted"`
// The reason why this finding is muted or unmuted.
Reason FindingMuteReason `json:"reason"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
}
func NewMuteFindingRequestProperties(muted bool, reason FindingMuteReason) *MuteFindingRequestProperties
NewMuteFindingRequestProperties instantiates a new MuteFindingRequestProperties object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMuteFindingRequestPropertiesWithDefaults() *MuteFindingRequestProperties
NewMuteFindingRequestPropertiesWithDefaults instantiates a new MuteFindingRequestProperties object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MuteFindingRequestProperties) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *MuteFindingRequestProperties) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingRequestProperties) GetExpirationDate() int64
GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise.
func (o *MuteFindingRequestProperties) GetExpirationDateOk() (*int64, bool)
GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingRequestProperties) GetMuted() bool
GetMuted returns the Muted field value.
func (o *MuteFindingRequestProperties) GetMutedOk() (*bool, bool)
GetMutedOk returns a tuple with the Muted field value and a boolean to check if the value has been set.
func (o *MuteFindingRequestProperties) GetReason() FindingMuteReason
GetReason returns the Reason field value.
func (o *MuteFindingRequestProperties) GetReasonOk() (*FindingMuteReason, bool)
GetReasonOk returns a tuple with the Reason field value and a boolean to check if the value has been set.
func (o *MuteFindingRequestProperties) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *MuteFindingRequestProperties) HasExpirationDate() bool
HasExpirationDate returns a boolean if a field has been set.
func (o MuteFindingRequestProperties) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MuteFindingRequestProperties) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *MuteFindingRequestProperties) SetExpirationDate(v int64)
SetExpirationDate gets a reference to the given int64 and assigns it to the ExpirationDate field.
func (o *MuteFindingRequestProperties) SetMuted(v bool)
SetMuted sets field value.
func (o *MuteFindingRequestProperties) SetReason(v FindingMuteReason)
SetReason sets field value.
func (o *MuteFindingRequestProperties) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MuteFindingResponse The expected response schema.
type MuteFindingResponse struct {
// Data object containing the updated finding.
Data MuteFindingResponseData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMuteFindingResponse(data MuteFindingResponseData) *MuteFindingResponse
NewMuteFindingResponse instantiates a new MuteFindingResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMuteFindingResponseWithDefaults() *MuteFindingResponse
NewMuteFindingResponseWithDefaults instantiates a new MuteFindingResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MuteFindingResponse) GetData() MuteFindingResponseData
GetData returns the Data field value.
func (o *MuteFindingResponse) GetDataOk() (*MuteFindingResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MuteFindingResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MuteFindingResponse) SetData(v MuteFindingResponseData)
SetData sets field value.
func (o *MuteFindingResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MuteFindingResponseAttributes The JSON:API attributes of the finding.
type MuteFindingResponseAttributes struct {
// The evaluation of the finding.
Evaluation *FindingEvaluation `json:"evaluation,omitempty"`
// The date on which the evaluation for this finding changed (Unix ms).
EvaluationChangedAt *int64 `json:"evaluation_changed_at,omitempty"`
// Information about the mute status of this finding.
Mute *MuteFindingResponseProperties `json:"mute,omitempty"`
// The resource name of this finding.
Resource *string `json:"resource,omitempty"`
// The date on which the resource was discovered (Unix ms).
ResourceDiscoveryDate *int64 `json:"resource_discovery_date,omitempty"`
// The resource type of this finding.
ResourceType *string `json:"resource_type,omitempty"`
// The rule that triggered this finding.
Rule *FindingRule `json:"rule,omitempty"`
// The status of the finding.
Status *FindingStatus `json:"status,omitempty"`
// The tags associated with this finding.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMuteFindingResponseAttributes() *MuteFindingResponseAttributes
NewMuteFindingResponseAttributes instantiates a new MuteFindingResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMuteFindingResponseAttributesWithDefaults() *MuteFindingResponseAttributes
NewMuteFindingResponseAttributesWithDefaults instantiates a new MuteFindingResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MuteFindingResponseAttributes) GetEvaluation() FindingEvaluation
GetEvaluation returns the Evaluation field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetEvaluationChangedAt() int64
GetEvaluationChangedAt returns the EvaluationChangedAt field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetEvaluationChangedAtOk() (*int64, bool)
GetEvaluationChangedAtOk returns a tuple with the EvaluationChangedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) GetEvaluationOk() (*FindingEvaluation, bool)
GetEvaluationOk returns a tuple with the Evaluation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) GetMute() MuteFindingResponseProperties
GetMute returns the Mute field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetMuteOk() (*MuteFindingResponseProperties, bool)
GetMuteOk returns a tuple with the Mute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) GetResource() string
GetResource returns the Resource field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetResourceDiscoveryDate() int64
GetResourceDiscoveryDate returns the ResourceDiscoveryDate field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetResourceDiscoveryDateOk() (*int64, bool)
GetResourceDiscoveryDateOk returns a tuple with the ResourceDiscoveryDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) GetResourceOk() (*string, bool)
GetResourceOk returns a tuple with the Resource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) GetRule() FindingRule
GetRule returns the Rule field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetRuleOk() (*FindingRule, bool)
GetRuleOk returns a tuple with the Rule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) GetStatus() FindingStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetStatusOk() (*FindingStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MuteFindingResponseAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseAttributes) HasEvaluation() bool
HasEvaluation returns a boolean if a field has been set.
func (o *MuteFindingResponseAttributes) HasEvaluationChangedAt() bool
HasEvaluationChangedAt returns a boolean if a field has been set.
func (o *MuteFindingResponseAttributes) HasMute() bool
HasMute returns a boolean if a field has been set.
func (o *MuteFindingResponseAttributes) HasResource() bool
HasResource returns a boolean if a field has been set.
func (o *MuteFindingResponseAttributes) HasResourceDiscoveryDate() bool
HasResourceDiscoveryDate returns a boolean if a field has been set.
func (o *MuteFindingResponseAttributes) HasResourceType() bool
HasResourceType returns a boolean if a field has been set.
func (o *MuteFindingResponseAttributes) HasRule() bool
HasRule returns a boolean if a field has been set.
func (o *MuteFindingResponseAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *MuteFindingResponseAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MuteFindingResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MuteFindingResponseAttributes) SetEvaluation(v FindingEvaluation)
SetEvaluation gets a reference to the given FindingEvaluation and assigns it to the Evaluation field.
func (o *MuteFindingResponseAttributes) SetEvaluationChangedAt(v int64)
SetEvaluationChangedAt gets a reference to the given int64 and assigns it to the EvaluationChangedAt field.
func (o *MuteFindingResponseAttributes) SetMute(v MuteFindingResponseProperties)
SetMute gets a reference to the given MuteFindingResponseProperties and assigns it to the Mute field.
func (o *MuteFindingResponseAttributes) SetResource(v string)
SetResource gets a reference to the given string and assigns it to the Resource field.
func (o *MuteFindingResponseAttributes) SetResourceDiscoveryDate(v int64)
SetResourceDiscoveryDate gets a reference to the given int64 and assigns it to the ResourceDiscoveryDate field.
func (o *MuteFindingResponseAttributes) SetResourceType(v string)
SetResourceType gets a reference to the given string and assigns it to the ResourceType field.
func (o *MuteFindingResponseAttributes) SetRule(v FindingRule)
SetRule gets a reference to the given FindingRule and assigns it to the Rule field.
func (o *MuteFindingResponseAttributes) SetStatus(v FindingStatus)
SetStatus gets a reference to the given FindingStatus and assigns it to the Status field.
func (o *MuteFindingResponseAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MuteFindingResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MuteFindingResponseData Data object containing the updated finding.
type MuteFindingResponseData struct {
// The JSON:API attributes of the finding.
Attributes *MuteFindingResponseAttributes `json:"attributes,omitempty"`
// The unique ID for this finding.
Id *string `json:"id,omitempty"`
// The JSON:API type for findings.
Type *FindingType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMuteFindingResponseData() *MuteFindingResponseData
NewMuteFindingResponseData instantiates a new MuteFindingResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMuteFindingResponseDataWithDefaults() *MuteFindingResponseData
NewMuteFindingResponseDataWithDefaults instantiates a new MuteFindingResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MuteFindingResponseData) GetAttributes() MuteFindingResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MuteFindingResponseData) GetAttributesOk() (*MuteFindingResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MuteFindingResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseData) GetType() FindingType
GetType returns the Type field value if set, zero value otherwise.
func (o *MuteFindingResponseData) GetTypeOk() (*FindingType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MuteFindingResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MuteFindingResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o MuteFindingResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MuteFindingResponseData) SetAttributes(v MuteFindingResponseAttributes)
SetAttributes gets a reference to the given MuteFindingResponseAttributes and assigns it to the Attributes field.
func (o *MuteFindingResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MuteFindingResponseData) SetType(v FindingType)
SetType gets a reference to the given FindingType and assigns it to the Type field.
func (o *MuteFindingResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MuteFindingResponseProperties Information about the mute status of this finding.
type MuteFindingResponseProperties struct {
// Additional information about the reason why this finding is muted or unmuted.
// This attribute will not be included in the response if the description is not provided in the request body.
//
Description *string `json:"description,omitempty"`
// The expiration date of the mute or unmute action.
// If the expiration date is not provided in the request body, this attribute will not be included in the response and the finding will be muted or unmuted indefinitely.
//
ExpirationDate *int64 `json:"expiration_date,omitempty"`
// Whether this finding is muted or unmuted.
Muted *bool `json:"muted,omitempty"`
// The reason why this finding is muted or unmuted.
Reason *FindingMuteReason `json:"reason,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
}
func NewMuteFindingResponseProperties() *MuteFindingResponseProperties
NewMuteFindingResponseProperties instantiates a new MuteFindingResponseProperties object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMuteFindingResponsePropertiesWithDefaults() *MuteFindingResponseProperties
NewMuteFindingResponsePropertiesWithDefaults instantiates a new MuteFindingResponseProperties object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MuteFindingResponseProperties) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *MuteFindingResponseProperties) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseProperties) GetExpirationDate() int64
GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise.
func (o *MuteFindingResponseProperties) GetExpirationDateOk() (*int64, bool)
GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseProperties) GetMuted() bool
GetMuted returns the Muted field value if set, zero value otherwise.
func (o *MuteFindingResponseProperties) GetMutedOk() (*bool, bool)
GetMutedOk returns a tuple with the Muted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseProperties) GetReason() FindingMuteReason
GetReason returns the Reason field value if set, zero value otherwise.
func (o *MuteFindingResponseProperties) GetReasonOk() (*FindingMuteReason, bool)
GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MuteFindingResponseProperties) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *MuteFindingResponseProperties) HasExpirationDate() bool
HasExpirationDate returns a boolean if a field has been set.
func (o *MuteFindingResponseProperties) HasMuted() bool
HasMuted returns a boolean if a field has been set.
func (o *MuteFindingResponseProperties) HasReason() bool
HasReason returns a boolean if a field has been set.
func (o MuteFindingResponseProperties) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MuteFindingResponseProperties) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *MuteFindingResponseProperties) SetExpirationDate(v int64)
SetExpirationDate gets a reference to the given int64 and assigns it to the ExpirationDate field.
func (o *MuteFindingResponseProperties) SetMuted(v bool)
SetMuted gets a reference to the given bool and assigns it to the Muted field.
func (o *MuteFindingResponseProperties) SetReason(v FindingMuteReason)
SetReason gets a reference to the given FindingMuteReason and assigns it to the Reason field.
func (o *MuteFindingResponseProperties) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
NullableCIAppCIError handles when a null is used for CIAppCIError.
type NullableCIAppCIError struct {
// contains filtered or unexported fields
}
func NewNullableCIAppCIError(val *CIAppCIError) *NullableCIAppCIError
NewNullableCIAppCIError initializes the struct as if Set has been called.
func (v NullableCIAppCIError) Get() *CIAppCIError
Get returns the associated value.
func (v NullableCIAppCIError) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableCIAppCIError) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableCIAppCIError) Set(val *CIAppCIError)
Set changes the value and indicates it's been called.
func (v *NullableCIAppCIError) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableCIAppCIError) Unset()
Unset sets the value to nil and resets the set flag/
NullableCIAppGitInfo handles when a null is used for CIAppGitInfo.
type NullableCIAppGitInfo struct {
// contains filtered or unexported fields
}
func NewNullableCIAppGitInfo(val *CIAppGitInfo) *NullableCIAppGitInfo
NewNullableCIAppGitInfo initializes the struct as if Set has been called.
func (v NullableCIAppGitInfo) Get() *CIAppGitInfo
Get returns the associated value.
func (v NullableCIAppGitInfo) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableCIAppGitInfo) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableCIAppGitInfo) Set(val *CIAppGitInfo)
Set changes the value and indicates it's been called.
func (v *NullableCIAppGitInfo) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableCIAppGitInfo) Unset()
Unset sets the value to nil and resets the set flag/
NullableCIAppHostInfo handles when a null is used for CIAppHostInfo.
type NullableCIAppHostInfo struct {
// contains filtered or unexported fields
}
func NewNullableCIAppHostInfo(val *CIAppHostInfo) *NullableCIAppHostInfo
NewNullableCIAppHostInfo initializes the struct as if Set has been called.
func (v NullableCIAppHostInfo) Get() *CIAppHostInfo
Get returns the associated value.
func (v NullableCIAppHostInfo) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableCIAppHostInfo) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableCIAppHostInfo) Set(val *CIAppHostInfo)
Set changes the value and indicates it's been called.
func (v *NullableCIAppHostInfo) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableCIAppHostInfo) Unset()
Unset sets the value to nil and resets the set flag/
NullableCIAppPipelineEventParentPipeline handles when a null is used for CIAppPipelineEventParentPipeline.
type NullableCIAppPipelineEventParentPipeline struct {
// contains filtered or unexported fields
}
func NewNullableCIAppPipelineEventParentPipeline(val *CIAppPipelineEventParentPipeline) *NullableCIAppPipelineEventParentPipeline
NewNullableCIAppPipelineEventParentPipeline initializes the struct as if Set has been called.
func (v NullableCIAppPipelineEventParentPipeline) Get() *CIAppPipelineEventParentPipeline
Get returns the associated value.
func (v NullableCIAppPipelineEventParentPipeline) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableCIAppPipelineEventParentPipeline) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableCIAppPipelineEventParentPipeline) Set(val *CIAppPipelineEventParentPipeline)
Set changes the value and indicates it's been called.
func (v *NullableCIAppPipelineEventParentPipeline) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableCIAppPipelineEventParentPipeline) Unset()
Unset sets the value to nil and resets the set flag/
NullableCIAppPipelineEventPreviousPipeline handles when a null is used for CIAppPipelineEventPreviousPipeline.
type NullableCIAppPipelineEventPreviousPipeline struct {
// contains filtered or unexported fields
}
func NewNullableCIAppPipelineEventPreviousPipeline(val *CIAppPipelineEventPreviousPipeline) *NullableCIAppPipelineEventPreviousPipeline
NewNullableCIAppPipelineEventPreviousPipeline initializes the struct as if Set has been called.
func (v NullableCIAppPipelineEventPreviousPipeline) Get() *CIAppPipelineEventPreviousPipeline
Get returns the associated value.
func (v NullableCIAppPipelineEventPreviousPipeline) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableCIAppPipelineEventPreviousPipeline) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableCIAppPipelineEventPreviousPipeline) Set(val *CIAppPipelineEventPreviousPipeline)
Set changes the value and indicates it's been called.
func (v *NullableCIAppPipelineEventPreviousPipeline) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableCIAppPipelineEventPreviousPipeline) Unset()
Unset sets the value to nil and resets the set flag/
NullableDowntimeRelationshipsCreatedByData handles when a null is used for DowntimeRelationshipsCreatedByData.
type NullableDowntimeRelationshipsCreatedByData struct {
// contains filtered or unexported fields
}
func NewNullableDowntimeRelationshipsCreatedByData(val *DowntimeRelationshipsCreatedByData) *NullableDowntimeRelationshipsCreatedByData
NewNullableDowntimeRelationshipsCreatedByData initializes the struct as if Set has been called.
func (v NullableDowntimeRelationshipsCreatedByData) Get() *DowntimeRelationshipsCreatedByData
Get returns the associated value.
func (v NullableDowntimeRelationshipsCreatedByData) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableDowntimeRelationshipsCreatedByData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableDowntimeRelationshipsCreatedByData) Set(val *DowntimeRelationshipsCreatedByData)
Set changes the value and indicates it's been called.
func (v *NullableDowntimeRelationshipsCreatedByData) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableDowntimeRelationshipsCreatedByData) Unset()
Unset sets the value to nil and resets the set flag/
NullableDowntimeRelationshipsMonitorData handles when a null is used for DowntimeRelationshipsMonitorData.
type NullableDowntimeRelationshipsMonitorData struct {
// contains filtered or unexported fields
}
func NewNullableDowntimeRelationshipsMonitorData(val *DowntimeRelationshipsMonitorData) *NullableDowntimeRelationshipsMonitorData
NewNullableDowntimeRelationshipsMonitorData initializes the struct as if Set has been called.
func (v NullableDowntimeRelationshipsMonitorData) Get() *DowntimeRelationshipsMonitorData
Get returns the associated value.
func (v NullableDowntimeRelationshipsMonitorData) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableDowntimeRelationshipsMonitorData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableDowntimeRelationshipsMonitorData) Set(val *DowntimeRelationshipsMonitorData)
Set changes the value and indicates it's been called.
func (v *NullableDowntimeRelationshipsMonitorData) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableDowntimeRelationshipsMonitorData) Unset()
Unset sets the value to nil and resets the set flag/
NullableEventPriority handles when a null is used for EventPriority.
type NullableEventPriority struct {
// contains filtered or unexported fields
}
func NewNullableEventPriority(val *EventPriority) *NullableEventPriority
NewNullableEventPriority initializes the struct as if Set has been called.
func (v NullableEventPriority) Get() *EventPriority
Get returns the associated value.
func (v NullableEventPriority) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableEventPriority) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableEventPriority) Set(val *EventPriority)
Set changes the value and indicates it's been called.
func (v *NullableEventPriority) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableEventPriority) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsArchiveDestination handles when a null is used for LogsArchiveDestination.
type NullableLogsArchiveDestination struct {
// contains filtered or unexported fields
}
func NewNullableLogsArchiveDestination(val *LogsArchiveDestination) *NullableLogsArchiveDestination
NewNullableLogsArchiveDestination initializes the struct as if Set has been called.
func (v NullableLogsArchiveDestination) Get() *LogsArchiveDestination
Get returns the associated value.
func (v NullableLogsArchiveDestination) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsArchiveDestination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsArchiveDestination) Set(val *LogsArchiveDestination)
Set changes the value and indicates it's been called.
func (v *NullableLogsArchiveDestination) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsArchiveDestination) Unset()
Unset sets the value to nil and resets the set flag/
NullableMonitorType handles when a null is used for MonitorType.
type NullableMonitorType struct {
// contains filtered or unexported fields
}
func NewNullableMonitorType(val *MonitorType) *NullableMonitorType
NewNullableMonitorType initializes the struct as if Set has been called.
func (v NullableMonitorType) Get() *MonitorType
Get returns the associated value.
func (v NullableMonitorType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMonitorType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMonitorType) Set(val *MonitorType)
Set changes the value and indicates it's been called.
func (v *NullableMonitorType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMonitorType) Unset()
Unset sets the value to nil and resets the set flag/
NullableNullableRelationshipToUserData handles when a null is used for NullableRelationshipToUserData.
type NullableNullableRelationshipToUserData struct {
// contains filtered or unexported fields
}
func NewNullableNullableRelationshipToUserData(val *NullableRelationshipToUserData) *NullableNullableRelationshipToUserData
NewNullableNullableRelationshipToUserData initializes the struct as if Set has been called.
func (v NullableNullableRelationshipToUserData) Get() *NullableRelationshipToUserData
Get returns the associated value.
func (v NullableNullableRelationshipToUserData) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableNullableRelationshipToUserData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableNullableRelationshipToUserData) Set(val *NullableRelationshipToUserData)
Set changes the value and indicates it's been called.
func (v *NullableNullableRelationshipToUserData) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableNullableRelationshipToUserData) Unset()
Unset sets the value to nil and resets the set flag/
NullableRelationshipToUser Relationship to user.
type NullableRelationshipToUser struct {
// Relationship to user object.
Data NullableNullableRelationshipToUserData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewNullableRelationshipToUser(data NullableNullableRelationshipToUserData) *NullableRelationshipToUser
NewNullableRelationshipToUser instantiates a new NullableRelationshipToUser object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewNullableRelationshipToUserWithDefaults() *NullableRelationshipToUser
NewNullableRelationshipToUserWithDefaults instantiates a new NullableRelationshipToUser object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *NullableRelationshipToUser) GetData() NullableRelationshipToUserData
GetData returns the Data field value. If the value is explicit nil, the zero value for NullableRelationshipToUserData will be returned.
func (o *NullableRelationshipToUser) GetDataOk() (*NullableRelationshipToUserData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o NullableRelationshipToUser) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *NullableRelationshipToUser) SetData(v NullableRelationshipToUserData)
SetData sets field value.
func (o *NullableRelationshipToUser) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
NullableRelationshipToUserData Relationship to user object.
type NullableRelationshipToUserData struct {
// A unique identifier that represents the user.
Id string `json:"id"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewNullableRelationshipToUserData(id string, typeVar UsersType) *NullableRelationshipToUserData
NewNullableRelationshipToUserData instantiates a new NullableRelationshipToUserData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewNullableRelationshipToUserDataWithDefaults() *NullableRelationshipToUserData
NewNullableRelationshipToUserDataWithDefaults instantiates a new NullableRelationshipToUserData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *NullableRelationshipToUserData) GetId() string
GetId returns the Id field value.
func (o *NullableRelationshipToUserData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *NullableRelationshipToUserData) GetType() UsersType
GetType returns the Type field value.
func (o *NullableRelationshipToUserData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o NullableRelationshipToUserData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *NullableRelationshipToUserData) SetId(v string)
SetId sets field value.
func (o *NullableRelationshipToUserData) SetType(v UsersType)
SetType sets field value.
func (o *NullableRelationshipToUserData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
NullableUnit handles when a null is used for Unit.
type NullableUnit struct {
// contains filtered or unexported fields
}
func NewNullableUnit(val *Unit) *NullableUnit
NewNullableUnit initializes the struct as if Set has been called.
func (v NullableUnit) Get() *Unit
Get returns the associated value.
func (v NullableUnit) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableUnit) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableUnit) Set(val *Unit)
Set changes the value and indicates it's been called.
func (v *NullableUnit) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableUnit) Unset()
Unset sets the value to nil and resets the set flag/
NullableUserTeamRole handles when a null is used for UserTeamRole.
type NullableUserTeamRole struct {
// contains filtered or unexported fields
}
func NewNullableUserTeamRole(val *UserTeamRole) *NullableUserTeamRole
NewNullableUserTeamRole initializes the struct as if Set has been called.
func (v NullableUserTeamRole) Get() *UserTeamRole
Get returns the associated value.
func (v NullableUserTeamRole) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableUserTeamRole) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableUserTeamRole) Set(val *UserTeamRole)
Set changes the value and indicates it's been called.
func (v *NullableUserTeamRole) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableUserTeamRole) Unset()
Unset sets the value to nil and resets the set flag.
OnDemandConcurrencyCap On-demand concurrency cap.
type OnDemandConcurrencyCap struct {
// On-demand concurrency cap attributes.
Attributes *OnDemandConcurrencyCapAttributes `json:"attributes,omitempty"`
// On-demand concurrency cap type.
Type *OnDemandConcurrencyCapType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOnDemandConcurrencyCap() *OnDemandConcurrencyCap
NewOnDemandConcurrencyCap instantiates a new OnDemandConcurrencyCap object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOnDemandConcurrencyCapWithDefaults() *OnDemandConcurrencyCap
NewOnDemandConcurrencyCapWithDefaults instantiates a new OnDemandConcurrencyCap object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OnDemandConcurrencyCap) GetAttributes() OnDemandConcurrencyCapAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *OnDemandConcurrencyCap) GetAttributesOk() (*OnDemandConcurrencyCapAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OnDemandConcurrencyCap) GetType() OnDemandConcurrencyCapType
GetType returns the Type field value if set, zero value otherwise.
func (o *OnDemandConcurrencyCap) GetTypeOk() (*OnDemandConcurrencyCapType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OnDemandConcurrencyCap) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *OnDemandConcurrencyCap) HasType() bool
HasType returns a boolean if a field has been set.
func (o OnDemandConcurrencyCap) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OnDemandConcurrencyCap) SetAttributes(v OnDemandConcurrencyCapAttributes)
SetAttributes gets a reference to the given OnDemandConcurrencyCapAttributes and assigns it to the Attributes field.
func (o *OnDemandConcurrencyCap) SetType(v OnDemandConcurrencyCapType)
SetType gets a reference to the given OnDemandConcurrencyCapType and assigns it to the Type field.
func (o *OnDemandConcurrencyCap) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OnDemandConcurrencyCapAttributes On-demand concurrency cap attributes.
type OnDemandConcurrencyCapAttributes struct {
// Value of the on-demand concurrency cap.
OnDemandConcurrencyCap *float64 `json:"on_demand_concurrency_cap,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOnDemandConcurrencyCapAttributes() *OnDemandConcurrencyCapAttributes
NewOnDemandConcurrencyCapAttributes instantiates a new OnDemandConcurrencyCapAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOnDemandConcurrencyCapAttributesWithDefaults() *OnDemandConcurrencyCapAttributes
NewOnDemandConcurrencyCapAttributesWithDefaults instantiates a new OnDemandConcurrencyCapAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OnDemandConcurrencyCapAttributes) GetOnDemandConcurrencyCap() float64
GetOnDemandConcurrencyCap returns the OnDemandConcurrencyCap field value if set, zero value otherwise.
func (o *OnDemandConcurrencyCapAttributes) GetOnDemandConcurrencyCapOk() (*float64, bool)
GetOnDemandConcurrencyCapOk returns a tuple with the OnDemandConcurrencyCap field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OnDemandConcurrencyCapAttributes) HasOnDemandConcurrencyCap() bool
HasOnDemandConcurrencyCap returns a boolean if a field has been set.
func (o OnDemandConcurrencyCapAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OnDemandConcurrencyCapAttributes) SetOnDemandConcurrencyCap(v float64)
SetOnDemandConcurrencyCap gets a reference to the given float64 and assigns it to the OnDemandConcurrencyCap field.
func (o *OnDemandConcurrencyCapAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OnDemandConcurrencyCapResponse On-demand concurrency cap response.
type OnDemandConcurrencyCapResponse struct {
// On-demand concurrency cap.
Data *OnDemandConcurrencyCap `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOnDemandConcurrencyCapResponse() *OnDemandConcurrencyCapResponse
NewOnDemandConcurrencyCapResponse instantiates a new OnDemandConcurrencyCapResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOnDemandConcurrencyCapResponseWithDefaults() *OnDemandConcurrencyCapResponse
NewOnDemandConcurrencyCapResponseWithDefaults instantiates a new OnDemandConcurrencyCapResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OnDemandConcurrencyCapResponse) GetData() OnDemandConcurrencyCap
GetData returns the Data field value if set, zero value otherwise.
func (o *OnDemandConcurrencyCapResponse) GetDataOk() (*OnDemandConcurrencyCap, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OnDemandConcurrencyCapResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o OnDemandConcurrencyCapResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OnDemandConcurrencyCapResponse) SetData(v OnDemandConcurrencyCap)
SetData gets a reference to the given OnDemandConcurrencyCap and assigns it to the Data field.
func (o *OnDemandConcurrencyCapResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OnDemandConcurrencyCapType On-demand concurrency cap type.
type OnDemandConcurrencyCapType string
List of OnDemandConcurrencyCapType.
const (
ONDEMANDCONCURRENCYCAPTYPE_ON_DEMAND_CONCURRENCY_CAP OnDemandConcurrencyCapType = "on_demand_concurrency_cap"
)
func NewOnDemandConcurrencyCapTypeFromValue(v string) (*OnDemandConcurrencyCapType, error)
NewOnDemandConcurrencyCapTypeFromValue returns a pointer to a valid OnDemandConcurrencyCapType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *OnDemandConcurrencyCapType) GetAllowedValues() []OnDemandConcurrencyCapType
GetAllowedValues reeturns the list of possible values.
func (v OnDemandConcurrencyCapType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v OnDemandConcurrencyCapType) Ptr() *OnDemandConcurrencyCapType
Ptr returns reference to OnDemandConcurrencyCapType value.
func (v *OnDemandConcurrencyCapType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
OpsgenieIntegrationApi service type
type OpsgenieIntegrationApi datadog.Service
func NewOpsgenieIntegrationApi(client *datadog.APIClient) *OpsgenieIntegrationApi
NewOpsgenieIntegrationApi Returns NewOpsgenieIntegrationApi.
func (a *OpsgenieIntegrationApi) CreateOpsgenieService(ctx _context.Context, body OpsgenieServiceCreateRequest) (OpsgenieServiceResponse, *_nethttp.Response, error)
CreateOpsgenieService Create a new service object. Create a new service object in the Opsgenie integration.
func (a *OpsgenieIntegrationApi) DeleteOpsgenieService(ctx _context.Context, integrationServiceId string) (*_nethttp.Response, error)
DeleteOpsgenieService Delete a single service object. Delete a single service object in the Datadog Opsgenie integration.
func (a *OpsgenieIntegrationApi) GetOpsgenieService(ctx _context.Context, integrationServiceId string) (OpsgenieServiceResponse, *_nethttp.Response, error)
GetOpsgenieService Get a single service object. Get a single service from the Datadog Opsgenie integration.
func (a *OpsgenieIntegrationApi) ListOpsgenieServices(ctx _context.Context) (OpsgenieServicesResponse, *_nethttp.Response, error)
ListOpsgenieServices Get all service objects. Get a list of all services from the Datadog Opsgenie integration.
func (a *OpsgenieIntegrationApi) UpdateOpsgenieService(ctx _context.Context, integrationServiceId string, body OpsgenieServiceUpdateRequest) (OpsgenieServiceResponse, *_nethttp.Response, error)
UpdateOpsgenieService Update a single service object. Update a single service object in the Datadog Opsgenie integration.
OpsgenieServiceCreateAttributes The Opsgenie service attributes for a create request.
type OpsgenieServiceCreateAttributes struct {
// The custom URL for a custom region.
CustomUrl *string `json:"custom_url,omitempty"`
// The name for the Opsgenie service.
Name string `json:"name"`
// The Opsgenie API key for your Opsgenie service.
OpsgenieApiKey string `json:"opsgenie_api_key"`
// The region for the Opsgenie service.
Region OpsgenieServiceRegionType `json:"region"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceCreateAttributes(name string, opsgenieApiKey string, region OpsgenieServiceRegionType) *OpsgenieServiceCreateAttributes
NewOpsgenieServiceCreateAttributes instantiates a new OpsgenieServiceCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceCreateAttributesWithDefaults() *OpsgenieServiceCreateAttributes
NewOpsgenieServiceCreateAttributesWithDefaults instantiates a new OpsgenieServiceCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceCreateAttributes) GetCustomUrl() string
GetCustomUrl returns the CustomUrl field value if set, zero value otherwise.
func (o *OpsgenieServiceCreateAttributes) GetCustomUrlOk() (*string, bool)
GetCustomUrlOk returns a tuple with the CustomUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *OpsgenieServiceCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateAttributes) GetOpsgenieApiKey() string
GetOpsgenieApiKey returns the OpsgenieApiKey field value.
func (o *OpsgenieServiceCreateAttributes) GetOpsgenieApiKeyOk() (*string, bool)
GetOpsgenieApiKeyOk returns a tuple with the OpsgenieApiKey field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateAttributes) GetRegion() OpsgenieServiceRegionType
GetRegion returns the Region field value.
func (o *OpsgenieServiceCreateAttributes) GetRegionOk() (*OpsgenieServiceRegionType, bool)
GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateAttributes) HasCustomUrl() bool
HasCustomUrl returns a boolean if a field has been set.
func (o OpsgenieServiceCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceCreateAttributes) SetCustomUrl(v string)
SetCustomUrl gets a reference to the given string and assigns it to the CustomUrl field.
func (o *OpsgenieServiceCreateAttributes) SetName(v string)
SetName sets field value.
func (o *OpsgenieServiceCreateAttributes) SetOpsgenieApiKey(v string)
SetOpsgenieApiKey sets field value.
func (o *OpsgenieServiceCreateAttributes) SetRegion(v OpsgenieServiceRegionType)
SetRegion sets field value.
func (o *OpsgenieServiceCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceCreateData Opsgenie service data for a create request.
type OpsgenieServiceCreateData struct {
// The Opsgenie service attributes for a create request.
Attributes OpsgenieServiceCreateAttributes `json:"attributes"`
// Opsgenie service resource type.
Type OpsgenieServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceCreateData(attributes OpsgenieServiceCreateAttributes, typeVar OpsgenieServiceType) *OpsgenieServiceCreateData
NewOpsgenieServiceCreateData instantiates a new OpsgenieServiceCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceCreateDataWithDefaults() *OpsgenieServiceCreateData
NewOpsgenieServiceCreateDataWithDefaults instantiates a new OpsgenieServiceCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceCreateData) GetAttributes() OpsgenieServiceCreateAttributes
GetAttributes returns the Attributes field value.
func (o *OpsgenieServiceCreateData) GetAttributesOk() (*OpsgenieServiceCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateData) GetType() OpsgenieServiceType
GetType returns the Type field value.
func (o *OpsgenieServiceCreateData) GetTypeOk() (*OpsgenieServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o OpsgenieServiceCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceCreateData) SetAttributes(v OpsgenieServiceCreateAttributes)
SetAttributes sets field value.
func (o *OpsgenieServiceCreateData) SetType(v OpsgenieServiceType)
SetType sets field value.
func (o *OpsgenieServiceCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceCreateRequest Create request for an Opsgenie service.
type OpsgenieServiceCreateRequest struct {
// Opsgenie service data for a create request.
Data OpsgenieServiceCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceCreateRequest(data OpsgenieServiceCreateData) *OpsgenieServiceCreateRequest
NewOpsgenieServiceCreateRequest instantiates a new OpsgenieServiceCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceCreateRequestWithDefaults() *OpsgenieServiceCreateRequest
NewOpsgenieServiceCreateRequestWithDefaults instantiates a new OpsgenieServiceCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceCreateRequest) GetData() OpsgenieServiceCreateData
GetData returns the Data field value.
func (o *OpsgenieServiceCreateRequest) GetDataOk() (*OpsgenieServiceCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o OpsgenieServiceCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceCreateRequest) SetData(v OpsgenieServiceCreateData)
SetData sets field value.
func (o *OpsgenieServiceCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceRegionType The region for the Opsgenie service.
type OpsgenieServiceRegionType string
List of OpsgenieServiceRegionType.
const (
OPSGENIESERVICEREGIONTYPE_US OpsgenieServiceRegionType = "us"
OPSGENIESERVICEREGIONTYPE_EU OpsgenieServiceRegionType = "eu"
OPSGENIESERVICEREGIONTYPE_CUSTOM OpsgenieServiceRegionType = "custom"
)
func NewOpsgenieServiceRegionTypeFromValue(v string) (*OpsgenieServiceRegionType, error)
NewOpsgenieServiceRegionTypeFromValue returns a pointer to a valid OpsgenieServiceRegionType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *OpsgenieServiceRegionType) GetAllowedValues() []OpsgenieServiceRegionType
GetAllowedValues reeturns the list of possible values.
func (v OpsgenieServiceRegionType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v OpsgenieServiceRegionType) Ptr() *OpsgenieServiceRegionType
Ptr returns reference to OpsgenieServiceRegionType value.
func (v *OpsgenieServiceRegionType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
OpsgenieServiceResponse Response of an Opsgenie service.
type OpsgenieServiceResponse struct {
// Opsgenie service data from a response.
Data OpsgenieServiceResponseData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceResponse(data OpsgenieServiceResponseData) *OpsgenieServiceResponse
NewOpsgenieServiceResponse instantiates a new OpsgenieServiceResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceResponseWithDefaults() *OpsgenieServiceResponse
NewOpsgenieServiceResponseWithDefaults instantiates a new OpsgenieServiceResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceResponse) GetData() OpsgenieServiceResponseData
GetData returns the Data field value.
func (o *OpsgenieServiceResponse) GetDataOk() (*OpsgenieServiceResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o OpsgenieServiceResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceResponse) SetData(v OpsgenieServiceResponseData)
SetData sets field value.
func (o *OpsgenieServiceResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceResponseAttributes The attributes from an Opsgenie service response.
type OpsgenieServiceResponseAttributes struct {
// The custom URL for a custom region.
CustomUrl datadog.NullableString `json:"custom_url,omitempty"`
// The name for the Opsgenie service.
Name *string `json:"name,omitempty"`
// The region for the Opsgenie service.
Region *OpsgenieServiceRegionType `json:"region,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceResponseAttributes() *OpsgenieServiceResponseAttributes
NewOpsgenieServiceResponseAttributes instantiates a new OpsgenieServiceResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceResponseAttributesWithDefaults() *OpsgenieServiceResponseAttributes
NewOpsgenieServiceResponseAttributesWithDefaults instantiates a new OpsgenieServiceResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceResponseAttributes) GetCustomUrl() string
GetCustomUrl returns the CustomUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *OpsgenieServiceResponseAttributes) GetCustomUrlOk() (*string, bool)
GetCustomUrlOk returns a tuple with the CustomUrl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *OpsgenieServiceResponseAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *OpsgenieServiceResponseAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceResponseAttributes) GetRegion() OpsgenieServiceRegionType
GetRegion returns the Region field value if set, zero value otherwise.
func (o *OpsgenieServiceResponseAttributes) GetRegionOk() (*OpsgenieServiceRegionType, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceResponseAttributes) HasCustomUrl() bool
HasCustomUrl returns a boolean if a field has been set.
func (o *OpsgenieServiceResponseAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *OpsgenieServiceResponseAttributes) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o OpsgenieServiceResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceResponseAttributes) SetCustomUrl(v string)
SetCustomUrl gets a reference to the given datadog.NullableString and assigns it to the CustomUrl field.
func (o *OpsgenieServiceResponseAttributes) SetCustomUrlNil()
SetCustomUrlNil sets the value for CustomUrl to be an explicit nil.
func (o *OpsgenieServiceResponseAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *OpsgenieServiceResponseAttributes) SetRegion(v OpsgenieServiceRegionType)
SetRegion gets a reference to the given OpsgenieServiceRegionType and assigns it to the Region field.
func (o *OpsgenieServiceResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *OpsgenieServiceResponseAttributes) UnsetCustomUrl()
UnsetCustomUrl ensures that no value is present for CustomUrl, not even an explicit nil.
OpsgenieServiceResponseData Opsgenie service data from a response.
type OpsgenieServiceResponseData struct {
// The attributes from an Opsgenie service response.
Attributes OpsgenieServiceResponseAttributes `json:"attributes"`
// The ID of the Opsgenie service.
Id string `json:"id"`
// Opsgenie service resource type.
Type OpsgenieServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceResponseData(attributes OpsgenieServiceResponseAttributes, id string, typeVar OpsgenieServiceType) *OpsgenieServiceResponseData
NewOpsgenieServiceResponseData instantiates a new OpsgenieServiceResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceResponseDataWithDefaults() *OpsgenieServiceResponseData
NewOpsgenieServiceResponseDataWithDefaults instantiates a new OpsgenieServiceResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceResponseData) GetAttributes() OpsgenieServiceResponseAttributes
GetAttributes returns the Attributes field value.
func (o *OpsgenieServiceResponseData) GetAttributesOk() (*OpsgenieServiceResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceResponseData) GetId() string
GetId returns the Id field value.
func (o *OpsgenieServiceResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceResponseData) GetType() OpsgenieServiceType
GetType returns the Type field value.
func (o *OpsgenieServiceResponseData) GetTypeOk() (*OpsgenieServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o OpsgenieServiceResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceResponseData) SetAttributes(v OpsgenieServiceResponseAttributes)
SetAttributes sets field value.
func (o *OpsgenieServiceResponseData) SetId(v string)
SetId sets field value.
func (o *OpsgenieServiceResponseData) SetType(v OpsgenieServiceType)
SetType sets field value.
func (o *OpsgenieServiceResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceType Opsgenie service resource type.
type OpsgenieServiceType string
List of OpsgenieServiceType.
const (
OPSGENIESERVICETYPE_OPSGENIE_SERVICE OpsgenieServiceType = "opsgenie-service"
)
func NewOpsgenieServiceTypeFromValue(v string) (*OpsgenieServiceType, error)
NewOpsgenieServiceTypeFromValue returns a pointer to a valid OpsgenieServiceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *OpsgenieServiceType) GetAllowedValues() []OpsgenieServiceType
GetAllowedValues reeturns the list of possible values.
func (v OpsgenieServiceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v OpsgenieServiceType) Ptr() *OpsgenieServiceType
Ptr returns reference to OpsgenieServiceType value.
func (v *OpsgenieServiceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
OpsgenieServiceUpdateAttributes The Opsgenie service attributes for an update request.
type OpsgenieServiceUpdateAttributes struct {
// The custom URL for a custom region.
CustomUrl datadog.NullableString `json:"custom_url,omitempty"`
// The name for the Opsgenie service.
Name *string `json:"name,omitempty"`
// The Opsgenie API key for your Opsgenie service.
OpsgenieApiKey *string `json:"opsgenie_api_key,omitempty"`
// The region for the Opsgenie service.
Region *OpsgenieServiceRegionType `json:"region,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceUpdateAttributes() *OpsgenieServiceUpdateAttributes
NewOpsgenieServiceUpdateAttributes instantiates a new OpsgenieServiceUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceUpdateAttributesWithDefaults() *OpsgenieServiceUpdateAttributes
NewOpsgenieServiceUpdateAttributesWithDefaults instantiates a new OpsgenieServiceUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceUpdateAttributes) GetCustomUrl() string
GetCustomUrl returns the CustomUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *OpsgenieServiceUpdateAttributes) GetCustomUrlOk() (*string, bool)
GetCustomUrlOk returns a tuple with the CustomUrl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *OpsgenieServiceUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *OpsgenieServiceUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateAttributes) GetOpsgenieApiKey() string
GetOpsgenieApiKey returns the OpsgenieApiKey field value if set, zero value otherwise.
func (o *OpsgenieServiceUpdateAttributes) GetOpsgenieApiKeyOk() (*string, bool)
GetOpsgenieApiKeyOk returns a tuple with the OpsgenieApiKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateAttributes) GetRegion() OpsgenieServiceRegionType
GetRegion returns the Region field value if set, zero value otherwise.
func (o *OpsgenieServiceUpdateAttributes) GetRegionOk() (*OpsgenieServiceRegionType, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateAttributes) HasCustomUrl() bool
HasCustomUrl returns a boolean if a field has been set.
func (o *OpsgenieServiceUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *OpsgenieServiceUpdateAttributes) HasOpsgenieApiKey() bool
HasOpsgenieApiKey returns a boolean if a field has been set.
func (o *OpsgenieServiceUpdateAttributes) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o OpsgenieServiceUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceUpdateAttributes) SetCustomUrl(v string)
SetCustomUrl gets a reference to the given datadog.NullableString and assigns it to the CustomUrl field.
func (o *OpsgenieServiceUpdateAttributes) SetCustomUrlNil()
SetCustomUrlNil sets the value for CustomUrl to be an explicit nil.
func (o *OpsgenieServiceUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *OpsgenieServiceUpdateAttributes) SetOpsgenieApiKey(v string)
SetOpsgenieApiKey gets a reference to the given string and assigns it to the OpsgenieApiKey field.
func (o *OpsgenieServiceUpdateAttributes) SetRegion(v OpsgenieServiceRegionType)
SetRegion gets a reference to the given OpsgenieServiceRegionType and assigns it to the Region field.
func (o *OpsgenieServiceUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *OpsgenieServiceUpdateAttributes) UnsetCustomUrl()
UnsetCustomUrl ensures that no value is present for CustomUrl, not even an explicit nil.
OpsgenieServiceUpdateData Opsgenie service for an update request.
type OpsgenieServiceUpdateData struct {
// The Opsgenie service attributes for an update request.
Attributes OpsgenieServiceUpdateAttributes `json:"attributes"`
// The ID of the Opsgenie service.
Id string `json:"id"`
// Opsgenie service resource type.
Type OpsgenieServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceUpdateData(attributes OpsgenieServiceUpdateAttributes, id string, typeVar OpsgenieServiceType) *OpsgenieServiceUpdateData
NewOpsgenieServiceUpdateData instantiates a new OpsgenieServiceUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceUpdateDataWithDefaults() *OpsgenieServiceUpdateData
NewOpsgenieServiceUpdateDataWithDefaults instantiates a new OpsgenieServiceUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceUpdateData) GetAttributes() OpsgenieServiceUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *OpsgenieServiceUpdateData) GetAttributesOk() (*OpsgenieServiceUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateData) GetId() string
GetId returns the Id field value.
func (o *OpsgenieServiceUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateData) GetType() OpsgenieServiceType
GetType returns the Type field value.
func (o *OpsgenieServiceUpdateData) GetTypeOk() (*OpsgenieServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o OpsgenieServiceUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceUpdateData) SetAttributes(v OpsgenieServiceUpdateAttributes)
SetAttributes sets field value.
func (o *OpsgenieServiceUpdateData) SetId(v string)
SetId sets field value.
func (o *OpsgenieServiceUpdateData) SetType(v OpsgenieServiceType)
SetType sets field value.
func (o *OpsgenieServiceUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceUpdateRequest Update request for an Opsgenie service.
type OpsgenieServiceUpdateRequest struct {
// Opsgenie service for an update request.
Data OpsgenieServiceUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceUpdateRequest(data OpsgenieServiceUpdateData) *OpsgenieServiceUpdateRequest
NewOpsgenieServiceUpdateRequest instantiates a new OpsgenieServiceUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceUpdateRequestWithDefaults() *OpsgenieServiceUpdateRequest
NewOpsgenieServiceUpdateRequestWithDefaults instantiates a new OpsgenieServiceUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceUpdateRequest) GetData() OpsgenieServiceUpdateData
GetData returns the Data field value.
func (o *OpsgenieServiceUpdateRequest) GetDataOk() (*OpsgenieServiceUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o OpsgenieServiceUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceUpdateRequest) SetData(v OpsgenieServiceUpdateData)
SetData sets field value.
func (o *OpsgenieServiceUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServicesResponse Response with a list of Opsgenie services.
type OpsgenieServicesResponse struct {
// An array of Opsgenie services.
Data []OpsgenieServiceResponseData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServicesResponse(data []OpsgenieServiceResponseData) *OpsgenieServicesResponse
NewOpsgenieServicesResponse instantiates a new OpsgenieServicesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServicesResponseWithDefaults() *OpsgenieServicesResponse
NewOpsgenieServicesResponseWithDefaults instantiates a new OpsgenieServicesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServicesResponse) GetData() []OpsgenieServiceResponseData
GetData returns the Data field value.
func (o *OpsgenieServicesResponse) GetDataOk() (*[]OpsgenieServiceResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o OpsgenieServicesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServicesResponse) SetData(v []OpsgenieServiceResponseData)
SetData sets field value.
func (o *OpsgenieServicesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Organization Organization object.
type Organization struct {
// Attributes of the organization.
Attributes *OrganizationAttributes `json:"attributes,omitempty"`
// ID of the organization.
Id *string `json:"id,omitempty"`
// Organizations resource type.
Type OrganizationsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOrganization(typeVar OrganizationsType) *Organization
NewOrganization instantiates a new Organization object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOrganizationWithDefaults() *Organization
NewOrganizationWithDefaults instantiates a new Organization object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Organization) GetAttributes() OrganizationAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Organization) GetAttributesOk() (*OrganizationAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Organization) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Organization) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Organization) GetType() OrganizationsType
GetType returns the Type field value.
func (o *Organization) GetTypeOk() (*OrganizationsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *Organization) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Organization) HasId() bool
HasId returns a boolean if a field has been set.
func (o Organization) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Organization) SetAttributes(v OrganizationAttributes)
SetAttributes gets a reference to the given OrganizationAttributes and assigns it to the Attributes field.
func (o *Organization) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Organization) SetType(v OrganizationsType)
SetType sets field value.
func (o *Organization) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OrganizationAttributes Attributes of the organization.
type OrganizationAttributes struct {
// Creation time of the organization.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Description of the organization.
Description *string `json:"description,omitempty"`
// Whether or not the organization is disabled.
Disabled *bool `json:"disabled,omitempty"`
// Time of last organization modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// Name of the organization.
Name *string `json:"name,omitempty"`
// Public ID of the organization.
PublicId *string `json:"public_id,omitempty"`
// Sharing type of the organization.
Sharing *string `json:"sharing,omitempty"`
// URL of the site that this organization exists at.
Url *string `json:"url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOrganizationAttributes() *OrganizationAttributes
NewOrganizationAttributes instantiates a new OrganizationAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOrganizationAttributesWithDefaults() *OrganizationAttributes
NewOrganizationAttributesWithDefaults instantiates a new OrganizationAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OrganizationAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetDisabled() bool
GetDisabled returns the Disabled field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetDisabledOk() (*bool, bool)
GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetPublicId() string
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetPublicIdOk() (*string, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetSharing() string
GetSharing returns the Sharing field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetSharingOk() (*string, bool)
GetSharingOk returns a tuple with the Sharing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasDisabled() bool
HasDisabled returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasSharing() bool
HasSharing returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (o OrganizationAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OrganizationAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *OrganizationAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *OrganizationAttributes) SetDisabled(v bool)
SetDisabled gets a reference to the given bool and assigns it to the Disabled field.
func (o *OrganizationAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *OrganizationAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *OrganizationAttributes) SetPublicId(v string)
SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *OrganizationAttributes) SetSharing(v string)
SetSharing gets a reference to the given string and assigns it to the Sharing field.
func (o *OrganizationAttributes) SetUrl(v string)
SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *OrganizationAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OrganizationsApi service type
type OrganizationsApi datadog.Service
func NewOrganizationsApi(client *datadog.APIClient) *OrganizationsApi
NewOrganizationsApi Returns NewOrganizationsApi.
func (a *OrganizationsApi) UploadIdPMetadata(ctx _context.Context, o ...UploadIdPMetadataOptionalParameters) (*_nethttp.Response, error)
UploadIdPMetadata Upload IdP metadata. Endpoint for uploading IdP metadata for SAML setup.
Use this endpoint to upload or replace IdP metadata for SAML login configuration.
OrganizationsType Organizations resource type.
type OrganizationsType string
List of OrganizationsType.
const (
ORGANIZATIONSTYPE_ORGS OrganizationsType = "orgs"
)
func NewOrganizationsTypeFromValue(v string) (*OrganizationsType, error)
NewOrganizationsTypeFromValue returns a pointer to a valid OrganizationsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *OrganizationsType) GetAllowedValues() []OrganizationsType
GetAllowedValues reeturns the list of possible values.
func (v OrganizationsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v OrganizationsType) Ptr() *OrganizationsType
Ptr returns reference to OrganizationsType value.
func (v *OrganizationsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
Pagination Pagination object.
type Pagination struct {
// Total count.
TotalCount *int64 `json:"total_count,omitempty"`
// Total count of elements matched by the filter.
TotalFilteredCount *int64 `json:"total_filtered_count,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPagination() *Pagination
NewPagination instantiates a new Pagination object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPaginationWithDefaults() *Pagination
NewPaginationWithDefaults instantiates a new Pagination object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Pagination) GetTotalCount() int64
GetTotalCount returns the TotalCount field value if set, zero value otherwise.
func (o *Pagination) GetTotalCountOk() (*int64, bool)
GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Pagination) GetTotalFilteredCount() int64
GetTotalFilteredCount returns the TotalFilteredCount field value if set, zero value otherwise.
func (o *Pagination) GetTotalFilteredCountOk() (*int64, bool)
GetTotalFilteredCountOk returns a tuple with the TotalFilteredCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Pagination) HasTotalCount() bool
HasTotalCount returns a boolean if a field has been set.
func (o *Pagination) HasTotalFilteredCount() bool
HasTotalFilteredCount returns a boolean if a field has been set.
func (o Pagination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Pagination) SetTotalCount(v int64)
SetTotalCount gets a reference to the given int64 and assigns it to the TotalCount field.
func (o *Pagination) SetTotalFilteredCount(v int64)
SetTotalFilteredCount gets a reference to the given int64 and assigns it to the TotalFilteredCount field.
func (o *Pagination) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialAPIKey Partial Datadog API key.
type PartialAPIKey struct {
// Attributes of a partial API key.
Attributes *PartialAPIKeyAttributes `json:"attributes,omitempty"`
// ID of the API key.
Id *string `json:"id,omitempty"`
// Resources related to the API key.
Relationships *APIKeyRelationships `json:"relationships,omitempty"`
// API Keys resource type.
Type *APIKeysType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialAPIKey() *PartialAPIKey
NewPartialAPIKey instantiates a new PartialAPIKey object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialAPIKeyWithDefaults() *PartialAPIKey
NewPartialAPIKeyWithDefaults instantiates a new PartialAPIKey object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialAPIKey) GetAttributes() PartialAPIKeyAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *PartialAPIKey) GetAttributesOk() (*PartialAPIKeyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKey) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *PartialAPIKey) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKey) GetRelationships() APIKeyRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *PartialAPIKey) GetRelationshipsOk() (*APIKeyRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKey) GetType() APIKeysType
GetType returns the Type field value if set, zero value otherwise.
func (o *PartialAPIKey) GetTypeOk() (*APIKeysType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKey) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *PartialAPIKey) HasId() bool
HasId returns a boolean if a field has been set.
func (o *PartialAPIKey) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *PartialAPIKey) HasType() bool
HasType returns a boolean if a field has been set.
func (o PartialAPIKey) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialAPIKey) SetAttributes(v PartialAPIKeyAttributes)
SetAttributes gets a reference to the given PartialAPIKeyAttributes and assigns it to the Attributes field.
func (o *PartialAPIKey) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *PartialAPIKey) SetRelationships(v APIKeyRelationships)
SetRelationships gets a reference to the given APIKeyRelationships and assigns it to the Relationships field.
func (o *PartialAPIKey) SetType(v APIKeysType)
SetType gets a reference to the given APIKeysType and assigns it to the Type field.
func (o *PartialAPIKey) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialAPIKeyAttributes Attributes of a partial API key.
type PartialAPIKeyAttributes struct {
// Creation date of the API key.
CreatedAt *string `json:"created_at,omitempty"`
// The last four characters of the API key.
Last4 *string `json:"last4,omitempty"`
// Date the API key was last modified.
ModifiedAt *string `json:"modified_at,omitempty"`
// Name of the API key.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialAPIKeyAttributes() *PartialAPIKeyAttributes
NewPartialAPIKeyAttributes instantiates a new PartialAPIKeyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialAPIKeyAttributesWithDefaults() *PartialAPIKeyAttributes
NewPartialAPIKeyAttributesWithDefaults instantiates a new PartialAPIKeyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialAPIKeyAttributes) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *PartialAPIKeyAttributes) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKeyAttributes) GetLast4() string
GetLast4 returns the Last4 field value if set, zero value otherwise.
func (o *PartialAPIKeyAttributes) GetLast4Ok() (*string, bool)
GetLast4Ok returns a tuple with the Last4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKeyAttributes) GetModifiedAt() string
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *PartialAPIKeyAttributes) GetModifiedAtOk() (*string, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKeyAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *PartialAPIKeyAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKeyAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *PartialAPIKeyAttributes) HasLast4() bool
HasLast4 returns a boolean if a field has been set.
func (o *PartialAPIKeyAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *PartialAPIKeyAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o PartialAPIKeyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialAPIKeyAttributes) SetCreatedAt(v string)
SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
func (o *PartialAPIKeyAttributes) SetLast4(v string)
SetLast4 gets a reference to the given string and assigns it to the Last4 field.
func (o *PartialAPIKeyAttributes) SetModifiedAt(v string)
SetModifiedAt gets a reference to the given string and assigns it to the ModifiedAt field.
func (o *PartialAPIKeyAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *PartialAPIKeyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialApplicationKey Partial Datadog application key.
type PartialApplicationKey struct {
// Attributes of a partial application key.
Attributes *PartialApplicationKeyAttributes `json:"attributes,omitempty"`
// ID of the application key.
Id *string `json:"id,omitempty"`
// Resources related to the application key.
Relationships *ApplicationKeyRelationships `json:"relationships,omitempty"`
// Application Keys resource type.
Type *ApplicationKeysType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialApplicationKey() *PartialApplicationKey
NewPartialApplicationKey instantiates a new PartialApplicationKey object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialApplicationKeyWithDefaults() *PartialApplicationKey
NewPartialApplicationKeyWithDefaults instantiates a new PartialApplicationKey object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialApplicationKey) GetAttributes() PartialApplicationKeyAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *PartialApplicationKey) GetAttributesOk() (*PartialApplicationKeyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKey) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *PartialApplicationKey) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKey) GetRelationships() ApplicationKeyRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *PartialApplicationKey) GetRelationshipsOk() (*ApplicationKeyRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKey) GetType() ApplicationKeysType
GetType returns the Type field value if set, zero value otherwise.
func (o *PartialApplicationKey) GetTypeOk() (*ApplicationKeysType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKey) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *PartialApplicationKey) HasId() bool
HasId returns a boolean if a field has been set.
func (o *PartialApplicationKey) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *PartialApplicationKey) HasType() bool
HasType returns a boolean if a field has been set.
func (o PartialApplicationKey) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialApplicationKey) SetAttributes(v PartialApplicationKeyAttributes)
SetAttributes gets a reference to the given PartialApplicationKeyAttributes and assigns it to the Attributes field.
func (o *PartialApplicationKey) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *PartialApplicationKey) SetRelationships(v ApplicationKeyRelationships)
SetRelationships gets a reference to the given ApplicationKeyRelationships and assigns it to the Relationships field.
func (o *PartialApplicationKey) SetType(v ApplicationKeysType)
SetType gets a reference to the given ApplicationKeysType and assigns it to the Type field.
func (o *PartialApplicationKey) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialApplicationKeyAttributes Attributes of a partial application key.
type PartialApplicationKeyAttributes struct {
// Creation date of the application key.
CreatedAt *string `json:"created_at,omitempty"`
// The last four characters of the application key.
Last4 *string `json:"last4,omitempty"`
// Name of the application key.
Name *string `json:"name,omitempty"`
// Array of scopes to grant the application key.
Scopes datadog.NullableList[string] `json:"scopes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialApplicationKeyAttributes() *PartialApplicationKeyAttributes
NewPartialApplicationKeyAttributes instantiates a new PartialApplicationKeyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialApplicationKeyAttributesWithDefaults() *PartialApplicationKeyAttributes
NewPartialApplicationKeyAttributesWithDefaults instantiates a new PartialApplicationKeyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialApplicationKeyAttributes) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *PartialApplicationKeyAttributes) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyAttributes) GetLast4() string
GetLast4 returns the Last4 field value if set, zero value otherwise.
func (o *PartialApplicationKeyAttributes) GetLast4Ok() (*string, bool)
GetLast4Ok returns a tuple with the Last4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *PartialApplicationKeyAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyAttributes) GetScopes() []string
GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PartialApplicationKeyAttributes) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *PartialApplicationKeyAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *PartialApplicationKeyAttributes) HasLast4() bool
HasLast4 returns a boolean if a field has been set.
func (o *PartialApplicationKeyAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *PartialApplicationKeyAttributes) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o PartialApplicationKeyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialApplicationKeyAttributes) SetCreatedAt(v string)
SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
func (o *PartialApplicationKeyAttributes) SetLast4(v string)
SetLast4 gets a reference to the given string and assigns it to the Last4 field.
func (o *PartialApplicationKeyAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *PartialApplicationKeyAttributes) SetScopes(v []string)
SetScopes gets a reference to the given datadog.NullableList[string] and assigns it to the Scopes field.
func (o *PartialApplicationKeyAttributes) SetScopesNil()
SetScopesNil sets the value for Scopes to be an explicit nil.
func (o *PartialApplicationKeyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *PartialApplicationKeyAttributes) UnsetScopes()
UnsetScopes ensures that no value is present for Scopes, not even an explicit nil.
PartialApplicationKeyResponse Response for retrieving a partial application key.
type PartialApplicationKeyResponse struct {
// Partial Datadog application key.
Data *PartialApplicationKey `json:"data,omitempty"`
// Array of objects related to the application key.
Included []ApplicationKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialApplicationKeyResponse() *PartialApplicationKeyResponse
NewPartialApplicationKeyResponse instantiates a new PartialApplicationKeyResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialApplicationKeyResponseWithDefaults() *PartialApplicationKeyResponse
NewPartialApplicationKeyResponseWithDefaults instantiates a new PartialApplicationKeyResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialApplicationKeyResponse) GetData() PartialApplicationKey
GetData returns the Data field value if set, zero value otherwise.
func (o *PartialApplicationKeyResponse) GetDataOk() (*PartialApplicationKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyResponse) GetIncluded() []ApplicationKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *PartialApplicationKeyResponse) GetIncludedOk() (*[]ApplicationKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *PartialApplicationKeyResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o PartialApplicationKeyResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialApplicationKeyResponse) SetData(v PartialApplicationKey)
SetData gets a reference to the given PartialApplicationKey and assigns it to the Data field.
func (o *PartialApplicationKeyResponse) SetIncluded(v []ApplicationKeyResponseIncludedItem)
SetIncluded gets a reference to the given []ApplicationKeyResponseIncludedItem and assigns it to the Included field.
func (o *PartialApplicationKeyResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Permission Permission object.
type Permission struct {
// Attributes of a permission.
Attributes *PermissionAttributes `json:"attributes,omitempty"`
// ID of the permission.
Id *string `json:"id,omitempty"`
// Permissions resource type.
Type PermissionsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPermission(typeVar PermissionsType) *Permission
NewPermission instantiates a new Permission object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPermissionWithDefaults() *Permission
NewPermissionWithDefaults instantiates a new Permission object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Permission) GetAttributes() PermissionAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Permission) GetAttributesOk() (*PermissionAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Permission) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Permission) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Permission) GetType() PermissionsType
GetType returns the Type field value.
func (o *Permission) GetTypeOk() (*PermissionsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *Permission) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Permission) HasId() bool
HasId returns a boolean if a field has been set.
func (o Permission) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Permission) SetAttributes(v PermissionAttributes)
SetAttributes gets a reference to the given PermissionAttributes and assigns it to the Attributes field.
func (o *Permission) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Permission) SetType(v PermissionsType)
SetType sets field value.
func (o *Permission) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PermissionAttributes Attributes of a permission.
type PermissionAttributes struct {
// Creation time of the permission.
Created *time.Time `json:"created,omitempty"`
// Description of the permission.
Description *string `json:"description,omitempty"`
// Displayed name for the permission.
DisplayName *string `json:"display_name,omitempty"`
// Display type.
DisplayType *string `json:"display_type,omitempty"`
// Name of the permission group.
GroupName *string `json:"group_name,omitempty"`
// Name of the permission.
Name *string `json:"name,omitempty"`
// Whether or not the permission is restricted.
Restricted *bool `json:"restricted,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPermissionAttributes() *PermissionAttributes
NewPermissionAttributes instantiates a new PermissionAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPermissionAttributesWithDefaults() *PermissionAttributes
NewPermissionAttributesWithDefaults instantiates a new PermissionAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PermissionAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *PermissionAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *PermissionAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetDisplayName() string
GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *PermissionAttributes) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetDisplayType() string
GetDisplayType returns the DisplayType field value if set, zero value otherwise.
func (o *PermissionAttributes) GetDisplayTypeOk() (*string, bool)
GetDisplayTypeOk returns a tuple with the DisplayType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetGroupName() string
GetGroupName returns the GroupName field value if set, zero value otherwise.
func (o *PermissionAttributes) GetGroupNameOk() (*string, bool)
GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *PermissionAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetRestricted() bool
GetRestricted returns the Restricted field value if set, zero value otherwise.
func (o *PermissionAttributes) GetRestrictedOk() (*bool, bool)
GetRestrictedOk returns a tuple with the Restricted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *PermissionAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *PermissionAttributes) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (o *PermissionAttributes) HasDisplayType() bool
HasDisplayType returns a boolean if a field has been set.
func (o *PermissionAttributes) HasGroupName() bool
HasGroupName returns a boolean if a field has been set.
func (o *PermissionAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *PermissionAttributes) HasRestricted() bool
HasRestricted returns a boolean if a field has been set.
func (o PermissionAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PermissionAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *PermissionAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *PermissionAttributes) SetDisplayName(v string)
SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *PermissionAttributes) SetDisplayType(v string)
SetDisplayType gets a reference to the given string and assigns it to the DisplayType field.
func (o *PermissionAttributes) SetGroupName(v string)
SetGroupName gets a reference to the given string and assigns it to the GroupName field.
func (o *PermissionAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *PermissionAttributes) SetRestricted(v bool)
SetRestricted gets a reference to the given bool and assigns it to the Restricted field.
func (o *PermissionAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PermissionsResponse Payload with API-returned permissions.
type PermissionsResponse struct {
// Array of permissions.
Data []Permission `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPermissionsResponse() *PermissionsResponse
NewPermissionsResponse instantiates a new PermissionsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPermissionsResponseWithDefaults() *PermissionsResponse
NewPermissionsResponseWithDefaults instantiates a new PermissionsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PermissionsResponse) GetData() []Permission
GetData returns the Data field value if set, zero value otherwise.
func (o *PermissionsResponse) GetDataOk() (*[]Permission, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o PermissionsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PermissionsResponse) SetData(v []Permission)
SetData gets a reference to the given []Permission and assigns it to the Data field.
func (o *PermissionsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PermissionsType Permissions resource type.
type PermissionsType string
List of PermissionsType.
const (
PERMISSIONSTYPE_PERMISSIONS PermissionsType = "permissions"
)
func NewPermissionsTypeFromValue(v string) (*PermissionsType, error)
NewPermissionsTypeFromValue returns a pointer to a valid PermissionsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *PermissionsType) GetAllowedValues() []PermissionsType
GetAllowedValues reeturns the list of possible values.
func (v PermissionsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v PermissionsType) Ptr() *PermissionsType
Ptr returns reference to PermissionsType value.
func (v *PermissionsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ProcessSummariesMeta Response metadata object.
type ProcessSummariesMeta struct {
// Paging attributes.
Page *ProcessSummariesMetaPage `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummariesMeta() *ProcessSummariesMeta
NewProcessSummariesMeta instantiates a new ProcessSummariesMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummariesMetaWithDefaults() *ProcessSummariesMeta
NewProcessSummariesMetaWithDefaults instantiates a new ProcessSummariesMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummariesMeta) GetPage() ProcessSummariesMetaPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *ProcessSummariesMeta) GetPageOk() (*ProcessSummariesMetaPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesMeta) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o ProcessSummariesMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummariesMeta) SetPage(v ProcessSummariesMetaPage)
SetPage gets a reference to the given ProcessSummariesMetaPage and assigns it to the Page field.
func (o *ProcessSummariesMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummariesMetaPage Paging attributes.
type ProcessSummariesMetaPage struct {
// The cursor used to get the next results, if any. To make the next request, use the same
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// Number of results returned.
Size *int32 `json:"size,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummariesMetaPage() *ProcessSummariesMetaPage
NewProcessSummariesMetaPage instantiates a new ProcessSummariesMetaPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummariesMetaPageWithDefaults() *ProcessSummariesMetaPage
NewProcessSummariesMetaPageWithDefaults instantiates a new ProcessSummariesMetaPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummariesMetaPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *ProcessSummariesMetaPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesMetaPage) GetSize() int32
GetSize returns the Size field value if set, zero value otherwise.
func (o *ProcessSummariesMetaPage) GetSizeOk() (*int32, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesMetaPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o *ProcessSummariesMetaPage) HasSize() bool
HasSize returns a boolean if a field has been set.
func (o ProcessSummariesMetaPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummariesMetaPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *ProcessSummariesMetaPage) SetSize(v int32)
SetSize gets a reference to the given int32 and assigns it to the Size field.
func (o *ProcessSummariesMetaPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummariesResponse List of process summaries.
type ProcessSummariesResponse struct {
// Array of process summary objects.
Data []ProcessSummary `json:"data,omitempty"`
// Response metadata object.
Meta *ProcessSummariesMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummariesResponse() *ProcessSummariesResponse
NewProcessSummariesResponse instantiates a new ProcessSummariesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummariesResponseWithDefaults() *ProcessSummariesResponse
NewProcessSummariesResponseWithDefaults instantiates a new ProcessSummariesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummariesResponse) GetData() []ProcessSummary
GetData returns the Data field value if set, zero value otherwise.
func (o *ProcessSummariesResponse) GetDataOk() (*[]ProcessSummary, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesResponse) GetMeta() ProcessSummariesMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *ProcessSummariesResponse) GetMetaOk() (*ProcessSummariesMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *ProcessSummariesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o ProcessSummariesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummariesResponse) SetData(v []ProcessSummary)
SetData gets a reference to the given []ProcessSummary and assigns it to the Data field.
func (o *ProcessSummariesResponse) SetMeta(v ProcessSummariesMeta)
SetMeta gets a reference to the given ProcessSummariesMeta and assigns it to the Meta field.
func (o *ProcessSummariesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummary Process summary object.
type ProcessSummary struct {
// Attributes for a process summary.
Attributes *ProcessSummaryAttributes `json:"attributes,omitempty"`
// Process ID.
Id *string `json:"id,omitempty"`
// Type of process summary.
Type *ProcessSummaryType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummary() *ProcessSummary
NewProcessSummary instantiates a new ProcessSummary object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummaryWithDefaults() *ProcessSummary
NewProcessSummaryWithDefaults instantiates a new ProcessSummary object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummary) GetAttributes() ProcessSummaryAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *ProcessSummary) GetAttributesOk() (*ProcessSummaryAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummary) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *ProcessSummary) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummary) GetType() ProcessSummaryType
GetType returns the Type field value if set, zero value otherwise.
func (o *ProcessSummary) GetTypeOk() (*ProcessSummaryType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummary) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *ProcessSummary) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ProcessSummary) HasType() bool
HasType returns a boolean if a field has been set.
func (o ProcessSummary) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummary) SetAttributes(v ProcessSummaryAttributes)
SetAttributes gets a reference to the given ProcessSummaryAttributes and assigns it to the Attributes field.
func (o *ProcessSummary) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *ProcessSummary) SetType(v ProcessSummaryType)
SetType gets a reference to the given ProcessSummaryType and assigns it to the Type field.
func (o *ProcessSummary) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummaryAttributes Attributes for a process summary.
type ProcessSummaryAttributes struct {
// Process command line.
Cmdline *string `json:"cmdline,omitempty"`
// Host running the process.
Host *string `json:"host,omitempty"`
// Process ID.
Pid *int64 `json:"pid,omitempty"`
// Parent process ID.
Ppid *int64 `json:"ppid,omitempty"`
// Time the process was started.
Start *string `json:"start,omitempty"`
// List of tags associated with the process.
Tags []string `json:"tags,omitempty"`
// Time the process was seen.
Timestamp *string `json:"timestamp,omitempty"`
// Process owner.
User *string `json:"user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummaryAttributes() *ProcessSummaryAttributes
NewProcessSummaryAttributes instantiates a new ProcessSummaryAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummaryAttributesWithDefaults() *ProcessSummaryAttributes
NewProcessSummaryAttributesWithDefaults instantiates a new ProcessSummaryAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummaryAttributes) GetCmdline() string
GetCmdline returns the Cmdline field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetCmdlineOk() (*string, bool)
GetCmdlineOk returns a tuple with the Cmdline field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetHost() string
GetHost returns the Host field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetHostOk() (*string, bool)
GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetPid() int64
GetPid returns the Pid field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetPidOk() (*int64, bool)
GetPidOk returns a tuple with the Pid field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetPpid() int64
GetPpid returns the Ppid field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetPpidOk() (*int64, bool)
GetPpidOk returns a tuple with the Ppid field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetStart() string
GetStart returns the Start field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetStartOk() (*string, bool)
GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetTimestamp() string
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetTimestampOk() (*string, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) HasCmdline() bool
HasCmdline returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasHost() bool
HasHost returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasPid() bool
HasPid returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasPpid() bool
HasPpid returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasStart() bool
HasStart returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasUser() bool
HasUser returns a boolean if a field has been set.
func (o ProcessSummaryAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummaryAttributes) SetCmdline(v string)
SetCmdline gets a reference to the given string and assigns it to the Cmdline field.
func (o *ProcessSummaryAttributes) SetHost(v string)
SetHost gets a reference to the given string and assigns it to the Host field.
func (o *ProcessSummaryAttributes) SetPid(v int64)
SetPid gets a reference to the given int64 and assigns it to the Pid field.
func (o *ProcessSummaryAttributes) SetPpid(v int64)
SetPpid gets a reference to the given int64 and assigns it to the Ppid field.
func (o *ProcessSummaryAttributes) SetStart(v string)
SetStart gets a reference to the given string and assigns it to the Start field.
func (o *ProcessSummaryAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ProcessSummaryAttributes) SetTimestamp(v string)
SetTimestamp gets a reference to the given string and assigns it to the Timestamp field.
func (o *ProcessSummaryAttributes) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (o *ProcessSummaryAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummaryType Type of process summary.
type ProcessSummaryType string
List of ProcessSummaryType.
const (
PROCESSSUMMARYTYPE_PROCESS ProcessSummaryType = "process"
)
func NewProcessSummaryTypeFromValue(v string) (*ProcessSummaryType, error)
NewProcessSummaryTypeFromValue returns a pointer to a valid ProcessSummaryType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ProcessSummaryType) GetAllowedValues() []ProcessSummaryType
GetAllowedValues reeturns the list of possible values.
func (v ProcessSummaryType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ProcessSummaryType) Ptr() *ProcessSummaryType
Ptr returns reference to ProcessSummaryType value.
func (v *ProcessSummaryType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ProcessesApi service type
type ProcessesApi datadog.Service
func NewProcessesApi(client *datadog.APIClient) *ProcessesApi
NewProcessesApi Returns NewProcessesApi.
func (a *ProcessesApi) ListProcesses(ctx _context.Context, o ...ListProcessesOptionalParameters) (ProcessSummariesResponse, *_nethttp.Response, error)
ListProcesses Get all processes. Get all processes for your organization.
func (a *ProcessesApi) ListProcessesWithPagination(ctx _context.Context, o ...ListProcessesOptionalParameters) (<-chan datadog.PaginationResult[ProcessSummary], func())
ListProcessesWithPagination provides a paginated version of ListProcesses returning a channel with all items.
QueryFormula A formula for calculation based on one or more queries.
type QueryFormula struct {
// Formula string, referencing one or more queries with their name property.
Formula string `json:"formula"`
// Message for specifying limits to the number of values returned by a query.
// This limit is only for scalar queries and has no effect on timeseries queries.
Limit *FormulaLimit `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewQueryFormula(formula string) *QueryFormula
NewQueryFormula instantiates a new QueryFormula object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewQueryFormulaWithDefaults() *QueryFormula
NewQueryFormulaWithDefaults instantiates a new QueryFormula object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *QueryFormula) GetFormula() string
GetFormula returns the Formula field value.
func (o *QueryFormula) GetFormulaOk() (*string, bool)
GetFormulaOk returns a tuple with the Formula field value and a boolean to check if the value has been set.
func (o *QueryFormula) GetLimit() FormulaLimit
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *QueryFormula) GetLimitOk() (*FormulaLimit, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *QueryFormula) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o QueryFormula) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *QueryFormula) SetFormula(v string)
SetFormula sets field value.
func (o *QueryFormula) SetLimit(v FormulaLimit)
SetLimit gets a reference to the given FormulaLimit and assigns it to the Limit field.
func (o *QueryFormula) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
QuerySortOrder Direction of sort.
type QuerySortOrder string
List of QuerySortOrder.
const (
QUERYSORTORDER_ASC QuerySortOrder = "asc"
QUERYSORTORDER_DESC QuerySortOrder = "desc"
)
func NewQuerySortOrderFromValue(v string) (*QuerySortOrder, error)
NewQuerySortOrderFromValue returns a pointer to a valid QuerySortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *QuerySortOrder) GetAllowedValues() []QuerySortOrder
GetAllowedValues reeturns the list of possible values.
func (v QuerySortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v QuerySortOrder) Ptr() *QuerySortOrder
Ptr returns reference to QuerySortOrder value.
func (v *QuerySortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMAggregateBucketValue - A bucket value, can be either a timeseries or a single value.
type RUMAggregateBucketValue struct {
RUMAggregateBucketValueSingleString *string
RUMAggregateBucketValueSingleNumber *float64
RUMAggregateBucketValueTimeseries *RUMAggregateBucketValueTimeseries
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RUMAggregateBucketValueSingleNumberAsRUMAggregateBucketValue(v *float64) RUMAggregateBucketValue
RUMAggregateBucketValueSingleNumberAsRUMAggregateBucketValue is a convenience function that returns float64 wrapped in RUMAggregateBucketValue.
func RUMAggregateBucketValueSingleStringAsRUMAggregateBucketValue(v *string) RUMAggregateBucketValue
RUMAggregateBucketValueSingleStringAsRUMAggregateBucketValue is a convenience function that returns string wrapped in RUMAggregateBucketValue.
func RUMAggregateBucketValueTimeseriesAsRUMAggregateBucketValue(v *RUMAggregateBucketValueTimeseries) RUMAggregateBucketValue
RUMAggregateBucketValueTimeseriesAsRUMAggregateBucketValue is a convenience function that returns RUMAggregateBucketValueTimeseries wrapped in RUMAggregateBucketValue.
func (obj *RUMAggregateBucketValue) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj RUMAggregateBucketValue) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *RUMAggregateBucketValue) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
RUMAggregateBucketValueTimeseries A timeseries array.
type RUMAggregateBucketValueTimeseries struct {
Items []RUMAggregateBucketValueTimeseriesPoint
// UnparsedObject contains the raw value of the array if there was an error when deserializing into the struct
UnparsedObject []interface{} `json:"-"`
}
func NewRUMAggregateBucketValueTimeseries() *RUMAggregateBucketValueTimeseries
NewRUMAggregateBucketValueTimeseries instantiates a new RUMAggregateBucketValueTimeseries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregateBucketValueTimeseriesWithDefaults() *RUMAggregateBucketValueTimeseries
NewRUMAggregateBucketValueTimeseriesWithDefaults instantiates a new RUMAggregateBucketValueTimeseries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o RUMAggregateBucketValueTimeseries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregateBucketValueTimeseries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregateBucketValueTimeseriesPoint A timeseries point.
type RUMAggregateBucketValueTimeseriesPoint struct {
// The time value for this point.
Time *time.Time `json:"time,omitempty"`
// The value for this point.
Value *float64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAggregateBucketValueTimeseriesPoint() *RUMAggregateBucketValueTimeseriesPoint
NewRUMAggregateBucketValueTimeseriesPoint instantiates a new RUMAggregateBucketValueTimeseriesPoint object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregateBucketValueTimeseriesPointWithDefaults() *RUMAggregateBucketValueTimeseriesPoint
NewRUMAggregateBucketValueTimeseriesPointWithDefaults instantiates a new RUMAggregateBucketValueTimeseriesPoint object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAggregateBucketValueTimeseriesPoint) GetTime() time.Time
GetTime returns the Time field value if set, zero value otherwise.
func (o *RUMAggregateBucketValueTimeseriesPoint) GetTimeOk() (*time.Time, bool)
GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateBucketValueTimeseriesPoint) GetValue() float64
GetValue returns the Value field value if set, zero value otherwise.
func (o *RUMAggregateBucketValueTimeseriesPoint) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateBucketValueTimeseriesPoint) HasTime() bool
HasTime returns a boolean if a field has been set.
func (o *RUMAggregateBucketValueTimeseriesPoint) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o RUMAggregateBucketValueTimeseriesPoint) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregateBucketValueTimeseriesPoint) SetTime(v time.Time)
SetTime gets a reference to the given time.Time and assigns it to the Time field.
func (o *RUMAggregateBucketValueTimeseriesPoint) SetValue(v float64)
SetValue gets a reference to the given float64 and assigns it to the Value field.
func (o *RUMAggregateBucketValueTimeseriesPoint) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregateRequest The object sent with the request to retrieve aggregation buckets of RUM events from your organization.
type RUMAggregateRequest struct {
// The list of metrics or timeseries to compute for the retrieved buckets.
Compute []RUMCompute `json:"compute,omitempty"`
// The search and filter query settings.
Filter *RUMQueryFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []RUMGroupBy `json:"group_by,omitempty"`
// Global query options that are used during the query.
// Note: Only supply timezone or time offset, not both. Otherwise, the query fails.
Options *RUMQueryOptions `json:"options,omitempty"`
// Paging attributes for listing events.
Page *RUMQueryPageOptions `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAggregateRequest() *RUMAggregateRequest
NewRUMAggregateRequest instantiates a new RUMAggregateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregateRequestWithDefaults() *RUMAggregateRequest
NewRUMAggregateRequestWithDefaults instantiates a new RUMAggregateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAggregateRequest) GetCompute() []RUMCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetComputeOk() (*[]RUMCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) GetFilter() RUMQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetFilterOk() (*RUMQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) GetGroupBy() []RUMGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetGroupByOk() (*[]RUMGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) GetOptions() RUMQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetOptionsOk() (*RUMQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) GetPage() RUMQueryPageOptions
GetPage returns the Page field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetPageOk() (*RUMQueryPageOptions, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *RUMAggregateRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *RUMAggregateRequest) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *RUMAggregateRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *RUMAggregateRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o RUMAggregateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregateRequest) SetCompute(v []RUMCompute)
SetCompute gets a reference to the given []RUMCompute and assigns it to the Compute field.
func (o *RUMAggregateRequest) SetFilter(v RUMQueryFilter)
SetFilter gets a reference to the given RUMQueryFilter and assigns it to the Filter field.
func (o *RUMAggregateRequest) SetGroupBy(v []RUMGroupBy)
SetGroupBy gets a reference to the given []RUMGroupBy and assigns it to the GroupBy field.
func (o *RUMAggregateRequest) SetOptions(v RUMQueryOptions)
SetOptions gets a reference to the given RUMQueryOptions and assigns it to the Options field.
func (o *RUMAggregateRequest) SetPage(v RUMQueryPageOptions)
SetPage gets a reference to the given RUMQueryPageOptions and assigns it to the Page field.
func (o *RUMAggregateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregateSort A sort rule.
type RUMAggregateSort struct {
// An aggregation function.
Aggregation *RUMAggregationFunction `json:"aggregation,omitempty"`
// The metric to sort by (only used for `type=measure`).
Metric *string `json:"metric,omitempty"`
// The order to use, ascending or descending.
Order *RUMSortOrder `json:"order,omitempty"`
// The type of sorting algorithm.
Type *RUMAggregateSortType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAggregateSort() *RUMAggregateSort
NewRUMAggregateSort instantiates a new RUMAggregateSort object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregateSortWithDefaults() *RUMAggregateSort
NewRUMAggregateSortWithDefaults instantiates a new RUMAggregateSort object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAggregateSort) GetAggregation() RUMAggregationFunction
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *RUMAggregateSort) GetAggregationOk() (*RUMAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateSort) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *RUMAggregateSort) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateSort) GetOrder() RUMSortOrder
GetOrder returns the Order field value if set, zero value otherwise.
func (o *RUMAggregateSort) GetOrderOk() (*RUMSortOrder, bool)
GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateSort) GetType() RUMAggregateSortType
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMAggregateSort) GetTypeOk() (*RUMAggregateSortType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateSort) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *RUMAggregateSort) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *RUMAggregateSort) HasOrder() bool
HasOrder returns a boolean if a field has been set.
func (o *RUMAggregateSort) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMAggregateSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregateSort) SetAggregation(v RUMAggregationFunction)
SetAggregation gets a reference to the given RUMAggregationFunction and assigns it to the Aggregation field.
func (o *RUMAggregateSort) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *RUMAggregateSort) SetOrder(v RUMSortOrder)
SetOrder gets a reference to the given RUMSortOrder and assigns it to the Order field.
func (o *RUMAggregateSort) SetType(v RUMAggregateSortType)
SetType gets a reference to the given RUMAggregateSortType and assigns it to the Type field.
func (o *RUMAggregateSort) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregateSortType The type of sorting algorithm.
type RUMAggregateSortType string
List of RUMAggregateSortType.
const (
RUMAGGREGATESORTTYPE_ALPHABETICAL RUMAggregateSortType = "alphabetical"
RUMAGGREGATESORTTYPE_MEASURE RUMAggregateSortType = "measure"
)
func NewRUMAggregateSortTypeFromValue(v string) (*RUMAggregateSortType, error)
NewRUMAggregateSortTypeFromValue returns a pointer to a valid RUMAggregateSortType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMAggregateSortType) GetAllowedValues() []RUMAggregateSortType
GetAllowedValues reeturns the list of possible values.
func (v RUMAggregateSortType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMAggregateSortType) Ptr() *RUMAggregateSortType
Ptr returns reference to RUMAggregateSortType value.
func (v *RUMAggregateSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMAggregationBucketsResponse The query results.
type RUMAggregationBucketsResponse struct {
// The list of matching buckets, one item per bucket.
Buckets []RUMBucketResponse `json:"buckets,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAggregationBucketsResponse() *RUMAggregationBucketsResponse
NewRUMAggregationBucketsResponse instantiates a new RUMAggregationBucketsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregationBucketsResponseWithDefaults() *RUMAggregationBucketsResponse
NewRUMAggregationBucketsResponseWithDefaults instantiates a new RUMAggregationBucketsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAggregationBucketsResponse) GetBuckets() []RUMBucketResponse
GetBuckets returns the Buckets field value if set, zero value otherwise.
func (o *RUMAggregationBucketsResponse) GetBucketsOk() (*[]RUMBucketResponse, bool)
GetBucketsOk returns a tuple with the Buckets field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregationBucketsResponse) HasBuckets() bool
HasBuckets returns a boolean if a field has been set.
func (o RUMAggregationBucketsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregationBucketsResponse) SetBuckets(v []RUMBucketResponse)
SetBuckets gets a reference to the given []RUMBucketResponse and assigns it to the Buckets field.
func (o *RUMAggregationBucketsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregationFunction An aggregation function.
type RUMAggregationFunction string
List of RUMAggregationFunction.
const (
RUMAGGREGATIONFUNCTION_COUNT RUMAggregationFunction = "count"
RUMAGGREGATIONFUNCTION_CARDINALITY RUMAggregationFunction = "cardinality"
RUMAGGREGATIONFUNCTION_PERCENTILE_75 RUMAggregationFunction = "pc75"
RUMAGGREGATIONFUNCTION_PERCENTILE_90 RUMAggregationFunction = "pc90"
RUMAGGREGATIONFUNCTION_PERCENTILE_95 RUMAggregationFunction = "pc95"
RUMAGGREGATIONFUNCTION_PERCENTILE_98 RUMAggregationFunction = "pc98"
RUMAGGREGATIONFUNCTION_PERCENTILE_99 RUMAggregationFunction = "pc99"
RUMAGGREGATIONFUNCTION_SUM RUMAggregationFunction = "sum"
RUMAGGREGATIONFUNCTION_MIN RUMAggregationFunction = "min"
RUMAGGREGATIONFUNCTION_MAX RUMAggregationFunction = "max"
RUMAGGREGATIONFUNCTION_AVG RUMAggregationFunction = "avg"
RUMAGGREGATIONFUNCTION_MEDIAN RUMAggregationFunction = "median"
)
func NewRUMAggregationFunctionFromValue(v string) (*RUMAggregationFunction, error)
NewRUMAggregationFunctionFromValue returns a pointer to a valid RUMAggregationFunction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMAggregationFunction) GetAllowedValues() []RUMAggregationFunction
GetAllowedValues reeturns the list of possible values.
func (v RUMAggregationFunction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMAggregationFunction) Ptr() *RUMAggregationFunction
Ptr returns reference to RUMAggregationFunction value.
func (v *RUMAggregationFunction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMAnalyticsAggregateResponse The response object for the RUM events aggregate API endpoint.
type RUMAnalyticsAggregateResponse struct {
// The query results.
Data *RUMAggregationBucketsResponse `json:"data,omitempty"`
// Links attributes.
Links *RUMResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *RUMResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAnalyticsAggregateResponse() *RUMAnalyticsAggregateResponse
NewRUMAnalyticsAggregateResponse instantiates a new RUMAnalyticsAggregateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAnalyticsAggregateResponseWithDefaults() *RUMAnalyticsAggregateResponse
NewRUMAnalyticsAggregateResponseWithDefaults instantiates a new RUMAnalyticsAggregateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAnalyticsAggregateResponse) GetData() RUMAggregationBucketsResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *RUMAnalyticsAggregateResponse) GetDataOk() (*RUMAggregationBucketsResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAnalyticsAggregateResponse) GetLinks() RUMResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *RUMAnalyticsAggregateResponse) GetLinksOk() (*RUMResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAnalyticsAggregateResponse) GetMeta() RUMResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *RUMAnalyticsAggregateResponse) GetMetaOk() (*RUMResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAnalyticsAggregateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *RUMAnalyticsAggregateResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *RUMAnalyticsAggregateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o RUMAnalyticsAggregateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAnalyticsAggregateResponse) SetData(v RUMAggregationBucketsResponse)
SetData gets a reference to the given RUMAggregationBucketsResponse and assigns it to the Data field.
func (o *RUMAnalyticsAggregateResponse) SetLinks(v RUMResponseLinks)
SetLinks gets a reference to the given RUMResponseLinks and assigns it to the Links field.
func (o *RUMAnalyticsAggregateResponse) SetMeta(v RUMResponseMetadata)
SetMeta gets a reference to the given RUMResponseMetadata and assigns it to the Meta field.
func (o *RUMAnalyticsAggregateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApi service type
type RUMApi datadog.Service
func NewRUMApi(client *datadog.APIClient) *RUMApi
NewRUMApi Returns NewRUMApi.
func (a *RUMApi) AggregateRUMEvents(ctx _context.Context, body RUMAggregateRequest) (RUMAnalyticsAggregateResponse, *_nethttp.Response, error)
AggregateRUMEvents Aggregate RUM events. The API endpoint to aggregate RUM events into buckets of computed metrics and timeseries.
func (a *RUMApi) CreateRUMApplication(ctx _context.Context, body RUMApplicationCreateRequest) (RUMApplicationResponse, *_nethttp.Response, error)
CreateRUMApplication Create a new RUM application. Create a new RUM application in your organization.
func (a *RUMApi) DeleteRUMApplication(ctx _context.Context, id string) (*_nethttp.Response, error)
DeleteRUMApplication Delete a RUM application. Delete an existing RUM application in your organization.
func (a *RUMApi) GetRUMApplication(ctx _context.Context, id string) (RUMApplicationResponse, *_nethttp.Response, error)
GetRUMApplication Get a RUM application. Get the RUM application with given ID in your organization.
func (a *RUMApi) GetRUMApplications(ctx _context.Context) (RUMApplicationsResponse, *_nethttp.Response, error)
GetRUMApplications List all the RUM applications. List all the RUM applications in your organization.
func (a *RUMApi) ListRUMEvents(ctx _context.Context, o ...ListRUMEventsOptionalParameters) (RUMEventsResponse, *_nethttp.Response, error)
ListRUMEvents Get a list of RUM events. List endpoint returns events that match a RUM search query. [Results are paginated]1.
Use this endpoint to see your latest RUM events.
func (a *RUMApi) ListRUMEventsWithPagination(ctx _context.Context, o ...ListRUMEventsOptionalParameters) (<-chan datadog.PaginationResult[RUMEvent], func())
ListRUMEventsWithPagination provides a paginated version of ListRUMEvents returning a channel with all items.
func (a *RUMApi) SearchRUMEvents(ctx _context.Context, body RUMSearchEventsRequest) (RUMEventsResponse, *_nethttp.Response, error)
SearchRUMEvents Search RUM events. List endpoint returns RUM events that match a RUM search query. [Results are paginated]1.
Use this endpoint to build complex RUM events filtering and search.
func (a *RUMApi) SearchRUMEventsWithPagination(ctx _context.Context, body RUMSearchEventsRequest) (<-chan datadog.PaginationResult[RUMEvent], func())
SearchRUMEventsWithPagination provides a paginated version of SearchRUMEvents returning a channel with all items.
func (a *RUMApi) UpdateRUMApplication(ctx _context.Context, id string, body RUMApplicationUpdateRequest) (RUMApplicationResponse, *_nethttp.Response, error)
UpdateRUMApplication Update a RUM application. Update the RUM application with given ID in your organization.
RUMApplication RUM application.
type RUMApplication struct {
// RUM application attributes.
Attributes RUMApplicationAttributes `json:"attributes"`
// RUM application ID.
Id string `json:"id"`
// RUM application response type.
Type RUMApplicationType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplication(attributes RUMApplicationAttributes, id string, typeVar RUMApplicationType) *RUMApplication
NewRUMApplication instantiates a new RUMApplication object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationWithDefaults() *RUMApplication
NewRUMApplicationWithDefaults instantiates a new RUMApplication object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplication) GetAttributes() RUMApplicationAttributes
GetAttributes returns the Attributes field value.
func (o *RUMApplication) GetAttributesOk() (*RUMApplicationAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RUMApplication) GetId() string
GetId returns the Id field value.
func (o *RUMApplication) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RUMApplication) GetType() RUMApplicationType
GetType returns the Type field value.
func (o *RUMApplication) GetTypeOk() (*RUMApplicationType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RUMApplication) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplication) SetAttributes(v RUMApplicationAttributes)
SetAttributes sets field value.
func (o *RUMApplication) SetId(v string)
SetId sets field value.
func (o *RUMApplication) SetType(v RUMApplicationType)
SetType sets field value.
func (o *RUMApplication) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationAttributes RUM application attributes.
type RUMApplicationAttributes struct {
// ID of the RUM application.
ApplicationId string `json:"application_id"`
// Client token of the RUM application.
ClientToken string `json:"client_token"`
// Timestamp in ms of the creation date.
CreatedAt int64 `json:"created_at"`
// Handle of the creator user.
CreatedByHandle string `json:"created_by_handle"`
// Hash of the RUM application. Optional.
Hash *string `json:"hash,omitempty"`
// Indicates if the RUM application is active.
IsActive *bool `json:"is_active,omitempty"`
// Name of the RUM application.
Name string `json:"name"`
// Org ID of the RUM application.
OrgId int32 `json:"org_id"`
// Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`.
Type string `json:"type"`
// Timestamp in ms of the last update date.
UpdatedAt int64 `json:"updated_at"`
// Handle of the updater user.
UpdatedByHandle string `json:"updated_by_handle"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationAttributes(applicationId string, clientToken string, createdAt int64, createdByHandle string, name string, orgId int32, typeVar string, updatedAt int64, updatedByHandle string) *RUMApplicationAttributes
NewRUMApplicationAttributes instantiates a new RUMApplicationAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationAttributesWithDefaults() *RUMApplicationAttributes
NewRUMApplicationAttributesWithDefaults instantiates a new RUMApplicationAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationAttributes) GetApplicationId() string
GetApplicationId returns the ApplicationId field value.
func (o *RUMApplicationAttributes) GetApplicationIdOk() (*string, bool)
GetApplicationIdOk returns a tuple with the ApplicationId field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetClientToken() string
GetClientToken returns the ClientToken field value.
func (o *RUMApplicationAttributes) GetClientTokenOk() (*string, bool)
GetClientTokenOk returns a tuple with the ClientToken field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value.
func (o *RUMApplicationAttributes) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetCreatedByHandle() string
GetCreatedByHandle returns the CreatedByHandle field value.
func (o *RUMApplicationAttributes) GetCreatedByHandleOk() (*string, bool)
GetCreatedByHandleOk returns a tuple with the CreatedByHandle field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetHash() string
GetHash returns the Hash field value if set, zero value otherwise.
func (o *RUMApplicationAttributes) GetHashOk() (*string, bool)
GetHashOk returns a tuple with the Hash field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetIsActive() bool
GetIsActive returns the IsActive field value if set, zero value otherwise.
func (o *RUMApplicationAttributes) GetIsActiveOk() (*bool, bool)
GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetName() string
GetName returns the Name field value.
func (o *RUMApplicationAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetOrgId() int32
GetOrgId returns the OrgId field value.
func (o *RUMApplicationAttributes) GetOrgIdOk() (*int32, bool)
GetOrgIdOk returns a tuple with the OrgId field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetType() string
GetType returns the Type field value.
func (o *RUMApplicationAttributes) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetUpdatedAt() int64
GetUpdatedAt returns the UpdatedAt field value.
func (o *RUMApplicationAttributes) GetUpdatedAtOk() (*int64, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetUpdatedByHandle() string
GetUpdatedByHandle returns the UpdatedByHandle field value.
func (o *RUMApplicationAttributes) GetUpdatedByHandleOk() (*string, bool)
GetUpdatedByHandleOk returns a tuple with the UpdatedByHandle field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) HasHash() bool
HasHash returns a boolean if a field has been set.
func (o *RUMApplicationAttributes) HasIsActive() bool
HasIsActive returns a boolean if a field has been set.
func (o RUMApplicationAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationAttributes) SetApplicationId(v string)
SetApplicationId sets field value.
func (o *RUMApplicationAttributes) SetClientToken(v string)
SetClientToken sets field value.
func (o *RUMApplicationAttributes) SetCreatedAt(v int64)
SetCreatedAt sets field value.
func (o *RUMApplicationAttributes) SetCreatedByHandle(v string)
SetCreatedByHandle sets field value.
func (o *RUMApplicationAttributes) SetHash(v string)
SetHash gets a reference to the given string and assigns it to the Hash field.
func (o *RUMApplicationAttributes) SetIsActive(v bool)
SetIsActive gets a reference to the given bool and assigns it to the IsActive field.
func (o *RUMApplicationAttributes) SetName(v string)
SetName sets field value.
func (o *RUMApplicationAttributes) SetOrgId(v int32)
SetOrgId sets field value.
func (o *RUMApplicationAttributes) SetType(v string)
SetType sets field value.
func (o *RUMApplicationAttributes) SetUpdatedAt(v int64)
SetUpdatedAt sets field value.
func (o *RUMApplicationAttributes) SetUpdatedByHandle(v string)
SetUpdatedByHandle sets field value.
func (o *RUMApplicationAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationCreate RUM application creation.
type RUMApplicationCreate struct {
// RUM application creation attributes.
Attributes RUMApplicationCreateAttributes `json:"attributes"`
// RUM application creation type.
Type RUMApplicationCreateType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationCreate(attributes RUMApplicationCreateAttributes, typeVar RUMApplicationCreateType) *RUMApplicationCreate
NewRUMApplicationCreate instantiates a new RUMApplicationCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationCreateWithDefaults() *RUMApplicationCreate
NewRUMApplicationCreateWithDefaults instantiates a new RUMApplicationCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationCreate) GetAttributes() RUMApplicationCreateAttributes
GetAttributes returns the Attributes field value.
func (o *RUMApplicationCreate) GetAttributesOk() (*RUMApplicationCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RUMApplicationCreate) GetType() RUMApplicationCreateType
GetType returns the Type field value.
func (o *RUMApplicationCreate) GetTypeOk() (*RUMApplicationCreateType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RUMApplicationCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationCreate) SetAttributes(v RUMApplicationCreateAttributes)
SetAttributes sets field value.
func (o *RUMApplicationCreate) SetType(v RUMApplicationCreateType)
SetType sets field value.
func (o *RUMApplicationCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationCreateAttributes RUM application creation attributes.
type RUMApplicationCreateAttributes struct {
// Name of the RUM application.
Name string `json:"name"`
// Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationCreateAttributes(name string) *RUMApplicationCreateAttributes
NewRUMApplicationCreateAttributes instantiates a new RUMApplicationCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationCreateAttributesWithDefaults() *RUMApplicationCreateAttributes
NewRUMApplicationCreateAttributesWithDefaults instantiates a new RUMApplicationCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *RUMApplicationCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *RUMApplicationCreateAttributes) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMApplicationCreateAttributes) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationCreateAttributes) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMApplicationCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationCreateAttributes) SetName(v string)
SetName sets field value.
func (o *RUMApplicationCreateAttributes) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *RUMApplicationCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationCreateRequest RUM application creation request attributes.
type RUMApplicationCreateRequest struct {
// RUM application creation.
Data RUMApplicationCreate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationCreateRequest(data RUMApplicationCreate) *RUMApplicationCreateRequest
NewRUMApplicationCreateRequest instantiates a new RUMApplicationCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationCreateRequestWithDefaults() *RUMApplicationCreateRequest
NewRUMApplicationCreateRequestWithDefaults instantiates a new RUMApplicationCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationCreateRequest) GetData() RUMApplicationCreate
GetData returns the Data field value.
func (o *RUMApplicationCreateRequest) GetDataOk() (*RUMApplicationCreate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RUMApplicationCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationCreateRequest) SetData(v RUMApplicationCreate)
SetData sets field value.
func (o *RUMApplicationCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationCreateType RUM application creation type.
type RUMApplicationCreateType string
List of RUMApplicationCreateType.
const (
RUMAPPLICATIONCREATETYPE_RUM_APPLICATION_CREATE RUMApplicationCreateType = "rum_application_create"
)
func NewRUMApplicationCreateTypeFromValue(v string) (*RUMApplicationCreateType, error)
NewRUMApplicationCreateTypeFromValue returns a pointer to a valid RUMApplicationCreateType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMApplicationCreateType) GetAllowedValues() []RUMApplicationCreateType
GetAllowedValues reeturns the list of possible values.
func (v RUMApplicationCreateType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMApplicationCreateType) Ptr() *RUMApplicationCreateType
Ptr returns reference to RUMApplicationCreateType value.
func (v *RUMApplicationCreateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMApplicationList RUM application list.
type RUMApplicationList struct {
// RUM application list attributes.
Attributes RUMApplicationListAttributes `json:"attributes"`
// RUM application ID.
Id *string `json:"id,omitempty"`
// RUM application list type.
Type RUMApplicationListType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationList(attributes RUMApplicationListAttributes, typeVar RUMApplicationListType) *RUMApplicationList
NewRUMApplicationList instantiates a new RUMApplicationList object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationListWithDefaults() *RUMApplicationList
NewRUMApplicationListWithDefaults instantiates a new RUMApplicationList object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationList) GetAttributes() RUMApplicationListAttributes
GetAttributes returns the Attributes field value.
func (o *RUMApplicationList) GetAttributesOk() (*RUMApplicationListAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RUMApplicationList) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RUMApplicationList) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationList) GetType() RUMApplicationListType
GetType returns the Type field value.
func (o *RUMApplicationList) GetTypeOk() (*RUMApplicationListType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RUMApplicationList) HasId() bool
HasId returns a boolean if a field has been set.
func (o RUMApplicationList) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationList) SetAttributes(v RUMApplicationListAttributes)
SetAttributes sets field value.
func (o *RUMApplicationList) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RUMApplicationList) SetType(v RUMApplicationListType)
SetType sets field value.
func (o *RUMApplicationList) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationListAttributes RUM application list attributes.
type RUMApplicationListAttributes struct {
// ID of the RUM application.
ApplicationId string `json:"application_id"`
// Timestamp in ms of the creation date.
CreatedAt int64 `json:"created_at"`
// Handle of the creator user.
CreatedByHandle string `json:"created_by_handle"`
// Hash of the RUM application. Optional.
Hash *string `json:"hash,omitempty"`
// Indicates if the RUM application is active.
IsActive *bool `json:"is_active,omitempty"`
// Name of the RUM application.
Name string `json:"name"`
// Org ID of the RUM application.
OrgId int32 `json:"org_id"`
// Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`.
Type string `json:"type"`
// Timestamp in ms of the last update date.
UpdatedAt int64 `json:"updated_at"`
// Handle of the updater user.
UpdatedByHandle string `json:"updated_by_handle"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationListAttributes(applicationId string, createdAt int64, createdByHandle string, name string, orgId int32, typeVar string, updatedAt int64, updatedByHandle string) *RUMApplicationListAttributes
NewRUMApplicationListAttributes instantiates a new RUMApplicationListAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationListAttributesWithDefaults() *RUMApplicationListAttributes
NewRUMApplicationListAttributesWithDefaults instantiates a new RUMApplicationListAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationListAttributes) GetApplicationId() string
GetApplicationId returns the ApplicationId field value.
func (o *RUMApplicationListAttributes) GetApplicationIdOk() (*string, bool)
GetApplicationIdOk returns a tuple with the ApplicationId field value and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value.
func (o *RUMApplicationListAttributes) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetCreatedByHandle() string
GetCreatedByHandle returns the CreatedByHandle field value.
func (o *RUMApplicationListAttributes) GetCreatedByHandleOk() (*string, bool)
GetCreatedByHandleOk returns a tuple with the CreatedByHandle field value and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetHash() string
GetHash returns the Hash field value if set, zero value otherwise.
func (o *RUMApplicationListAttributes) GetHashOk() (*string, bool)
GetHashOk returns a tuple with the Hash field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetIsActive() bool
GetIsActive returns the IsActive field value if set, zero value otherwise.
func (o *RUMApplicationListAttributes) GetIsActiveOk() (*bool, bool)
GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetName() string
GetName returns the Name field value.
func (o *RUMApplicationListAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetOrgId() int32
GetOrgId returns the OrgId field value.
func (o *RUMApplicationListAttributes) GetOrgIdOk() (*int32, bool)
GetOrgIdOk returns a tuple with the OrgId field value and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetType() string
GetType returns the Type field value.
func (o *RUMApplicationListAttributes) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetUpdatedAt() int64
GetUpdatedAt returns the UpdatedAt field value.
func (o *RUMApplicationListAttributes) GetUpdatedAtOk() (*int64, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) GetUpdatedByHandle() string
GetUpdatedByHandle returns the UpdatedByHandle field value.
func (o *RUMApplicationListAttributes) GetUpdatedByHandleOk() (*string, bool)
GetUpdatedByHandleOk returns a tuple with the UpdatedByHandle field value and a boolean to check if the value has been set.
func (o *RUMApplicationListAttributes) HasHash() bool
HasHash returns a boolean if a field has been set.
func (o *RUMApplicationListAttributes) HasIsActive() bool
HasIsActive returns a boolean if a field has been set.
func (o RUMApplicationListAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationListAttributes) SetApplicationId(v string)
SetApplicationId sets field value.
func (o *RUMApplicationListAttributes) SetCreatedAt(v int64)
SetCreatedAt sets field value.
func (o *RUMApplicationListAttributes) SetCreatedByHandle(v string)
SetCreatedByHandle sets field value.
func (o *RUMApplicationListAttributes) SetHash(v string)
SetHash gets a reference to the given string and assigns it to the Hash field.
func (o *RUMApplicationListAttributes) SetIsActive(v bool)
SetIsActive gets a reference to the given bool and assigns it to the IsActive field.
func (o *RUMApplicationListAttributes) SetName(v string)
SetName sets field value.
func (o *RUMApplicationListAttributes) SetOrgId(v int32)
SetOrgId sets field value.
func (o *RUMApplicationListAttributes) SetType(v string)
SetType sets field value.
func (o *RUMApplicationListAttributes) SetUpdatedAt(v int64)
SetUpdatedAt sets field value.
func (o *RUMApplicationListAttributes) SetUpdatedByHandle(v string)
SetUpdatedByHandle sets field value.
func (o *RUMApplicationListAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationListType RUM application list type.
type RUMApplicationListType string
List of RUMApplicationListType.
const (
RUMAPPLICATIONLISTTYPE_RUM_APPLICATION RUMApplicationListType = "rum_application"
)
func NewRUMApplicationListTypeFromValue(v string) (*RUMApplicationListType, error)
NewRUMApplicationListTypeFromValue returns a pointer to a valid RUMApplicationListType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMApplicationListType) GetAllowedValues() []RUMApplicationListType
GetAllowedValues reeturns the list of possible values.
func (v RUMApplicationListType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMApplicationListType) Ptr() *RUMApplicationListType
Ptr returns reference to RUMApplicationListType value.
func (v *RUMApplicationListType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMApplicationResponse RUM application response.
type RUMApplicationResponse struct {
// RUM application.
Data *RUMApplication `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationResponse() *RUMApplicationResponse
NewRUMApplicationResponse instantiates a new RUMApplicationResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationResponseWithDefaults() *RUMApplicationResponse
NewRUMApplicationResponseWithDefaults instantiates a new RUMApplicationResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationResponse) GetData() RUMApplication
GetData returns the Data field value if set, zero value otherwise.
func (o *RUMApplicationResponse) GetDataOk() (*RUMApplication, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RUMApplicationResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationResponse) SetData(v RUMApplication)
SetData gets a reference to the given RUMApplication and assigns it to the Data field.
func (o *RUMApplicationResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationType RUM application response type.
type RUMApplicationType string
List of RUMApplicationType.
const (
RUMAPPLICATIONTYPE_RUM_APPLICATION RUMApplicationType = "rum_application"
)
func NewRUMApplicationTypeFromValue(v string) (*RUMApplicationType, error)
NewRUMApplicationTypeFromValue returns a pointer to a valid RUMApplicationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMApplicationType) GetAllowedValues() []RUMApplicationType
GetAllowedValues reeturns the list of possible values.
func (v RUMApplicationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMApplicationType) Ptr() *RUMApplicationType
Ptr returns reference to RUMApplicationType value.
func (v *RUMApplicationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMApplicationUpdate RUM application update.
type RUMApplicationUpdate struct {
// RUM application update attributes.
Attributes *RUMApplicationUpdateAttributes `json:"attributes,omitempty"`
// RUM application ID.
Id string `json:"id"`
// RUM application update type.
Type RUMApplicationUpdateType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationUpdate(id string, typeVar RUMApplicationUpdateType) *RUMApplicationUpdate
NewRUMApplicationUpdate instantiates a new RUMApplicationUpdate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationUpdateWithDefaults() *RUMApplicationUpdate
NewRUMApplicationUpdateWithDefaults instantiates a new RUMApplicationUpdate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationUpdate) GetAttributes() RUMApplicationUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RUMApplicationUpdate) GetAttributesOk() (*RUMApplicationUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationUpdate) GetId() string
GetId returns the Id field value.
func (o *RUMApplicationUpdate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RUMApplicationUpdate) GetType() RUMApplicationUpdateType
GetType returns the Type field value.
func (o *RUMApplicationUpdate) GetTypeOk() (*RUMApplicationUpdateType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RUMApplicationUpdate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o RUMApplicationUpdate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationUpdate) SetAttributes(v RUMApplicationUpdateAttributes)
SetAttributes gets a reference to the given RUMApplicationUpdateAttributes and assigns it to the Attributes field.
func (o *RUMApplicationUpdate) SetId(v string)
SetId sets field value.
func (o *RUMApplicationUpdate) SetType(v RUMApplicationUpdateType)
SetType sets field value.
func (o *RUMApplicationUpdate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationUpdateAttributes RUM application update attributes.
type RUMApplicationUpdateAttributes struct {
// Name of the RUM application.
Name *string `json:"name,omitempty"`
// Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationUpdateAttributes() *RUMApplicationUpdateAttributes
NewRUMApplicationUpdateAttributes instantiates a new RUMApplicationUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationUpdateAttributesWithDefaults() *RUMApplicationUpdateAttributes
NewRUMApplicationUpdateAttributesWithDefaults instantiates a new RUMApplicationUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *RUMApplicationUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationUpdateAttributes) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMApplicationUpdateAttributes) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *RUMApplicationUpdateAttributes) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMApplicationUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *RUMApplicationUpdateAttributes) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *RUMApplicationUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationUpdateRequest RUM application update request.
type RUMApplicationUpdateRequest struct {
// RUM application update.
Data RUMApplicationUpdate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationUpdateRequest(data RUMApplicationUpdate) *RUMApplicationUpdateRequest
NewRUMApplicationUpdateRequest instantiates a new RUMApplicationUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationUpdateRequestWithDefaults() *RUMApplicationUpdateRequest
NewRUMApplicationUpdateRequestWithDefaults instantiates a new RUMApplicationUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationUpdateRequest) GetData() RUMApplicationUpdate
GetData returns the Data field value.
func (o *RUMApplicationUpdateRequest) GetDataOk() (*RUMApplicationUpdate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RUMApplicationUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationUpdateRequest) SetData(v RUMApplicationUpdate)
SetData sets field value.
func (o *RUMApplicationUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationUpdateType RUM application update type.
type RUMApplicationUpdateType string
List of RUMApplicationUpdateType.
const (
RUMAPPLICATIONUPDATETYPE_RUM_APPLICATION_UPDATE RUMApplicationUpdateType = "rum_application_update"
)
func NewRUMApplicationUpdateTypeFromValue(v string) (*RUMApplicationUpdateType, error)
NewRUMApplicationUpdateTypeFromValue returns a pointer to a valid RUMApplicationUpdateType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMApplicationUpdateType) GetAllowedValues() []RUMApplicationUpdateType
GetAllowedValues reeturns the list of possible values.
func (v RUMApplicationUpdateType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMApplicationUpdateType) Ptr() *RUMApplicationUpdateType
Ptr returns reference to RUMApplicationUpdateType value.
func (v *RUMApplicationUpdateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMApplicationsResponse RUM applications response.
type RUMApplicationsResponse struct {
// RUM applications array response.
Data []RUMApplicationList `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationsResponse() *RUMApplicationsResponse
NewRUMApplicationsResponse instantiates a new RUMApplicationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationsResponseWithDefaults() *RUMApplicationsResponse
NewRUMApplicationsResponseWithDefaults instantiates a new RUMApplicationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationsResponse) GetData() []RUMApplicationList
GetData returns the Data field value if set, zero value otherwise.
func (o *RUMApplicationsResponse) GetDataOk() (*[]RUMApplicationList, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RUMApplicationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationsResponse) SetData(v []RUMApplicationList)
SetData gets a reference to the given []RUMApplicationList and assigns it to the Data field.
func (o *RUMApplicationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMBucketResponse Bucket values.
type RUMBucketResponse struct {
// The key-value pairs for each group-by.
By map[string]string `json:"by,omitempty"`
// A map of the metric name to value for regular compute, or a list of values for a timeseries.
Computes map[string]RUMAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMBucketResponse() *RUMBucketResponse
NewRUMBucketResponse instantiates a new RUMBucketResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMBucketResponseWithDefaults() *RUMBucketResponse
NewRUMBucketResponseWithDefaults instantiates a new RUMBucketResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMBucketResponse) GetBy() map[string]string
GetBy returns the By field value if set, zero value otherwise.
func (o *RUMBucketResponse) GetByOk() (*map[string]string, bool)
GetByOk returns a tuple with the By field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMBucketResponse) GetComputes() map[string]RUMAggregateBucketValue
GetComputes returns the Computes field value if set, zero value otherwise.
func (o *RUMBucketResponse) GetComputesOk() (*map[string]RUMAggregateBucketValue, bool)
GetComputesOk returns a tuple with the Computes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMBucketResponse) HasBy() bool
HasBy returns a boolean if a field has been set.
func (o *RUMBucketResponse) HasComputes() bool
HasComputes returns a boolean if a field has been set.
func (o RUMBucketResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMBucketResponse) SetBy(v map[string]string)
SetBy gets a reference to the given map[string]string and assigns it to the By field.
func (o *RUMBucketResponse) SetComputes(v map[string]RUMAggregateBucketValue)
SetComputes gets a reference to the given map[string]RUMAggregateBucketValue and assigns it to the Computes field.
func (o *RUMBucketResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMCompute A compute rule to compute metrics or timeseries.
type RUMCompute struct {
// An aggregation function.
Aggregation RUMAggregationFunction `json:"aggregation"`
// The time buckets' size (only used for type=timeseries)
// Defaults to a resolution of 150 points.
Interval *string `json:"interval,omitempty"`
// The metric to use.
Metric *string `json:"metric,omitempty"`
// The type of compute.
Type *RUMComputeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMCompute(aggregation RUMAggregationFunction) *RUMCompute
NewRUMCompute instantiates a new RUMCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMComputeWithDefaults() *RUMCompute
NewRUMComputeWithDefaults instantiates a new RUMCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMCompute) GetAggregation() RUMAggregationFunction
GetAggregation returns the Aggregation field value.
func (o *RUMCompute) GetAggregationOk() (*RUMAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value and a boolean to check if the value has been set.
func (o *RUMCompute) GetInterval() string
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *RUMCompute) GetIntervalOk() (*string, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMCompute) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *RUMCompute) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMCompute) GetType() RUMComputeType
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMCompute) GetTypeOk() (*RUMComputeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMCompute) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *RUMCompute) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *RUMCompute) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMCompute) SetAggregation(v RUMAggregationFunction)
SetAggregation sets field value.
func (o *RUMCompute) SetInterval(v string)
SetInterval gets a reference to the given string and assigns it to the Interval field.
func (o *RUMCompute) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *RUMCompute) SetType(v RUMComputeType)
SetType gets a reference to the given RUMComputeType and assigns it to the Type field.
func (o *RUMCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMComputeType The type of compute.
type RUMComputeType string
List of RUMComputeType.
const (
RUMCOMPUTETYPE_TIMESERIES RUMComputeType = "timeseries"
RUMCOMPUTETYPE_TOTAL RUMComputeType = "total"
)
func NewRUMComputeTypeFromValue(v string) (*RUMComputeType, error)
NewRUMComputeTypeFromValue returns a pointer to a valid RUMComputeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMComputeType) GetAllowedValues() []RUMComputeType
GetAllowedValues reeturns the list of possible values.
func (v RUMComputeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMComputeType) Ptr() *RUMComputeType
Ptr returns reference to RUMComputeType value.
func (v *RUMComputeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMEvent Object description of a RUM event after being processed and stored by Datadog.
type RUMEvent struct {
// JSON object containing all event attributes and their associated values.
Attributes *RUMEventAttributes `json:"attributes,omitempty"`
// Unique ID of the event.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *RUMEventType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMEvent() *RUMEvent
NewRUMEvent instantiates a new RUMEvent object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMEventWithDefaults() *RUMEvent
NewRUMEventWithDefaults instantiates a new RUMEvent object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMEvent) GetAttributes() RUMEventAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RUMEvent) GetAttributesOk() (*RUMEventAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEvent) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RUMEvent) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEvent) GetType() RUMEventType
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMEvent) GetTypeOk() (*RUMEventType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEvent) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *RUMEvent) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RUMEvent) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMEvent) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMEvent) SetAttributes(v RUMEventAttributes)
SetAttributes gets a reference to the given RUMEventAttributes and assigns it to the Attributes field.
func (o *RUMEvent) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RUMEvent) SetType(v RUMEventType)
SetType gets a reference to the given RUMEventType and assigns it to the Type field.
func (o *RUMEvent) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMEventAttributes JSON object containing all event attributes and their associated values.
type RUMEventAttributes struct {
// JSON object of attributes from RUM events.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// The name of the application or service generating RUM events.
// It is used to switch from RUM to APM, so make sure you define the same
// value when you use both products.
Service *string `json:"service,omitempty"`
// Array of tags associated with your event.
Tags []string `json:"tags,omitempty"`
// Timestamp of your event.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMEventAttributes() *RUMEventAttributes
NewRUMEventAttributes instantiates a new RUMEventAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMEventAttributesWithDefaults() *RUMEventAttributes
NewRUMEventAttributesWithDefaults instantiates a new RUMEventAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMEventAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RUMEventAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *RUMEventAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *RUMEventAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *RUMEventAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *RUMEventAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *RUMEventAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *RUMEventAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o RUMEventAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMEventAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *RUMEventAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *RUMEventAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *RUMEventAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *RUMEventAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMEventType Type of the event.
type RUMEventType string
List of RUMEventType.
const (
RUMEVENTTYPE_RUM RUMEventType = "rum"
)
func NewRUMEventTypeFromValue(v string) (*RUMEventType, error)
NewRUMEventTypeFromValue returns a pointer to a valid RUMEventType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMEventType) GetAllowedValues() []RUMEventType
GetAllowedValues reeturns the list of possible values.
func (v RUMEventType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMEventType) Ptr() *RUMEventType
Ptr returns reference to RUMEventType value.
func (v *RUMEventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMEventsResponse Response object with all events matching the request and pagination information.
type RUMEventsResponse struct {
// Array of events matching the request.
Data []RUMEvent `json:"data,omitempty"`
// Links attributes.
Links *RUMResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *RUMResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMEventsResponse() *RUMEventsResponse
NewRUMEventsResponse instantiates a new RUMEventsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMEventsResponseWithDefaults() *RUMEventsResponse
NewRUMEventsResponseWithDefaults instantiates a new RUMEventsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMEventsResponse) GetData() []RUMEvent
GetData returns the Data field value if set, zero value otherwise.
func (o *RUMEventsResponse) GetDataOk() (*[]RUMEvent, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventsResponse) GetLinks() RUMResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *RUMEventsResponse) GetLinksOk() (*RUMResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventsResponse) GetMeta() RUMResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *RUMEventsResponse) GetMetaOk() (*RUMResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *RUMEventsResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *RUMEventsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o RUMEventsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMEventsResponse) SetData(v []RUMEvent)
SetData gets a reference to the given []RUMEvent and assigns it to the Data field.
func (o *RUMEventsResponse) SetLinks(v RUMResponseLinks)
SetLinks gets a reference to the given RUMResponseLinks and assigns it to the Links field.
func (o *RUMEventsResponse) SetMeta(v RUMResponseMetadata)
SetMeta gets a reference to the given RUMResponseMetadata and assigns it to the Meta field.
func (o *RUMEventsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMGroupBy A group-by rule.
type RUMGroupBy struct {
// The name of the facet to use (required).
Facet string `json:"facet"`
// Used to perform a histogram computation (only for measure facets).
// Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
Histogram *RUMGroupByHistogram `json:"histogram,omitempty"`
// The maximum buckets to return for this group-by.
Limit *int64 `json:"limit,omitempty"`
// The value to use for logs that don't have the facet used to group by.
Missing *RUMGroupByMissing `json:"missing,omitempty"`
// A sort rule.
Sort *RUMAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *RUMGroupByTotal `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMGroupBy(facet string) *RUMGroupBy
NewRUMGroupBy instantiates a new RUMGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMGroupByWithDefaults() *RUMGroupBy
NewRUMGroupByWithDefaults instantiates a new RUMGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMGroupBy) GetFacet() string
GetFacet returns the Facet field value.
func (o *RUMGroupBy) GetFacetOk() (*string, bool)
GetFacetOk returns a tuple with the Facet field value and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetHistogram() RUMGroupByHistogram
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (o *RUMGroupBy) GetHistogramOk() (*RUMGroupByHistogram, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetLimit() int64
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *RUMGroupBy) GetLimitOk() (*int64, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetMissing() RUMGroupByMissing
GetMissing returns the Missing field value if set, zero value otherwise.
func (o *RUMGroupBy) GetMissingOk() (*RUMGroupByMissing, bool)
GetMissingOk returns a tuple with the Missing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetSort() RUMAggregateSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *RUMGroupBy) GetSortOk() (*RUMAggregateSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetTotal() RUMGroupByTotal
GetTotal returns the Total field value if set, zero value otherwise.
func (o *RUMGroupBy) GetTotalOk() (*RUMGroupByTotal, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) HasHistogram() bool
HasHistogram returns a boolean if a field has been set.
func (o *RUMGroupBy) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *RUMGroupBy) HasMissing() bool
HasMissing returns a boolean if a field has been set.
func (o *RUMGroupBy) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o *RUMGroupBy) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o RUMGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMGroupBy) SetFacet(v string)
SetFacet sets field value.
func (o *RUMGroupBy) SetHistogram(v RUMGroupByHistogram)
SetHistogram gets a reference to the given RUMGroupByHistogram and assigns it to the Histogram field.
func (o *RUMGroupBy) SetLimit(v int64)
SetLimit gets a reference to the given int64 and assigns it to the Limit field.
func (o *RUMGroupBy) SetMissing(v RUMGroupByMissing)
SetMissing gets a reference to the given RUMGroupByMissing and assigns it to the Missing field.
func (o *RUMGroupBy) SetSort(v RUMAggregateSort)
SetSort gets a reference to the given RUMAggregateSort and assigns it to the Sort field.
func (o *RUMGroupBy) SetTotal(v RUMGroupByTotal)
SetTotal gets a reference to the given RUMGroupByTotal and assigns it to the Total field.
func (o *RUMGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMGroupByHistogram Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
type RUMGroupByHistogram struct {
// The bin size of the histogram buckets.
Interval float64 `json:"interval"`
// The maximum value for the measure used in the histogram
// (values greater than this one are filtered out).
Max float64 `json:"max"`
// The minimum value for the measure used in the histogram
// (values smaller than this one are filtered out).
Min float64 `json:"min"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMGroupByHistogram(interval float64, max float64, min float64) *RUMGroupByHistogram
NewRUMGroupByHistogram instantiates a new RUMGroupByHistogram object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMGroupByHistogramWithDefaults() *RUMGroupByHistogram
NewRUMGroupByHistogramWithDefaults instantiates a new RUMGroupByHistogram object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMGroupByHistogram) GetInterval() float64
GetInterval returns the Interval field value.
func (o *RUMGroupByHistogram) GetIntervalOk() (*float64, bool)
GetIntervalOk returns a tuple with the Interval field value and a boolean to check if the value has been set.
func (o *RUMGroupByHistogram) GetMax() float64
GetMax returns the Max field value.
func (o *RUMGroupByHistogram) GetMaxOk() (*float64, bool)
GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.
func (o *RUMGroupByHistogram) GetMin() float64
GetMin returns the Min field value.
func (o *RUMGroupByHistogram) GetMinOk() (*float64, bool)
GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.
func (o RUMGroupByHistogram) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMGroupByHistogram) SetInterval(v float64)
SetInterval sets field value.
func (o *RUMGroupByHistogram) SetMax(v float64)
SetMax sets field value.
func (o *RUMGroupByHistogram) SetMin(v float64)
SetMin sets field value.
func (o *RUMGroupByHistogram) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMGroupByMissing - The value to use for logs that don't have the facet used to group by.
type RUMGroupByMissing struct {
RUMGroupByMissingString *string
RUMGroupByMissingNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RUMGroupByMissingNumberAsRUMGroupByMissing(v *float64) RUMGroupByMissing
RUMGroupByMissingNumberAsRUMGroupByMissing is a convenience function that returns float64 wrapped in RUMGroupByMissing.
func RUMGroupByMissingStringAsRUMGroupByMissing(v *string) RUMGroupByMissing
RUMGroupByMissingStringAsRUMGroupByMissing is a convenience function that returns string wrapped in RUMGroupByMissing.
func (obj *RUMGroupByMissing) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj RUMGroupByMissing) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *RUMGroupByMissing) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
RUMGroupByTotal - A resulting object to put the given computes in over all the matching records.
type RUMGroupByTotal struct {
RUMGroupByTotalBoolean *bool
RUMGroupByTotalString *string
RUMGroupByTotalNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RUMGroupByTotalBooleanAsRUMGroupByTotal(v *bool) RUMGroupByTotal
RUMGroupByTotalBooleanAsRUMGroupByTotal is a convenience function that returns bool wrapped in RUMGroupByTotal.
func RUMGroupByTotalNumberAsRUMGroupByTotal(v *float64) RUMGroupByTotal
RUMGroupByTotalNumberAsRUMGroupByTotal is a convenience function that returns float64 wrapped in RUMGroupByTotal.
func RUMGroupByTotalStringAsRUMGroupByTotal(v *string) RUMGroupByTotal
RUMGroupByTotalStringAsRUMGroupByTotal is a convenience function that returns string wrapped in RUMGroupByTotal.
func (obj *RUMGroupByTotal) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj RUMGroupByTotal) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *RUMGroupByTotal) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
RUMQueryFilter The search and filter query settings.
type RUMQueryFilter struct {
// The minimum time for the requested events; supports date (in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with full date, hours, minutes, and the `Z` UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds).
From *string `json:"from,omitempty"`
// The search query following the RUM search syntax.
Query *string `json:"query,omitempty"`
// The maximum time for the requested events; supports date (in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with full date, hours, minutes, and the `Z` UTC indicator - seconds and fractional seconds are optional), math, and regular timestamps (in milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMQueryFilter() *RUMQueryFilter
NewRUMQueryFilter instantiates a new RUMQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMQueryFilterWithDefaults() *RUMQueryFilter
NewRUMQueryFilterWithDefaults instantiates a new RUMQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *RUMQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *RUMQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *RUMQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *RUMQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *RUMQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o RUMQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *RUMQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *RUMQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *RUMQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMQueryOptions Global query options that are used during the query. Note: Only supply timezone or time offset, not both. Otherwise, the query fails.
type RUMQueryOptions struct {
// The time offset (in seconds) to apply to the query.
TimeOffset *int64 `json:"time_offset,omitempty"`
// The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York).
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMQueryOptions() *RUMQueryOptions
NewRUMQueryOptions instantiates a new RUMQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMQueryOptionsWithDefaults() *RUMQueryOptions
NewRUMQueryOptionsWithDefaults instantiates a new RUMQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *RUMQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *RUMQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *RUMQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o RUMQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *RUMQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *RUMQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMQueryPageOptions Paging attributes for listing events.
type RUMQueryPageOptions struct {
// List following results with a cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// Maximum number of events in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMQueryPageOptions() *RUMQueryPageOptions
NewRUMQueryPageOptions instantiates a new RUMQueryPageOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMQueryPageOptionsWithDefaults() *RUMQueryPageOptions
NewRUMQueryPageOptionsWithDefaults instantiates a new RUMQueryPageOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMQueryPageOptions) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *RUMQueryPageOptions) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryPageOptions) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *RUMQueryPageOptions) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryPageOptions) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *RUMQueryPageOptions) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o RUMQueryPageOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMQueryPageOptions) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *RUMQueryPageOptions) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *RUMQueryPageOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMResponseLinks Links attributes.
type RUMResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMResponseLinks() *RUMResponseLinks
NewRUMResponseLinks instantiates a new RUMResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMResponseLinksWithDefaults() *RUMResponseLinks
NewRUMResponseLinksWithDefaults instantiates a new RUMResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *RUMResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o RUMResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *RUMResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMResponseMetadata The metadata associated with a request.
type RUMResponseMetadata struct {
// The time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// Paging attributes.
Page *RUMResponsePage `json:"page,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The status of the response.
Status *RUMResponseStatus `json:"status,omitempty"`
// A list of warnings (non-fatal errors) encountered. Partial results may return if
// warnings are present in the response.
Warnings []RUMWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMResponseMetadata() *RUMResponseMetadata
NewRUMResponseMetadata instantiates a new RUMResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMResponseMetadataWithDefaults() *RUMResponseMetadata
NewRUMResponseMetadataWithDefaults instantiates a new RUMResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) GetPage() RUMResponsePage
GetPage returns the Page field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetPageOk() (*RUMResponsePage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) GetStatus() RUMResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetStatusOk() (*RUMResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) GetWarnings() []RUMWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetWarningsOk() (*[]RUMWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *RUMResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *RUMResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *RUMResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *RUMResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o RUMResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *RUMResponseMetadata) SetPage(v RUMResponsePage)
SetPage gets a reference to the given RUMResponsePage and assigns it to the Page field.
func (o *RUMResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *RUMResponseMetadata) SetStatus(v RUMResponseStatus)
SetStatus gets a reference to the given RUMResponseStatus and assigns it to the Status field.
func (o *RUMResponseMetadata) SetWarnings(v []RUMWarning)
SetWarnings gets a reference to the given []RUMWarning and assigns it to the Warnings field.
func (o *RUMResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMResponsePage Paging attributes.
type RUMResponsePage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMResponsePage() *RUMResponsePage
NewRUMResponsePage instantiates a new RUMResponsePage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMResponsePageWithDefaults() *RUMResponsePage
NewRUMResponsePageWithDefaults instantiates a new RUMResponsePage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMResponsePage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *RUMResponsePage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponsePage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o RUMResponsePage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMResponsePage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *RUMResponsePage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMResponseStatus The status of the response.
type RUMResponseStatus string
List of RUMResponseStatus.
const (
RUMRESPONSESTATUS_DONE RUMResponseStatus = "done"
RUMRESPONSESTATUS_TIMEOUT RUMResponseStatus = "timeout"
)
func NewRUMResponseStatusFromValue(v string) (*RUMResponseStatus, error)
NewRUMResponseStatusFromValue returns a pointer to a valid RUMResponseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMResponseStatus) GetAllowedValues() []RUMResponseStatus
GetAllowedValues reeturns the list of possible values.
func (v RUMResponseStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMResponseStatus) Ptr() *RUMResponseStatus
Ptr returns reference to RUMResponseStatus value.
func (v *RUMResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMSearchEventsRequest The request for a RUM events list.
type RUMSearchEventsRequest struct {
// The search and filter query settings.
Filter *RUMQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Note: Only supply timezone or time offset, not both. Otherwise, the query fails.
Options *RUMQueryOptions `json:"options,omitempty"`
// Paging attributes for listing events.
Page *RUMQueryPageOptions `json:"page,omitempty"`
// Sort parameters when querying events.
Sort *RUMSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMSearchEventsRequest() *RUMSearchEventsRequest
NewRUMSearchEventsRequest instantiates a new RUMSearchEventsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMSearchEventsRequestWithDefaults() *RUMSearchEventsRequest
NewRUMSearchEventsRequestWithDefaults instantiates a new RUMSearchEventsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMSearchEventsRequest) GetFilter() RUMQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *RUMSearchEventsRequest) GetFilterOk() (*RUMQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMSearchEventsRequest) GetOptions() RUMQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *RUMSearchEventsRequest) GetOptionsOk() (*RUMQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMSearchEventsRequest) GetPage() RUMQueryPageOptions
GetPage returns the Page field value if set, zero value otherwise.
func (o *RUMSearchEventsRequest) GetPageOk() (*RUMQueryPageOptions, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMSearchEventsRequest) GetSort() RUMSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *RUMSearchEventsRequest) GetSortOk() (*RUMSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMSearchEventsRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *RUMSearchEventsRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *RUMSearchEventsRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *RUMSearchEventsRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o RUMSearchEventsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMSearchEventsRequest) SetFilter(v RUMQueryFilter)
SetFilter gets a reference to the given RUMQueryFilter and assigns it to the Filter field.
func (o *RUMSearchEventsRequest) SetOptions(v RUMQueryOptions)
SetOptions gets a reference to the given RUMQueryOptions and assigns it to the Options field.
func (o *RUMSearchEventsRequest) SetPage(v RUMQueryPageOptions)
SetPage gets a reference to the given RUMQueryPageOptions and assigns it to the Page field.
func (o *RUMSearchEventsRequest) SetSort(v RUMSort)
SetSort gets a reference to the given RUMSort and assigns it to the Sort field.
func (o *RUMSearchEventsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMSort Sort parameters when querying events.
type RUMSort string
List of RUMSort.
const (
RUMSORT_TIMESTAMP_ASCENDING RUMSort = "timestamp"
RUMSORT_TIMESTAMP_DESCENDING RUMSort = "-timestamp"
)
func NewRUMSortFromValue(v string) (*RUMSort, error)
NewRUMSortFromValue returns a pointer to a valid RUMSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMSort) GetAllowedValues() []RUMSort
GetAllowedValues reeturns the list of possible values.
func (v RUMSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMSort) Ptr() *RUMSort
Ptr returns reference to RUMSort value.
func (v *RUMSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMSortOrder The order to use, ascending or descending.
type RUMSortOrder string
List of RUMSortOrder.
const (
RUMSORTORDER_ASCENDING RUMSortOrder = "asc"
RUMSORTORDER_DESCENDING RUMSortOrder = "desc"
)
func NewRUMSortOrderFromValue(v string) (*RUMSortOrder, error)
NewRUMSortOrderFromValue returns a pointer to a valid RUMSortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMSortOrder) GetAllowedValues() []RUMSortOrder
GetAllowedValues reeturns the list of possible values.
func (v RUMSortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMSortOrder) Ptr() *RUMSortOrder
Ptr returns reference to RUMSortOrder value.
func (v *RUMSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMWarning A warning message indicating something that went wrong with the query.
type RUMWarning struct {
// A unique code for this type of warning.
Code *string `json:"code,omitempty"`
// A detailed explanation of this specific warning.
Detail *string `json:"detail,omitempty"`
// A short human-readable summary of the warning.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMWarning() *RUMWarning
NewRUMWarning instantiates a new RUMWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMWarningWithDefaults() *RUMWarning
NewRUMWarningWithDefaults instantiates a new RUMWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *RUMWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *RUMWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *RUMWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *RUMWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *RUMWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o RUMWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *RUMWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *RUMWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *RUMWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentAttachment A relationship reference for attachments.
type RelationshipToIncidentAttachment struct {
// An array of incident attachments.
Data []RelationshipToIncidentAttachmentData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentAttachment(data []RelationshipToIncidentAttachmentData) *RelationshipToIncidentAttachment
NewRelationshipToIncidentAttachment instantiates a new RelationshipToIncidentAttachment object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentAttachmentWithDefaults() *RelationshipToIncidentAttachment
NewRelationshipToIncidentAttachmentWithDefaults instantiates a new RelationshipToIncidentAttachment object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentAttachment) GetData() []RelationshipToIncidentAttachmentData
GetData returns the Data field value.
func (o *RelationshipToIncidentAttachment) GetDataOk() (*[]RelationshipToIncidentAttachmentData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentAttachment) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentAttachment) SetData(v []RelationshipToIncidentAttachmentData)
SetData sets field value.
func (o *RelationshipToIncidentAttachment) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentAttachmentData The attachment relationship data.
type RelationshipToIncidentAttachmentData struct {
// A unique identifier that represents the attachment.
Id string `json:"id"`
// The incident attachment resource type.
Type IncidentAttachmentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentAttachmentData(id string, typeVar IncidentAttachmentType) *RelationshipToIncidentAttachmentData
NewRelationshipToIncidentAttachmentData instantiates a new RelationshipToIncidentAttachmentData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentAttachmentDataWithDefaults() *RelationshipToIncidentAttachmentData
NewRelationshipToIncidentAttachmentDataWithDefaults instantiates a new RelationshipToIncidentAttachmentData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentAttachmentData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToIncidentAttachmentData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToIncidentAttachmentData) GetType() IncidentAttachmentType
GetType returns the Type field value.
func (o *RelationshipToIncidentAttachmentData) GetTypeOk() (*IncidentAttachmentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentAttachmentData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentAttachmentData) SetId(v string)
SetId sets field value.
func (o *RelationshipToIncidentAttachmentData) SetType(v IncidentAttachmentType)
SetType sets field value.
func (o *RelationshipToIncidentAttachmentData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentIntegrationMetadataData A relationship reference for an integration metadata object.
type RelationshipToIncidentIntegrationMetadataData struct {
// A unique identifier that represents the integration metadata.
Id string `json:"id"`
// Integration metadata resource type.
Type IncidentIntegrationMetadataType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentIntegrationMetadataData(id string, typeVar IncidentIntegrationMetadataType) *RelationshipToIncidentIntegrationMetadataData
NewRelationshipToIncidentIntegrationMetadataData instantiates a new RelationshipToIncidentIntegrationMetadataData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentIntegrationMetadataDataWithDefaults() *RelationshipToIncidentIntegrationMetadataData
NewRelationshipToIncidentIntegrationMetadataDataWithDefaults instantiates a new RelationshipToIncidentIntegrationMetadataData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentIntegrationMetadataData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToIncidentIntegrationMetadataData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToIncidentIntegrationMetadataData) GetType() IncidentIntegrationMetadataType
GetType returns the Type field value.
func (o *RelationshipToIncidentIntegrationMetadataData) GetTypeOk() (*IncidentIntegrationMetadataType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentIntegrationMetadataData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentIntegrationMetadataData) SetId(v string)
SetId sets field value.
func (o *RelationshipToIncidentIntegrationMetadataData) SetType(v IncidentIntegrationMetadataType)
SetType sets field value.
func (o *RelationshipToIncidentIntegrationMetadataData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentIntegrationMetadatas A relationship reference for multiple integration metadata objects.
type RelationshipToIncidentIntegrationMetadatas struct {
// Integration metadata relationship array
Data []RelationshipToIncidentIntegrationMetadataData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentIntegrationMetadatas(data []RelationshipToIncidentIntegrationMetadataData) *RelationshipToIncidentIntegrationMetadatas
NewRelationshipToIncidentIntegrationMetadatas instantiates a new RelationshipToIncidentIntegrationMetadatas object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentIntegrationMetadatasWithDefaults() *RelationshipToIncidentIntegrationMetadatas
NewRelationshipToIncidentIntegrationMetadatasWithDefaults instantiates a new RelationshipToIncidentIntegrationMetadatas object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentIntegrationMetadatas) GetData() []RelationshipToIncidentIntegrationMetadataData
GetData returns the Data field value.
func (o *RelationshipToIncidentIntegrationMetadatas) GetDataOk() (*[]RelationshipToIncidentIntegrationMetadataData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentIntegrationMetadatas) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentIntegrationMetadatas) SetData(v []RelationshipToIncidentIntegrationMetadataData)
SetData sets field value.
func (o *RelationshipToIncidentIntegrationMetadatas) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentPostmortem A relationship reference for postmortems.
type RelationshipToIncidentPostmortem struct {
// The postmortem relationship data.
Data RelationshipToIncidentPostmortemData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentPostmortem(data RelationshipToIncidentPostmortemData) *RelationshipToIncidentPostmortem
NewRelationshipToIncidentPostmortem instantiates a new RelationshipToIncidentPostmortem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentPostmortemWithDefaults() *RelationshipToIncidentPostmortem
NewRelationshipToIncidentPostmortemWithDefaults instantiates a new RelationshipToIncidentPostmortem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentPostmortem) GetData() RelationshipToIncidentPostmortemData
GetData returns the Data field value.
func (o *RelationshipToIncidentPostmortem) GetDataOk() (*RelationshipToIncidentPostmortemData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentPostmortem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentPostmortem) SetData(v RelationshipToIncidentPostmortemData)
SetData sets field value.
func (o *RelationshipToIncidentPostmortem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentPostmortemData The postmortem relationship data.
type RelationshipToIncidentPostmortemData struct {
// A unique identifier that represents the postmortem.
Id string `json:"id"`
// Incident postmortem resource type.
Type IncidentPostmortemType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentPostmortemData(id string, typeVar IncidentPostmortemType) *RelationshipToIncidentPostmortemData
NewRelationshipToIncidentPostmortemData instantiates a new RelationshipToIncidentPostmortemData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentPostmortemDataWithDefaults() *RelationshipToIncidentPostmortemData
NewRelationshipToIncidentPostmortemDataWithDefaults instantiates a new RelationshipToIncidentPostmortemData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentPostmortemData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToIncidentPostmortemData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToIncidentPostmortemData) GetType() IncidentPostmortemType
GetType returns the Type field value.
func (o *RelationshipToIncidentPostmortemData) GetTypeOk() (*IncidentPostmortemType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentPostmortemData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentPostmortemData) SetId(v string)
SetId sets field value.
func (o *RelationshipToIncidentPostmortemData) SetType(v IncidentPostmortemType)
SetType sets field value.
func (o *RelationshipToIncidentPostmortemData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToOrganization Relationship to an organization.
type RelationshipToOrganization struct {
// Relationship to organization object.
Data RelationshipToOrganizationData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToOrganization(data RelationshipToOrganizationData) *RelationshipToOrganization
NewRelationshipToOrganization instantiates a new RelationshipToOrganization object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToOrganizationWithDefaults() *RelationshipToOrganization
NewRelationshipToOrganizationWithDefaults instantiates a new RelationshipToOrganization object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToOrganization) GetData() RelationshipToOrganizationData
GetData returns the Data field value.
func (o *RelationshipToOrganization) GetDataOk() (*RelationshipToOrganizationData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToOrganization) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToOrganization) SetData(v RelationshipToOrganizationData)
SetData sets field value.
func (o *RelationshipToOrganization) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToOrganizationData Relationship to organization object.
type RelationshipToOrganizationData struct {
// ID of the organization.
Id string `json:"id"`
// Organizations resource type.
Type OrganizationsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToOrganizationData(id string, typeVar OrganizationsType) *RelationshipToOrganizationData
NewRelationshipToOrganizationData instantiates a new RelationshipToOrganizationData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToOrganizationDataWithDefaults() *RelationshipToOrganizationData
NewRelationshipToOrganizationDataWithDefaults instantiates a new RelationshipToOrganizationData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToOrganizationData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToOrganizationData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToOrganizationData) GetType() OrganizationsType
GetType returns the Type field value.
func (o *RelationshipToOrganizationData) GetTypeOk() (*OrganizationsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToOrganizationData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToOrganizationData) SetId(v string)
SetId sets field value.
func (o *RelationshipToOrganizationData) SetType(v OrganizationsType)
SetType sets field value.
func (o *RelationshipToOrganizationData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToOrganizations Relationship to organizations.
type RelationshipToOrganizations struct {
// Relationships to organization objects.
Data []RelationshipToOrganizationData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToOrganizations(data []RelationshipToOrganizationData) *RelationshipToOrganizations
NewRelationshipToOrganizations instantiates a new RelationshipToOrganizations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToOrganizationsWithDefaults() *RelationshipToOrganizations
NewRelationshipToOrganizationsWithDefaults instantiates a new RelationshipToOrganizations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToOrganizations) GetData() []RelationshipToOrganizationData
GetData returns the Data field value.
func (o *RelationshipToOrganizations) GetDataOk() (*[]RelationshipToOrganizationData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToOrganizations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToOrganizations) SetData(v []RelationshipToOrganizationData)
SetData sets field value.
func (o *RelationshipToOrganizations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToPermission Relationship to a permissions object.
type RelationshipToPermission struct {
// Relationship to permission object.
Data *RelationshipToPermissionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToPermission() *RelationshipToPermission
NewRelationshipToPermission instantiates a new RelationshipToPermission object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToPermissionWithDefaults() *RelationshipToPermission
NewRelationshipToPermissionWithDefaults instantiates a new RelationshipToPermission object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToPermission) GetData() RelationshipToPermissionData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToPermission) GetDataOk() (*RelationshipToPermissionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToPermission) HasData() bool
HasData returns a boolean if a field has been set.
func (o RelationshipToPermission) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToPermission) SetData(v RelationshipToPermissionData)
SetData gets a reference to the given RelationshipToPermissionData and assigns it to the Data field.
func (o *RelationshipToPermission) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToPermissionData Relationship to permission object.
type RelationshipToPermissionData struct {
// ID of the permission.
Id *string `json:"id,omitempty"`
// Permissions resource type.
Type *PermissionsType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToPermissionData() *RelationshipToPermissionData
NewRelationshipToPermissionData instantiates a new RelationshipToPermissionData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToPermissionDataWithDefaults() *RelationshipToPermissionData
NewRelationshipToPermissionDataWithDefaults instantiates a new RelationshipToPermissionData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToPermissionData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RelationshipToPermissionData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToPermissionData) GetType() PermissionsType
GetType returns the Type field value if set, zero value otherwise.
func (o *RelationshipToPermissionData) GetTypeOk() (*PermissionsType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToPermissionData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RelationshipToPermissionData) HasType() bool
HasType returns a boolean if a field has been set.
func (o RelationshipToPermissionData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToPermissionData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RelationshipToPermissionData) SetType(v PermissionsType)
SetType gets a reference to the given PermissionsType and assigns it to the Type field.
func (o *RelationshipToPermissionData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToPermissions Relationship to multiple permissions objects.
type RelationshipToPermissions struct {
// Relationships to permission objects.
Data []RelationshipToPermissionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToPermissions() *RelationshipToPermissions
NewRelationshipToPermissions instantiates a new RelationshipToPermissions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToPermissionsWithDefaults() *RelationshipToPermissions
NewRelationshipToPermissionsWithDefaults instantiates a new RelationshipToPermissions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToPermissions) GetData() []RelationshipToPermissionData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToPermissions) GetDataOk() (*[]RelationshipToPermissionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToPermissions) HasData() bool
HasData returns a boolean if a field has been set.
func (o RelationshipToPermissions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToPermissions) SetData(v []RelationshipToPermissionData)
SetData gets a reference to the given []RelationshipToPermissionData and assigns it to the Data field.
func (o *RelationshipToPermissions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToRole Relationship to role.
type RelationshipToRole struct {
// Relationship to role object.
Data *RelationshipToRoleData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToRole() *RelationshipToRole
NewRelationshipToRole instantiates a new RelationshipToRole object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToRoleWithDefaults() *RelationshipToRole
NewRelationshipToRoleWithDefaults instantiates a new RelationshipToRole object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToRole) GetData() RelationshipToRoleData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToRole) GetDataOk() (*RelationshipToRoleData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToRole) HasData() bool
HasData returns a boolean if a field has been set.
func (o RelationshipToRole) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToRole) SetData(v RelationshipToRoleData)
SetData gets a reference to the given RelationshipToRoleData and assigns it to the Data field.
func (o *RelationshipToRole) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToRoleData Relationship to role object.
type RelationshipToRoleData struct {
// The unique identifier of the role.
Id *string `json:"id,omitempty"`
// Roles type.
Type *RolesType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToRoleData() *RelationshipToRoleData
NewRelationshipToRoleData instantiates a new RelationshipToRoleData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToRoleDataWithDefaults() *RelationshipToRoleData
NewRelationshipToRoleDataWithDefaults instantiates a new RelationshipToRoleData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToRoleData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RelationshipToRoleData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToRoleData) GetType() RolesType
GetType returns the Type field value if set, zero value otherwise.
func (o *RelationshipToRoleData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToRoleData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RelationshipToRoleData) HasType() bool
HasType returns a boolean if a field has been set.
func (o RelationshipToRoleData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToRoleData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RelationshipToRoleData) SetType(v RolesType)
SetType gets a reference to the given RolesType and assigns it to the Type field.
func (o *RelationshipToRoleData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToRoles Relationship to roles.
type RelationshipToRoles struct {
// An array containing type and the unique identifier of a role.
Data []RelationshipToRoleData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToRoles() *RelationshipToRoles
NewRelationshipToRoles instantiates a new RelationshipToRoles object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToRolesWithDefaults() *RelationshipToRoles
NewRelationshipToRolesWithDefaults instantiates a new RelationshipToRoles object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToRoles) GetData() []RelationshipToRoleData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToRoles) GetDataOk() (*[]RelationshipToRoleData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToRoles) HasData() bool
HasData returns a boolean if a field has been set.
func (o RelationshipToRoles) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToRoles) SetData(v []RelationshipToRoleData)
SetData gets a reference to the given []RelationshipToRoleData and assigns it to the Data field.
func (o *RelationshipToRoles) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToSAMLAssertionAttribute AuthN Mapping relationship to SAML Assertion Attribute.
type RelationshipToSAMLAssertionAttribute struct {
// Data of AuthN Mapping relationship to SAML Assertion Attribute.
Data RelationshipToSAMLAssertionAttributeData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToSAMLAssertionAttribute(data RelationshipToSAMLAssertionAttributeData) *RelationshipToSAMLAssertionAttribute
NewRelationshipToSAMLAssertionAttribute instantiates a new RelationshipToSAMLAssertionAttribute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToSAMLAssertionAttributeWithDefaults() *RelationshipToSAMLAssertionAttribute
NewRelationshipToSAMLAssertionAttributeWithDefaults instantiates a new RelationshipToSAMLAssertionAttribute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToSAMLAssertionAttribute) GetData() RelationshipToSAMLAssertionAttributeData
GetData returns the Data field value.
func (o *RelationshipToSAMLAssertionAttribute) GetDataOk() (*RelationshipToSAMLAssertionAttributeData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToSAMLAssertionAttribute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToSAMLAssertionAttribute) SetData(v RelationshipToSAMLAssertionAttributeData)
SetData sets field value.
func (o *RelationshipToSAMLAssertionAttribute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToSAMLAssertionAttributeData Data of AuthN Mapping relationship to SAML Assertion Attribute.
type RelationshipToSAMLAssertionAttributeData struct {
// The ID of the SAML assertion attribute.
Id string `json:"id"`
// SAML assertion attributes resource type.
Type SAMLAssertionAttributesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToSAMLAssertionAttributeData(id string, typeVar SAMLAssertionAttributesType) *RelationshipToSAMLAssertionAttributeData
NewRelationshipToSAMLAssertionAttributeData instantiates a new RelationshipToSAMLAssertionAttributeData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToSAMLAssertionAttributeDataWithDefaults() *RelationshipToSAMLAssertionAttributeData
NewRelationshipToSAMLAssertionAttributeDataWithDefaults instantiates a new RelationshipToSAMLAssertionAttributeData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToSAMLAssertionAttributeData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToSAMLAssertionAttributeData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToSAMLAssertionAttributeData) GetType() SAMLAssertionAttributesType
GetType returns the Type field value.
func (o *RelationshipToSAMLAssertionAttributeData) GetTypeOk() (*SAMLAssertionAttributesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToSAMLAssertionAttributeData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToSAMLAssertionAttributeData) SetId(v string)
SetId sets field value.
func (o *RelationshipToSAMLAssertionAttributeData) SetType(v SAMLAssertionAttributesType)
SetType sets field value.
func (o *RelationshipToSAMLAssertionAttributeData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToTeamLinkData Relationship between a link and a team
type RelationshipToTeamLinkData struct {
// The team link's identifier
Id string `json:"id"`
// Team link type
Type TeamLinkType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToTeamLinkData(id string, typeVar TeamLinkType) *RelationshipToTeamLinkData
NewRelationshipToTeamLinkData instantiates a new RelationshipToTeamLinkData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToTeamLinkDataWithDefaults() *RelationshipToTeamLinkData
NewRelationshipToTeamLinkDataWithDefaults instantiates a new RelationshipToTeamLinkData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToTeamLinkData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToTeamLinkData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToTeamLinkData) GetType() TeamLinkType
GetType returns the Type field value.
func (o *RelationshipToTeamLinkData) GetTypeOk() (*TeamLinkType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToTeamLinkData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToTeamLinkData) SetId(v string)
SetId sets field value.
func (o *RelationshipToTeamLinkData) SetType(v TeamLinkType)
SetType sets field value.
func (o *RelationshipToTeamLinkData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToTeamLinks Relationship between a team and a team link
type RelationshipToTeamLinks struct {
// Related team links
Data []RelationshipToTeamLinkData `json:"data,omitempty"`
// Links attributes.
Links *TeamRelationshipsLinks `json:"links,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToTeamLinks() *RelationshipToTeamLinks
NewRelationshipToTeamLinks instantiates a new RelationshipToTeamLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToTeamLinksWithDefaults() *RelationshipToTeamLinks
NewRelationshipToTeamLinksWithDefaults instantiates a new RelationshipToTeamLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToTeamLinks) GetData() []RelationshipToTeamLinkData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToTeamLinks) GetDataOk() (*[]RelationshipToTeamLinkData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToTeamLinks) GetLinks() TeamRelationshipsLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *RelationshipToTeamLinks) GetLinksOk() (*TeamRelationshipsLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToTeamLinks) HasData() bool
HasData returns a boolean if a field has been set.
func (o *RelationshipToTeamLinks) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o RelationshipToTeamLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToTeamLinks) SetData(v []RelationshipToTeamLinkData)
SetData gets a reference to the given []RelationshipToTeamLinkData and assigns it to the Data field.
func (o *RelationshipToTeamLinks) SetLinks(v TeamRelationshipsLinks)
SetLinks gets a reference to the given TeamRelationshipsLinks and assigns it to the Links field.
func (o *RelationshipToTeamLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUser Relationship to user.
type RelationshipToUser struct {
// Relationship to user object.
Data RelationshipToUserData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUser(data RelationshipToUserData) *RelationshipToUser
NewRelationshipToUser instantiates a new RelationshipToUser object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUserWithDefaults() *RelationshipToUser
NewRelationshipToUserWithDefaults instantiates a new RelationshipToUser object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUser) GetData() RelationshipToUserData
GetData returns the Data field value.
func (o *RelationshipToUser) GetDataOk() (*RelationshipToUserData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToUser) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUser) SetData(v RelationshipToUserData)
SetData sets field value.
func (o *RelationshipToUser) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUserData Relationship to user object.
type RelationshipToUserData struct {
// A unique identifier that represents the user.
Id string `json:"id"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUserData(id string, typeVar UsersType) *RelationshipToUserData
NewRelationshipToUserData instantiates a new RelationshipToUserData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUserDataWithDefaults() *RelationshipToUserData
NewRelationshipToUserDataWithDefaults instantiates a new RelationshipToUserData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUserData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToUserData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToUserData) GetType() UsersType
GetType returns the Type field value.
func (o *RelationshipToUserData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToUserData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUserData) SetId(v string)
SetId sets field value.
func (o *RelationshipToUserData) SetType(v UsersType)
SetType sets field value.
func (o *RelationshipToUserData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUserTeamPermission Relationship between a user team permission and a team
type RelationshipToUserTeamPermission struct {
// Related user team permission data
Data *RelationshipToUserTeamPermissionData `json:"data,omitempty"`
// Links attributes.
Links *TeamRelationshipsLinks `json:"links,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUserTeamPermission() *RelationshipToUserTeamPermission
NewRelationshipToUserTeamPermission instantiates a new RelationshipToUserTeamPermission object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUserTeamPermissionWithDefaults() *RelationshipToUserTeamPermission
NewRelationshipToUserTeamPermissionWithDefaults instantiates a new RelationshipToUserTeamPermission object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUserTeamPermission) GetData() RelationshipToUserTeamPermissionData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToUserTeamPermission) GetDataOk() (*RelationshipToUserTeamPermissionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToUserTeamPermission) GetLinks() TeamRelationshipsLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *RelationshipToUserTeamPermission) GetLinksOk() (*TeamRelationshipsLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToUserTeamPermission) HasData() bool
HasData returns a boolean if a field has been set.
func (o *RelationshipToUserTeamPermission) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o RelationshipToUserTeamPermission) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUserTeamPermission) SetData(v RelationshipToUserTeamPermissionData)
SetData gets a reference to the given RelationshipToUserTeamPermissionData and assigns it to the Data field.
func (o *RelationshipToUserTeamPermission) SetLinks(v TeamRelationshipsLinks)
SetLinks gets a reference to the given TeamRelationshipsLinks and assigns it to the Links field.
func (o *RelationshipToUserTeamPermission) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUserTeamPermissionData Related user team permission data
type RelationshipToUserTeamPermissionData struct {
// The ID of the user team permission
Id string `json:"id"`
// User team permission type
Type UserTeamPermissionType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUserTeamPermissionData(id string, typeVar UserTeamPermissionType) *RelationshipToUserTeamPermissionData
NewRelationshipToUserTeamPermissionData instantiates a new RelationshipToUserTeamPermissionData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUserTeamPermissionDataWithDefaults() *RelationshipToUserTeamPermissionData
NewRelationshipToUserTeamPermissionDataWithDefaults instantiates a new RelationshipToUserTeamPermissionData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUserTeamPermissionData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToUserTeamPermissionData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToUserTeamPermissionData) GetType() UserTeamPermissionType
GetType returns the Type field value.
func (o *RelationshipToUserTeamPermissionData) GetTypeOk() (*UserTeamPermissionType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToUserTeamPermissionData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUserTeamPermissionData) SetId(v string)
SetId sets field value.
func (o *RelationshipToUserTeamPermissionData) SetType(v UserTeamPermissionType)
SetType sets field value.
func (o *RelationshipToUserTeamPermissionData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUserTeamUser Relationship between team membership and user
type RelationshipToUserTeamUser struct {
// A user's relationship with a team
Data RelationshipToUserTeamUserData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUserTeamUser(data RelationshipToUserTeamUserData) *RelationshipToUserTeamUser
NewRelationshipToUserTeamUser instantiates a new RelationshipToUserTeamUser object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUserTeamUserWithDefaults() *RelationshipToUserTeamUser
NewRelationshipToUserTeamUserWithDefaults instantiates a new RelationshipToUserTeamUser object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUserTeamUser) GetData() RelationshipToUserTeamUserData
GetData returns the Data field value.
func (o *RelationshipToUserTeamUser) GetDataOk() (*RelationshipToUserTeamUserData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToUserTeamUser) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUserTeamUser) SetData(v RelationshipToUserTeamUserData)
SetData sets field value.
func (o *RelationshipToUserTeamUser) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUserTeamUserData A user's relationship with a team
type RelationshipToUserTeamUserData struct {
// The ID of the user associated with the team
Id string `json:"id"`
// User team user type
Type UserTeamUserType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUserTeamUserData(id string, typeVar UserTeamUserType) *RelationshipToUserTeamUserData
NewRelationshipToUserTeamUserData instantiates a new RelationshipToUserTeamUserData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUserTeamUserDataWithDefaults() *RelationshipToUserTeamUserData
NewRelationshipToUserTeamUserDataWithDefaults instantiates a new RelationshipToUserTeamUserData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUserTeamUserData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToUserTeamUserData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToUserTeamUserData) GetType() UserTeamUserType
GetType returns the Type field value.
func (o *RelationshipToUserTeamUserData) GetTypeOk() (*UserTeamUserType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToUserTeamUserData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUserTeamUserData) SetId(v string)
SetId sets field value.
func (o *RelationshipToUserTeamUserData) SetType(v UserTeamUserType)
SetType sets field value.
func (o *RelationshipToUserTeamUserData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUsers Relationship to users.
type RelationshipToUsers struct {
// Relationships to user objects.
Data []RelationshipToUserData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUsers(data []RelationshipToUserData) *RelationshipToUsers
NewRelationshipToUsers instantiates a new RelationshipToUsers object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUsersWithDefaults() *RelationshipToUsers
NewRelationshipToUsersWithDefaults instantiates a new RelationshipToUsers object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUsers) GetData() []RelationshipToUserData
GetData returns the Data field value.
func (o *RelationshipToUsers) GetDataOk() (*[]RelationshipToUserData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToUsers) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUsers) SetData(v []RelationshipToUserData)
SetData sets field value.
func (o *RelationshipToUsers) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ResponseMetaAttributes Object describing meta attributes of response.
type ResponseMetaAttributes struct {
// Pagination object.
Page *Pagination `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewResponseMetaAttributes() *ResponseMetaAttributes
NewResponseMetaAttributes instantiates a new ResponseMetaAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewResponseMetaAttributesWithDefaults() *ResponseMetaAttributes
NewResponseMetaAttributesWithDefaults instantiates a new ResponseMetaAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ResponseMetaAttributes) GetPage() Pagination
GetPage returns the Page field value if set, zero value otherwise.
func (o *ResponseMetaAttributes) GetPageOk() (*Pagination, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ResponseMetaAttributes) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o ResponseMetaAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ResponseMetaAttributes) SetPage(v Pagination)
SetPage gets a reference to the given Pagination and assigns it to the Page field.
func (o *ResponseMetaAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RestrictionPoliciesApi service type
type RestrictionPoliciesApi datadog.Service
func NewRestrictionPoliciesApi(client *datadog.APIClient) *RestrictionPoliciesApi
NewRestrictionPoliciesApi Returns NewRestrictionPoliciesApi.
func (a *RestrictionPoliciesApi) DeleteRestrictionPolicy(ctx _context.Context, resourceId string) (*_nethttp.Response, error)
DeleteRestrictionPolicy Delete a restriction policy. Deletes the restriction policy associated with a specified resource.
func (a *RestrictionPoliciesApi) GetRestrictionPolicy(ctx _context.Context, resourceId string) (RestrictionPolicyResponse, *_nethttp.Response, error)
GetRestrictionPolicy Get a restriction policy. Retrieves the restriction policy associated with a specified resource.
func (a *RestrictionPoliciesApi) UpdateRestrictionPolicy(ctx _context.Context, resourceId string, body RestrictionPolicyUpdateRequest) (RestrictionPolicyResponse, *_nethttp.Response, error)
UpdateRestrictionPolicy Update a restriction policy. Updates the restriction policy associated with a resource.
#### Supported resources Restriction policies can be applied to the following resources: - Connections: `connection` - Dashboards: `dashboard` - Notebooks: `notebook` - Security Rules: `security-rule` - Service Level Objectives: `slo`
#### Supported relations for resources Resource Type | Supported Relations -------------------------|-------------------------- Connections | `viewer`, `editor`, `resolver` Dashboards | `viewer`, `editor` Notebooks | `viewer`, `editor` Security Rules | `viewer`, `editor` Service Level Objectives | `viewer`, `editor`
RestrictionPolicy Restriction policy object.
type RestrictionPolicy struct {
// Restriction policy attributes.
Attributes RestrictionPolicyAttributes `json:"attributes"`
// The identifier, always equivalent to the value specified in the `resource_id` path parameter.
Id string `json:"id"`
// Restriction policy type.
Type RestrictionPolicyType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRestrictionPolicy(attributes RestrictionPolicyAttributes, id string, typeVar RestrictionPolicyType) *RestrictionPolicy
NewRestrictionPolicy instantiates a new RestrictionPolicy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRestrictionPolicyWithDefaults() *RestrictionPolicy
NewRestrictionPolicyWithDefaults instantiates a new RestrictionPolicy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RestrictionPolicy) GetAttributes() RestrictionPolicyAttributes
GetAttributes returns the Attributes field value.
func (o *RestrictionPolicy) GetAttributesOk() (*RestrictionPolicyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RestrictionPolicy) GetId() string
GetId returns the Id field value.
func (o *RestrictionPolicy) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RestrictionPolicy) GetType() RestrictionPolicyType
GetType returns the Type field value.
func (o *RestrictionPolicy) GetTypeOk() (*RestrictionPolicyType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RestrictionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RestrictionPolicy) SetAttributes(v RestrictionPolicyAttributes)
SetAttributes sets field value.
func (o *RestrictionPolicy) SetId(v string)
SetId sets field value.
func (o *RestrictionPolicy) SetType(v RestrictionPolicyType)
SetType sets field value.
func (o *RestrictionPolicy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RestrictionPolicyAttributes Restriction policy attributes.
type RestrictionPolicyAttributes struct {
// An array of bindings.
Bindings []RestrictionPolicyBinding `json:"bindings"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRestrictionPolicyAttributes(bindings []RestrictionPolicyBinding) *RestrictionPolicyAttributes
NewRestrictionPolicyAttributes instantiates a new RestrictionPolicyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRestrictionPolicyAttributesWithDefaults() *RestrictionPolicyAttributes
NewRestrictionPolicyAttributesWithDefaults instantiates a new RestrictionPolicyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RestrictionPolicyAttributes) GetBindings() []RestrictionPolicyBinding
GetBindings returns the Bindings field value.
func (o *RestrictionPolicyAttributes) GetBindingsOk() (*[]RestrictionPolicyBinding, bool)
GetBindingsOk returns a tuple with the Bindings field value and a boolean to check if the value has been set.
func (o RestrictionPolicyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RestrictionPolicyAttributes) SetBindings(v []RestrictionPolicyBinding)
SetBindings sets field value.
func (o *RestrictionPolicyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RestrictionPolicyBinding Specifies which principals are associated with a relation.
type RestrictionPolicyBinding struct {
// An array of principals. A principal is a subject or group of subjects.
// Each principal is formatted as `type:id`. Supported types: `role`, `team` (beta), `user` (beta), and `org`.
// The org ID can be obtained through the api/v2/current_user API.
// The user principal type accepts service account IDs.
Principals []string `json:"principals"`
// The role/level of access.
Relation string `json:"relation"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRestrictionPolicyBinding(principals []string, relation string) *RestrictionPolicyBinding
NewRestrictionPolicyBinding instantiates a new RestrictionPolicyBinding object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRestrictionPolicyBindingWithDefaults() *RestrictionPolicyBinding
NewRestrictionPolicyBindingWithDefaults instantiates a new RestrictionPolicyBinding object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RestrictionPolicyBinding) GetPrincipals() []string
GetPrincipals returns the Principals field value.
func (o *RestrictionPolicyBinding) GetPrincipalsOk() (*[]string, bool)
GetPrincipalsOk returns a tuple with the Principals field value and a boolean to check if the value has been set.
func (o *RestrictionPolicyBinding) GetRelation() string
GetRelation returns the Relation field value.
func (o *RestrictionPolicyBinding) GetRelationOk() (*string, bool)
GetRelationOk returns a tuple with the Relation field value and a boolean to check if the value has been set.
func (o RestrictionPolicyBinding) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RestrictionPolicyBinding) SetPrincipals(v []string)
SetPrincipals sets field value.
func (o *RestrictionPolicyBinding) SetRelation(v string)
SetRelation sets field value.
func (o *RestrictionPolicyBinding) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RestrictionPolicyResponse Response containing information about a single restriction policy.
type RestrictionPolicyResponse struct {
// Restriction policy object.
Data RestrictionPolicy `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRestrictionPolicyResponse(data RestrictionPolicy) *RestrictionPolicyResponse
NewRestrictionPolicyResponse instantiates a new RestrictionPolicyResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRestrictionPolicyResponseWithDefaults() *RestrictionPolicyResponse
NewRestrictionPolicyResponseWithDefaults instantiates a new RestrictionPolicyResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RestrictionPolicyResponse) GetData() RestrictionPolicy
GetData returns the Data field value.
func (o *RestrictionPolicyResponse) GetDataOk() (*RestrictionPolicy, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RestrictionPolicyResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RestrictionPolicyResponse) SetData(v RestrictionPolicy)
SetData sets field value.
func (o *RestrictionPolicyResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RestrictionPolicyType Restriction policy type.
type RestrictionPolicyType string
List of RestrictionPolicyType.
const (
RESTRICTIONPOLICYTYPE_RESTRICTION_POLICY RestrictionPolicyType = "restriction_policy"
)
func NewRestrictionPolicyTypeFromValue(v string) (*RestrictionPolicyType, error)
NewRestrictionPolicyTypeFromValue returns a pointer to a valid RestrictionPolicyType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RestrictionPolicyType) GetAllowedValues() []RestrictionPolicyType
GetAllowedValues reeturns the list of possible values.
func (v RestrictionPolicyType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RestrictionPolicyType) Ptr() *RestrictionPolicyType
Ptr returns reference to RestrictionPolicyType value.
func (v *RestrictionPolicyType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RestrictionPolicyUpdateRequest Update request for a restriction policy.
type RestrictionPolicyUpdateRequest struct {
// Restriction policy object.
Data RestrictionPolicy `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRestrictionPolicyUpdateRequest(data RestrictionPolicy) *RestrictionPolicyUpdateRequest
NewRestrictionPolicyUpdateRequest instantiates a new RestrictionPolicyUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRestrictionPolicyUpdateRequestWithDefaults() *RestrictionPolicyUpdateRequest
NewRestrictionPolicyUpdateRequestWithDefaults instantiates a new RestrictionPolicyUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RestrictionPolicyUpdateRequest) GetData() RestrictionPolicy
GetData returns the Data field value.
func (o *RestrictionPolicyUpdateRequest) GetDataOk() (*RestrictionPolicy, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RestrictionPolicyUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RestrictionPolicyUpdateRequest) SetData(v RestrictionPolicy)
SetData sets field value.
func (o *RestrictionPolicyUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Role Role object returned by the API.
type Role struct {
// Attributes of the role.
Attributes *RoleAttributes `json:"attributes,omitempty"`
// The unique identifier of the role.
Id *string `json:"id,omitempty"`
// Relationships of the role object returned by the API.
Relationships *RoleResponseRelationships `json:"relationships,omitempty"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRole(typeVar RolesType) *Role
NewRole instantiates a new Role object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleWithDefaults() *Role
NewRoleWithDefaults instantiates a new Role object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Role) GetAttributes() RoleAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Role) GetAttributesOk() (*RoleAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Role) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Role) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Role) GetRelationships() RoleResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *Role) GetRelationshipsOk() (*RoleResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Role) GetType() RolesType
GetType returns the Type field value.
func (o *Role) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *Role) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Role) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Role) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o Role) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Role) SetAttributes(v RoleAttributes)
SetAttributes gets a reference to the given RoleAttributes and assigns it to the Attributes field.
func (o *Role) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Role) SetRelationships(v RoleResponseRelationships)
SetRelationships gets a reference to the given RoleResponseRelationships and assigns it to the Relationships field.
func (o *Role) SetType(v RolesType)
SetType sets field value.
func (o *Role) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleAttributes Attributes of the role.
type RoleAttributes struct {
// Creation time of the role.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last role modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// The name of the role. The name is neither unique nor a stable identifier of the role.
Name *string `json:"name,omitempty"`
// Number of users with that role.
UserCount *int64 `json:"user_count,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleAttributes() *RoleAttributes
NewRoleAttributes instantiates a new RoleAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleAttributesWithDefaults() *RoleAttributes
NewRoleAttributesWithDefaults instantiates a new RoleAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *RoleAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *RoleAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *RoleAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleAttributes) GetUserCount() int64
GetUserCount returns the UserCount field value if set, zero value otherwise.
func (o *RoleAttributes) GetUserCountOk() (*int64, bool)
GetUserCountOk returns a tuple with the UserCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *RoleAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *RoleAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *RoleAttributes) HasUserCount() bool
HasUserCount returns a boolean if a field has been set.
func (o RoleAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *RoleAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *RoleAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *RoleAttributes) SetUserCount(v int64)
SetUserCount gets a reference to the given int64 and assigns it to the UserCount field.
func (o *RoleAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleClone Data for the clone role request.
type RoleClone struct {
// Attributes required to create a new role by cloning an existing one.
Attributes RoleCloneAttributes `json:"attributes"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleClone(attributes RoleCloneAttributes, typeVar RolesType) *RoleClone
NewRoleClone instantiates a new RoleClone object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCloneWithDefaults() *RoleClone
NewRoleCloneWithDefaults instantiates a new RoleClone object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleClone) GetAttributes() RoleCloneAttributes
GetAttributes returns the Attributes field value.
func (o *RoleClone) GetAttributesOk() (*RoleCloneAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RoleClone) GetType() RolesType
GetType returns the Type field value.
func (o *RoleClone) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RoleClone) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleClone) SetAttributes(v RoleCloneAttributes)
SetAttributes sets field value.
func (o *RoleClone) SetType(v RolesType)
SetType sets field value.
func (o *RoleClone) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCloneAttributes Attributes required to create a new role by cloning an existing one.
type RoleCloneAttributes struct {
// Name of the new role that is cloned.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCloneAttributes(name string) *RoleCloneAttributes
NewRoleCloneAttributes instantiates a new RoleCloneAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCloneAttributesWithDefaults() *RoleCloneAttributes
NewRoleCloneAttributesWithDefaults instantiates a new RoleCloneAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCloneAttributes) GetName() string
GetName returns the Name field value.
func (o *RoleCloneAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o RoleCloneAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCloneAttributes) SetName(v string)
SetName sets field value.
func (o *RoleCloneAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCloneRequest Request to create a role by cloning an existing role.
type RoleCloneRequest struct {
// Data for the clone role request.
Data RoleClone `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCloneRequest(data RoleClone) *RoleCloneRequest
NewRoleCloneRequest instantiates a new RoleCloneRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCloneRequestWithDefaults() *RoleCloneRequest
NewRoleCloneRequestWithDefaults instantiates a new RoleCloneRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCloneRequest) GetData() RoleClone
GetData returns the Data field value.
func (o *RoleCloneRequest) GetDataOk() (*RoleClone, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RoleCloneRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCloneRequest) SetData(v RoleClone)
SetData sets field value.
func (o *RoleCloneRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateAttributes Attributes of the created role.
type RoleCreateAttributes struct {
// Creation time of the role.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last role modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// Name of the role.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateAttributes(name string) *RoleCreateAttributes
NewRoleCreateAttributes instantiates a new RoleCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateAttributesWithDefaults() *RoleCreateAttributes
NewRoleCreateAttributesWithDefaults instantiates a new RoleCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *RoleCreateAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *RoleCreateAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *RoleCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *RoleCreateAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *RoleCreateAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o RoleCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *RoleCreateAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *RoleCreateAttributes) SetName(v string)
SetName sets field value.
func (o *RoleCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateData Data related to the creation of a role.
type RoleCreateData struct {
// Attributes of the created role.
Attributes RoleCreateAttributes `json:"attributes"`
// Relationships of the role object.
Relationships *RoleRelationships `json:"relationships,omitempty"`
// Roles type.
Type *RolesType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateData(attributes RoleCreateAttributes) *RoleCreateData
NewRoleCreateData instantiates a new RoleCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateDataWithDefaults() *RoleCreateData
NewRoleCreateDataWithDefaults instantiates a new RoleCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateData) GetAttributes() RoleCreateAttributes
GetAttributes returns the Attributes field value.
func (o *RoleCreateData) GetAttributesOk() (*RoleCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RoleCreateData) GetRelationships() RoleRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *RoleCreateData) GetRelationshipsOk() (*RoleRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateData) GetType() RolesType
GetType returns the Type field value if set, zero value otherwise.
func (o *RoleCreateData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *RoleCreateData) HasType() bool
HasType returns a boolean if a field has been set.
func (o RoleCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateData) SetAttributes(v RoleCreateAttributes)
SetAttributes sets field value.
func (o *RoleCreateData) SetRelationships(v RoleRelationships)
SetRelationships gets a reference to the given RoleRelationships and assigns it to the Relationships field.
func (o *RoleCreateData) SetType(v RolesType)
SetType gets a reference to the given RolesType and assigns it to the Type field.
func (o *RoleCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateRequest Create a role.
type RoleCreateRequest struct {
// Data related to the creation of a role.
Data RoleCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateRequest(data RoleCreateData) *RoleCreateRequest
NewRoleCreateRequest instantiates a new RoleCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateRequestWithDefaults() *RoleCreateRequest
NewRoleCreateRequestWithDefaults instantiates a new RoleCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateRequest) GetData() RoleCreateData
GetData returns the Data field value.
func (o *RoleCreateRequest) GetDataOk() (*RoleCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RoleCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateRequest) SetData(v RoleCreateData)
SetData sets field value.
func (o *RoleCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateResponse Response containing information about a created role.
type RoleCreateResponse struct {
// Role object returned by the API.
Data *RoleCreateResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateResponse() *RoleCreateResponse
NewRoleCreateResponse instantiates a new RoleCreateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateResponseWithDefaults() *RoleCreateResponse
NewRoleCreateResponseWithDefaults instantiates a new RoleCreateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateResponse) GetData() RoleCreateResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *RoleCreateResponse) GetDataOk() (*RoleCreateResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RoleCreateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateResponse) SetData(v RoleCreateResponseData)
SetData gets a reference to the given RoleCreateResponseData and assigns it to the Data field.
func (o *RoleCreateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateResponseData Role object returned by the API.
type RoleCreateResponseData struct {
// Attributes of the created role.
Attributes *RoleCreateAttributes `json:"attributes,omitempty"`
// The unique identifier of the role.
Id *string `json:"id,omitempty"`
// Relationships of the role object returned by the API.
Relationships *RoleResponseRelationships `json:"relationships,omitempty"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateResponseData(typeVar RolesType) *RoleCreateResponseData
NewRoleCreateResponseData instantiates a new RoleCreateResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateResponseDataWithDefaults() *RoleCreateResponseData
NewRoleCreateResponseDataWithDefaults instantiates a new RoleCreateResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateResponseData) GetAttributes() RoleCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RoleCreateResponseData) GetAttributesOk() (*RoleCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RoleCreateResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateResponseData) GetRelationships() RoleResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *RoleCreateResponseData) GetRelationshipsOk() (*RoleResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateResponseData) GetType() RolesType
GetType returns the Type field value.
func (o *RoleCreateResponseData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RoleCreateResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *RoleCreateResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RoleCreateResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o RoleCreateResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateResponseData) SetAttributes(v RoleCreateAttributes)
SetAttributes gets a reference to the given RoleCreateAttributes and assigns it to the Attributes field.
func (o *RoleCreateResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RoleCreateResponseData) SetRelationships(v RoleResponseRelationships)
SetRelationships gets a reference to the given RoleResponseRelationships and assigns it to the Relationships field.
func (o *RoleCreateResponseData) SetType(v RolesType)
SetType sets field value.
func (o *RoleCreateResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleRelationships Relationships of the role object.
type RoleRelationships struct {
// Relationship to multiple permissions objects.
Permissions *RelationshipToPermissions `json:"permissions,omitempty"`
// Relationship to users.
Users *RelationshipToUsers `json:"users,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleRelationships() *RoleRelationships
NewRoleRelationships instantiates a new RoleRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleRelationshipsWithDefaults() *RoleRelationships
NewRoleRelationshipsWithDefaults instantiates a new RoleRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleRelationships) GetPermissions() RelationshipToPermissions
GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *RoleRelationships) GetPermissionsOk() (*RelationshipToPermissions, bool)
GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleRelationships) GetUsers() RelationshipToUsers
GetUsers returns the Users field value if set, zero value otherwise.
func (o *RoleRelationships) GetUsersOk() (*RelationshipToUsers, bool)
GetUsersOk returns a tuple with the Users field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleRelationships) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.
func (o *RoleRelationships) HasUsers() bool
HasUsers returns a boolean if a field has been set.
func (o RoleRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleRelationships) SetPermissions(v RelationshipToPermissions)
SetPermissions gets a reference to the given RelationshipToPermissions and assigns it to the Permissions field.
func (o *RoleRelationships) SetUsers(v RelationshipToUsers)
SetUsers gets a reference to the given RelationshipToUsers and assigns it to the Users field.
func (o *RoleRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleResponse Response containing information about a single role.
type RoleResponse struct {
// Role object returned by the API.
Data *Role `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleResponse() *RoleResponse
NewRoleResponse instantiates a new RoleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleResponseWithDefaults() *RoleResponse
NewRoleResponseWithDefaults instantiates a new RoleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleResponse) GetData() Role
GetData returns the Data field value if set, zero value otherwise.
func (o *RoleResponse) GetDataOk() (*Role, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RoleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleResponse) SetData(v Role)
SetData gets a reference to the given Role and assigns it to the Data field.
func (o *RoleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleResponseRelationships Relationships of the role object returned by the API.
type RoleResponseRelationships struct {
// Relationship to multiple permissions objects.
Permissions *RelationshipToPermissions `json:"permissions,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleResponseRelationships() *RoleResponseRelationships
NewRoleResponseRelationships instantiates a new RoleResponseRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleResponseRelationshipsWithDefaults() *RoleResponseRelationships
NewRoleResponseRelationshipsWithDefaults instantiates a new RoleResponseRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleResponseRelationships) GetPermissions() RelationshipToPermissions
GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *RoleResponseRelationships) GetPermissionsOk() (*RelationshipToPermissions, bool)
GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleResponseRelationships) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.
func (o RoleResponseRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleResponseRelationships) SetPermissions(v RelationshipToPermissions)
SetPermissions gets a reference to the given RelationshipToPermissions and assigns it to the Permissions field.
func (o *RoleResponseRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateAttributes Attributes of the role.
type RoleUpdateAttributes struct {
// Creation time of the role.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last role modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// Name of the role.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateAttributes() *RoleUpdateAttributes
NewRoleUpdateAttributes instantiates a new RoleUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateAttributesWithDefaults() *RoleUpdateAttributes
NewRoleUpdateAttributesWithDefaults instantiates a new RoleUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *RoleUpdateAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *RoleUpdateAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *RoleUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *RoleUpdateAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *RoleUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o RoleUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *RoleUpdateAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *RoleUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *RoleUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateData Data related to the update of a role.
type RoleUpdateData struct {
// Attributes of the role.
Attributes RoleUpdateAttributes `json:"attributes"`
// The unique identifier of the role.
Id string `json:"id"`
// Relationships of the role object.
Relationships *RoleRelationships `json:"relationships,omitempty"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateData(attributes RoleUpdateAttributes, id string, typeVar RolesType) *RoleUpdateData
NewRoleUpdateData instantiates a new RoleUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateDataWithDefaults() *RoleUpdateData
NewRoleUpdateDataWithDefaults instantiates a new RoleUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateData) GetAttributes() RoleUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *RoleUpdateData) GetAttributesOk() (*RoleUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RoleUpdateData) GetId() string
GetId returns the Id field value.
func (o *RoleUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RoleUpdateData) GetRelationships() RoleRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *RoleUpdateData) GetRelationshipsOk() (*RoleRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateData) GetType() RolesType
GetType returns the Type field value.
func (o *RoleUpdateData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RoleUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o RoleUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateData) SetAttributes(v RoleUpdateAttributes)
SetAttributes sets field value.
func (o *RoleUpdateData) SetId(v string)
SetId sets field value.
func (o *RoleUpdateData) SetRelationships(v RoleRelationships)
SetRelationships gets a reference to the given RoleRelationships and assigns it to the Relationships field.
func (o *RoleUpdateData) SetType(v RolesType)
SetType sets field value.
func (o *RoleUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateRequest Update a role.
type RoleUpdateRequest struct {
// Data related to the update of a role.
Data RoleUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateRequest(data RoleUpdateData) *RoleUpdateRequest
NewRoleUpdateRequest instantiates a new RoleUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateRequestWithDefaults() *RoleUpdateRequest
NewRoleUpdateRequestWithDefaults instantiates a new RoleUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateRequest) GetData() RoleUpdateData
GetData returns the Data field value.
func (o *RoleUpdateRequest) GetDataOk() (*RoleUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RoleUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateRequest) SetData(v RoleUpdateData)
SetData sets field value.
func (o *RoleUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateResponse Response containing information about an updated role.
type RoleUpdateResponse struct {
// Role object returned by the API.
Data *RoleUpdateResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateResponse() *RoleUpdateResponse
NewRoleUpdateResponse instantiates a new RoleUpdateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateResponseWithDefaults() *RoleUpdateResponse
NewRoleUpdateResponseWithDefaults instantiates a new RoleUpdateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateResponse) GetData() RoleUpdateResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *RoleUpdateResponse) GetDataOk() (*RoleUpdateResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RoleUpdateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateResponse) SetData(v RoleUpdateResponseData)
SetData gets a reference to the given RoleUpdateResponseData and assigns it to the Data field.
func (o *RoleUpdateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateResponseData Role object returned by the API.
type RoleUpdateResponseData struct {
// Attributes of the role.
Attributes *RoleUpdateAttributes `json:"attributes,omitempty"`
// The unique identifier of the role.
Id *string `json:"id,omitempty"`
// Relationships of the role object returned by the API.
Relationships *RoleResponseRelationships `json:"relationships,omitempty"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateResponseData(typeVar RolesType) *RoleUpdateResponseData
NewRoleUpdateResponseData instantiates a new RoleUpdateResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateResponseDataWithDefaults() *RoleUpdateResponseData
NewRoleUpdateResponseDataWithDefaults instantiates a new RoleUpdateResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateResponseData) GetAttributes() RoleUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RoleUpdateResponseData) GetAttributesOk() (*RoleUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RoleUpdateResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateResponseData) GetRelationships() RoleResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *RoleUpdateResponseData) GetRelationshipsOk() (*RoleResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateResponseData) GetType() RolesType
GetType returns the Type field value.
func (o *RoleUpdateResponseData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RoleUpdateResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *RoleUpdateResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RoleUpdateResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o RoleUpdateResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateResponseData) SetAttributes(v RoleUpdateAttributes)
SetAttributes gets a reference to the given RoleUpdateAttributes and assigns it to the Attributes field.
func (o *RoleUpdateResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RoleUpdateResponseData) SetRelationships(v RoleResponseRelationships)
SetRelationships gets a reference to the given RoleResponseRelationships and assigns it to the Relationships field.
func (o *RoleUpdateResponseData) SetType(v RolesType)
SetType sets field value.
func (o *RoleUpdateResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RolesApi service type
type RolesApi datadog.Service
func NewRolesApi(client *datadog.APIClient) *RolesApi
NewRolesApi Returns NewRolesApi.
func (a *RolesApi) AddPermissionToRole(ctx _context.Context, roleId string, body RelationshipToPermission) (PermissionsResponse, *_nethttp.Response, error)
AddPermissionToRole Grant permission to a role. Adds a permission to a role.
func (a *RolesApi) AddUserToRole(ctx _context.Context, roleId string, body RelationshipToUser) (UsersResponse, *_nethttp.Response, error)
AddUserToRole Add a user to a role. Adds a user to a role.
func (a *RolesApi) CloneRole(ctx _context.Context, roleId string, body RoleCloneRequest) (RoleResponse, *_nethttp.Response, error)
CloneRole Create a new role by cloning an existing role. Clone an existing role
func (a *RolesApi) CreateRole(ctx _context.Context, body RoleCreateRequest) (RoleCreateResponse, *_nethttp.Response, error)
CreateRole Create role. Create a new role for your organization.
func (a *RolesApi) DeleteRole(ctx _context.Context, roleId string) (*_nethttp.Response, error)
DeleteRole Delete role. Disables a role.
func (a *RolesApi) GetRole(ctx _context.Context, roleId string) (RoleResponse, *_nethttp.Response, error)
GetRole Get a role. Get a role in the organization specified by the role’s `role_id`.
func (a *RolesApi) ListPermissions(ctx _context.Context) (PermissionsResponse, *_nethttp.Response, error)
ListPermissions List permissions. Returns a list of all permissions, including name, description, and ID.
func (a *RolesApi) ListRolePermissions(ctx _context.Context, roleId string) (PermissionsResponse, *_nethttp.Response, error)
ListRolePermissions List permissions for a role. Returns a list of all permissions for a single role.
func (a *RolesApi) ListRoleUsers(ctx _context.Context, roleId string, o ...ListRoleUsersOptionalParameters) (UsersResponse, *_nethttp.Response, error)
ListRoleUsers Get all users of a role. Gets all users of a role.
func (a *RolesApi) ListRoles(ctx _context.Context, o ...ListRolesOptionalParameters) (RolesResponse, *_nethttp.Response, error)
ListRoles List roles. Returns all roles, including their names and their unique identifiers.
func (a *RolesApi) RemovePermissionFromRole(ctx _context.Context, roleId string, body RelationshipToPermission) (PermissionsResponse, *_nethttp.Response, error)
RemovePermissionFromRole Revoke permission. Removes a permission from a role.
func (a *RolesApi) RemoveUserFromRole(ctx _context.Context, roleId string, body RelationshipToUser) (UsersResponse, *_nethttp.Response, error)
RemoveUserFromRole Remove a user from a role. Removes a user from a role.
func (a *RolesApi) UpdateRole(ctx _context.Context, roleId string, body RoleUpdateRequest) (RoleUpdateResponse, *_nethttp.Response, error)
UpdateRole Update a role. Edit a role. Can only be used with application keys belonging to administrators.
RolesResponse Response containing information about multiple roles.
type RolesResponse struct {
// Array of returned roles.
Data []Role `json:"data,omitempty"`
// Object describing meta attributes of response.
Meta *ResponseMetaAttributes `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRolesResponse() *RolesResponse
NewRolesResponse instantiates a new RolesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRolesResponseWithDefaults() *RolesResponse
NewRolesResponseWithDefaults instantiates a new RolesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RolesResponse) GetData() []Role
GetData returns the Data field value if set, zero value otherwise.
func (o *RolesResponse) GetDataOk() (*[]Role, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RolesResponse) GetMeta() ResponseMetaAttributes
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *RolesResponse) GetMetaOk() (*ResponseMetaAttributes, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RolesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *RolesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o RolesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RolesResponse) SetData(v []Role)
SetData gets a reference to the given []Role and assigns it to the Data field.
func (o *RolesResponse) SetMeta(v ResponseMetaAttributes)
SetMeta gets a reference to the given ResponseMetaAttributes and assigns it to the Meta field.
func (o *RolesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RolesSort Sorting options for roles.
type RolesSort string
List of RolesSort.
const (
ROLESSORT_NAME_ASCENDING RolesSort = "name"
ROLESSORT_NAME_DESCENDING RolesSort = "-name"
ROLESSORT_MODIFIED_AT_ASCENDING RolesSort = "modified_at"
ROLESSORT_MODIFIED_AT_DESCENDING RolesSort = "-modified_at"
ROLESSORT_USER_COUNT_ASCENDING RolesSort = "user_count"
ROLESSORT_USER_COUNT_DESCENDING RolesSort = "-user_count"
)
func NewRolesSortFromValue(v string) (*RolesSort, error)
NewRolesSortFromValue returns a pointer to a valid RolesSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RolesSort) GetAllowedValues() []RolesSort
GetAllowedValues reeturns the list of possible values.
func (v RolesSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RolesSort) Ptr() *RolesSort
Ptr returns reference to RolesSort value.
func (v *RolesSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RolesType Roles type.
type RolesType string
List of RolesType.
const (
ROLESTYPE_ROLES RolesType = "roles"
)
func NewRolesTypeFromValue(v string) (*RolesType, error)
NewRolesTypeFromValue returns a pointer to a valid RolesType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RolesType) GetAllowedValues() []RolesType
GetAllowedValues reeturns the list of possible values.
func (v RolesType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RolesType) Ptr() *RolesType
Ptr returns reference to RolesType value.
func (v *RolesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SAMLAssertionAttribute SAML assertion attribute.
type SAMLAssertionAttribute struct {
// Key/Value pair of attributes used in SAML assertion attributes.
Attributes *SAMLAssertionAttributeAttributes `json:"attributes,omitempty"`
// The ID of the SAML assertion attribute.
Id string `json:"id"`
// SAML assertion attributes resource type.
Type SAMLAssertionAttributesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSAMLAssertionAttribute(id string, typeVar SAMLAssertionAttributesType) *SAMLAssertionAttribute
NewSAMLAssertionAttribute instantiates a new SAMLAssertionAttribute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSAMLAssertionAttributeWithDefaults() *SAMLAssertionAttribute
NewSAMLAssertionAttributeWithDefaults instantiates a new SAMLAssertionAttribute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SAMLAssertionAttribute) GetAttributes() SAMLAssertionAttributeAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SAMLAssertionAttribute) GetAttributesOk() (*SAMLAssertionAttributeAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SAMLAssertionAttribute) GetId() string
GetId returns the Id field value.
func (o *SAMLAssertionAttribute) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *SAMLAssertionAttribute) GetType() SAMLAssertionAttributesType
GetType returns the Type field value.
func (o *SAMLAssertionAttribute) GetTypeOk() (*SAMLAssertionAttributesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *SAMLAssertionAttribute) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o SAMLAssertionAttribute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SAMLAssertionAttribute) SetAttributes(v SAMLAssertionAttributeAttributes)
SetAttributes gets a reference to the given SAMLAssertionAttributeAttributes and assigns it to the Attributes field.
func (o *SAMLAssertionAttribute) SetId(v string)
SetId sets field value.
func (o *SAMLAssertionAttribute) SetType(v SAMLAssertionAttributesType)
SetType sets field value.
func (o *SAMLAssertionAttribute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SAMLAssertionAttributeAttributes Key/Value pair of attributes used in SAML assertion attributes.
type SAMLAssertionAttributeAttributes struct {
// Key portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeKey *string `json:"attribute_key,omitempty"`
// Value portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeValue *string `json:"attribute_value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSAMLAssertionAttributeAttributes() *SAMLAssertionAttributeAttributes
NewSAMLAssertionAttributeAttributes instantiates a new SAMLAssertionAttributeAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSAMLAssertionAttributeAttributesWithDefaults() *SAMLAssertionAttributeAttributes
NewSAMLAssertionAttributeAttributesWithDefaults instantiates a new SAMLAssertionAttributeAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SAMLAssertionAttributeAttributes) GetAttributeKey() string
GetAttributeKey returns the AttributeKey field value if set, zero value otherwise.
func (o *SAMLAssertionAttributeAttributes) GetAttributeKeyOk() (*string, bool)
GetAttributeKeyOk returns a tuple with the AttributeKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SAMLAssertionAttributeAttributes) GetAttributeValue() string
GetAttributeValue returns the AttributeValue field value if set, zero value otherwise.
func (o *SAMLAssertionAttributeAttributes) GetAttributeValueOk() (*string, bool)
GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SAMLAssertionAttributeAttributes) HasAttributeKey() bool
HasAttributeKey returns a boolean if a field has been set.
func (o *SAMLAssertionAttributeAttributes) HasAttributeValue() bool
HasAttributeValue returns a boolean if a field has been set.
func (o SAMLAssertionAttributeAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SAMLAssertionAttributeAttributes) SetAttributeKey(v string)
SetAttributeKey gets a reference to the given string and assigns it to the AttributeKey field.
func (o *SAMLAssertionAttributeAttributes) SetAttributeValue(v string)
SetAttributeValue gets a reference to the given string and assigns it to the AttributeValue field.
func (o *SAMLAssertionAttributeAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SAMLAssertionAttributesType SAML assertion attributes resource type.
type SAMLAssertionAttributesType string
List of SAMLAssertionAttributesType.
const (
SAMLASSERTIONATTRIBUTESTYPE_SAML_ASSERTION_ATTRIBUTES SAMLAssertionAttributesType = "saml_assertion_attributes"
)
func NewSAMLAssertionAttributesTypeFromValue(v string) (*SAMLAssertionAttributesType, error)
NewSAMLAssertionAttributesTypeFromValue returns a pointer to a valid SAMLAssertionAttributesType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SAMLAssertionAttributesType) GetAllowedValues() []SAMLAssertionAttributesType
GetAllowedValues reeturns the list of possible values.
func (v SAMLAssertionAttributesType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SAMLAssertionAttributesType) Ptr() *SAMLAssertionAttributesType
Ptr returns reference to SAMLAssertionAttributesType value.
func (v *SAMLAssertionAttributesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ScalarColumn - A single column in a scalar query response.
type ScalarColumn struct {
GroupScalarColumn *GroupScalarColumn
DataScalarColumn *DataScalarColumn
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func DataScalarColumnAsScalarColumn(v *DataScalarColumn) ScalarColumn
DataScalarColumnAsScalarColumn is a convenience function that returns DataScalarColumn wrapped in ScalarColumn.
func GroupScalarColumnAsScalarColumn(v *GroupScalarColumn) ScalarColumn
GroupScalarColumnAsScalarColumn is a convenience function that returns GroupScalarColumn wrapped in ScalarColumn.
func (obj *ScalarColumn) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ScalarColumn) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ScalarColumn) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ScalarFormulaQueryRequest A wrapper request around one scalar query to be executed.
type ScalarFormulaQueryRequest struct {
// A single scalar query to be executed.
Data ScalarFormulaRequest `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewScalarFormulaQueryRequest(data ScalarFormulaRequest) *ScalarFormulaQueryRequest
NewScalarFormulaQueryRequest instantiates a new ScalarFormulaQueryRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewScalarFormulaQueryRequestWithDefaults() *ScalarFormulaQueryRequest
NewScalarFormulaQueryRequestWithDefaults instantiates a new ScalarFormulaQueryRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ScalarFormulaQueryRequest) GetData() ScalarFormulaRequest
GetData returns the Data field value.
func (o *ScalarFormulaQueryRequest) GetDataOk() (*ScalarFormulaRequest, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ScalarFormulaQueryRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ScalarFormulaQueryRequest) SetData(v ScalarFormulaRequest)
SetData sets field value.
func (o *ScalarFormulaQueryRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ScalarFormulaQueryResponse A message containing one or more responses to scalar queries.
type ScalarFormulaQueryResponse struct {
// A message containing the response to a scalar query.
Data *ScalarResponse `json:"data,omitempty"`
// An error generated when processing a request.
Errors *string `json:"errors,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewScalarFormulaQueryResponse() *ScalarFormulaQueryResponse
NewScalarFormulaQueryResponse instantiates a new ScalarFormulaQueryResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewScalarFormulaQueryResponseWithDefaults() *ScalarFormulaQueryResponse
NewScalarFormulaQueryResponseWithDefaults instantiates a new ScalarFormulaQueryResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ScalarFormulaQueryResponse) GetData() ScalarResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *ScalarFormulaQueryResponse) GetDataOk() (*ScalarResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ScalarFormulaQueryResponse) GetErrors() string
GetErrors returns the Errors field value if set, zero value otherwise.
func (o *ScalarFormulaQueryResponse) GetErrorsOk() (*string, bool)
GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ScalarFormulaQueryResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *ScalarFormulaQueryResponse) HasErrors() bool
HasErrors returns a boolean if a field has been set.
func (o ScalarFormulaQueryResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ScalarFormulaQueryResponse) SetData(v ScalarResponse)
SetData gets a reference to the given ScalarResponse and assigns it to the Data field.
func (o *ScalarFormulaQueryResponse) SetErrors(v string)
SetErrors gets a reference to the given string and assigns it to the Errors field.
func (o *ScalarFormulaQueryResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ScalarFormulaRequest A single scalar query to be executed.
type ScalarFormulaRequest struct {
// The object describing a scalar formula request.
Attributes ScalarFormulaRequestAttributes `json:"attributes"`
// The type of the resource. The value should always be scalar_request.
Type ScalarFormulaRequestType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewScalarFormulaRequest(attributes ScalarFormulaRequestAttributes, typeVar ScalarFormulaRequestType) *ScalarFormulaRequest
NewScalarFormulaRequest instantiates a new ScalarFormulaRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewScalarFormulaRequestWithDefaults() *ScalarFormulaRequest
NewScalarFormulaRequestWithDefaults instantiates a new ScalarFormulaRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ScalarFormulaRequest) GetAttributes() ScalarFormulaRequestAttributes
GetAttributes returns the Attributes field value.
func (o *ScalarFormulaRequest) GetAttributesOk() (*ScalarFormulaRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ScalarFormulaRequest) GetType() ScalarFormulaRequestType
GetType returns the Type field value.
func (o *ScalarFormulaRequest) GetTypeOk() (*ScalarFormulaRequestType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ScalarFormulaRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ScalarFormulaRequest) SetAttributes(v ScalarFormulaRequestAttributes)
SetAttributes sets field value.
func (o *ScalarFormulaRequest) SetType(v ScalarFormulaRequestType)
SetType sets field value.
func (o *ScalarFormulaRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ScalarFormulaRequestAttributes The object describing a scalar formula request.
type ScalarFormulaRequestAttributes struct {
// List of formulas to be calculated and returned as responses.
Formulas []QueryFormula `json:"formulas,omitempty"`
// Start date (inclusive) of the query in milliseconds since the Unix epoch.
From int64 `json:"from"`
// List of queries to be run and used as inputs to the formulas.
Queries []ScalarQuery `json:"queries"`
// End date (exclusive) of the query in milliseconds since the Unix epoch.
To int64 `json:"to"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewScalarFormulaRequestAttributes(from int64, queries []ScalarQuery, to int64) *ScalarFormulaRequestAttributes
NewScalarFormulaRequestAttributes instantiates a new ScalarFormulaRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewScalarFormulaRequestAttributesWithDefaults() *ScalarFormulaRequestAttributes
NewScalarFormulaRequestAttributesWithDefaults instantiates a new ScalarFormulaRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ScalarFormulaRequestAttributes) GetFormulas() []QueryFormula
GetFormulas returns the Formulas field value if set, zero value otherwise.
func (o *ScalarFormulaRequestAttributes) GetFormulasOk() (*[]QueryFormula, bool)
GetFormulasOk returns a tuple with the Formulas field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ScalarFormulaRequestAttributes) GetFrom() int64
GetFrom returns the From field value.
func (o *ScalarFormulaRequestAttributes) GetFromOk() (*int64, bool)
GetFromOk returns a tuple with the From field value and a boolean to check if the value has been set.
func (o *ScalarFormulaRequestAttributes) GetQueries() []ScalarQuery
GetQueries returns the Queries field value.
func (o *ScalarFormulaRequestAttributes) GetQueriesOk() (*[]ScalarQuery, bool)
GetQueriesOk returns a tuple with the Queries field value and a boolean to check if the value has been set.
func (o *ScalarFormulaRequestAttributes) GetTo() int64
GetTo returns the To field value.
func (o *ScalarFormulaRequestAttributes) GetToOk() (*int64, bool)
GetToOk returns a tuple with the To field value and a boolean to check if the value has been set.
func (o *ScalarFormulaRequestAttributes) HasFormulas() bool
HasFormulas returns a boolean if a field has been set.
func (o ScalarFormulaRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ScalarFormulaRequestAttributes) SetFormulas(v []QueryFormula)
SetFormulas gets a reference to the given []QueryFormula and assigns it to the Formulas field.
func (o *ScalarFormulaRequestAttributes) SetFrom(v int64)
SetFrom sets field value.
func (o *ScalarFormulaRequestAttributes) SetQueries(v []ScalarQuery)
SetQueries sets field value.
func (o *ScalarFormulaRequestAttributes) SetTo(v int64)
SetTo sets field value.
func (o *ScalarFormulaRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ScalarFormulaRequestType The type of the resource. The value should always be scalar_request.
type ScalarFormulaRequestType string
List of ScalarFormulaRequestType.
const (
SCALARFORMULAREQUESTTYPE_SCALAR_REQUEST ScalarFormulaRequestType = "scalar_request"
)
func NewScalarFormulaRequestTypeFromValue(v string) (*ScalarFormulaRequestType, error)
NewScalarFormulaRequestTypeFromValue returns a pointer to a valid ScalarFormulaRequestType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ScalarFormulaRequestType) GetAllowedValues() []ScalarFormulaRequestType
GetAllowedValues reeturns the list of possible values.
func (v ScalarFormulaRequestType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ScalarFormulaRequestType) Ptr() *ScalarFormulaRequestType
Ptr returns reference to ScalarFormulaRequestType value.
func (v *ScalarFormulaRequestType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ScalarFormulaResponseAtrributes The object describing a scalar response.
type ScalarFormulaResponseAtrributes struct {
// List of response columns, each corresponding to an individual formula or query in the request and with values in parallel arrays matching the series list.
Columns []ScalarColumn `json:"columns,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewScalarFormulaResponseAtrributes() *ScalarFormulaResponseAtrributes
NewScalarFormulaResponseAtrributes instantiates a new ScalarFormulaResponseAtrributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewScalarFormulaResponseAtrributesWithDefaults() *ScalarFormulaResponseAtrributes
NewScalarFormulaResponseAtrributesWithDefaults instantiates a new ScalarFormulaResponseAtrributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ScalarFormulaResponseAtrributes) GetColumns() []ScalarColumn
GetColumns returns the Columns field value if set, zero value otherwise.
func (o *ScalarFormulaResponseAtrributes) GetColumnsOk() (*[]ScalarColumn, bool)
GetColumnsOk returns a tuple with the Columns field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ScalarFormulaResponseAtrributes) HasColumns() bool
HasColumns returns a boolean if a field has been set.
func (o ScalarFormulaResponseAtrributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ScalarFormulaResponseAtrributes) SetColumns(v []ScalarColumn)
SetColumns gets a reference to the given []ScalarColumn and assigns it to the Columns field.
func (o *ScalarFormulaResponseAtrributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ScalarFormulaResponseType The type of the resource. The value should always be scalar_response.
type ScalarFormulaResponseType string
List of ScalarFormulaResponseType.
const (
SCALARFORMULARESPONSETYPE_SCALAR_RESPONSE ScalarFormulaResponseType = "scalar_response"
)
func NewScalarFormulaResponseTypeFromValue(v string) (*ScalarFormulaResponseType, error)
NewScalarFormulaResponseTypeFromValue returns a pointer to a valid ScalarFormulaResponseType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ScalarFormulaResponseType) GetAllowedValues() []ScalarFormulaResponseType
GetAllowedValues reeturns the list of possible values.
func (v ScalarFormulaResponseType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ScalarFormulaResponseType) Ptr() *ScalarFormulaResponseType
Ptr returns reference to ScalarFormulaResponseType value.
func (v *ScalarFormulaResponseType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ScalarMeta Metadata for the resulting numerical values.
type ScalarMeta struct {
// Detailed information about the unit.
// First element describes the "primary unit" (for example, `bytes` in `bytes per second`).
// The second element describes the "per unit" (for example, `second` in `bytes per second`).
// If the second element is not present, the API returns null.
Unit []Unit `json:"unit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewScalarMeta() *ScalarMeta
NewScalarMeta instantiates a new ScalarMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewScalarMetaWithDefaults() *ScalarMeta
NewScalarMetaWithDefaults instantiates a new ScalarMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ScalarMeta) GetUnit() []Unit
GetUnit returns the Unit field value if set, zero value otherwise.
func (o *ScalarMeta) GetUnitOk() (*[]Unit, bool)
GetUnitOk returns a tuple with the Unit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ScalarMeta) HasUnit() bool
HasUnit returns a boolean if a field has been set.
func (o ScalarMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ScalarMeta) SetUnit(v []Unit)
SetUnit gets a reference to the given []Unit and assigns it to the Unit field.
func (o *ScalarMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ScalarQuery - An individual scalar query to one of the basic Datadog data sources.
type ScalarQuery struct {
MetricsScalarQuery *MetricsScalarQuery
EventsScalarQuery *EventsScalarQuery
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func EventsScalarQueryAsScalarQuery(v *EventsScalarQuery) ScalarQuery
EventsScalarQueryAsScalarQuery is a convenience function that returns EventsScalarQuery wrapped in ScalarQuery.
func MetricsScalarQueryAsScalarQuery(v *MetricsScalarQuery) ScalarQuery
MetricsScalarQueryAsScalarQuery is a convenience function that returns MetricsScalarQuery wrapped in ScalarQuery.
func (obj *ScalarQuery) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ScalarQuery) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ScalarQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ScalarResponse A message containing the response to a scalar query.
type ScalarResponse struct {
// The object describing a scalar response.
Attributes *ScalarFormulaResponseAtrributes `json:"attributes,omitempty"`
// The type of the resource. The value should always be scalar_response.
Type *ScalarFormulaResponseType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewScalarResponse() *ScalarResponse
NewScalarResponse instantiates a new ScalarResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewScalarResponseWithDefaults() *ScalarResponse
NewScalarResponseWithDefaults instantiates a new ScalarResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ScalarResponse) GetAttributes() ScalarFormulaResponseAtrributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *ScalarResponse) GetAttributesOk() (*ScalarFormulaResponseAtrributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ScalarResponse) GetType() ScalarFormulaResponseType
GetType returns the Type field value if set, zero value otherwise.
func (o *ScalarResponse) GetTypeOk() (*ScalarFormulaResponseType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ScalarResponse) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *ScalarResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o ScalarResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ScalarResponse) SetAttributes(v ScalarFormulaResponseAtrributes)
SetAttributes gets a reference to the given ScalarFormulaResponseAtrributes and assigns it to the Attributes field.
func (o *ScalarResponse) SetType(v ScalarFormulaResponseType)
SetType gets a reference to the given ScalarFormulaResponseType and assigns it to the Type field.
func (o *ScalarResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SearchAuditLogsOptionalParameters holds optional parameters for SearchAuditLogs.
type SearchAuditLogsOptionalParameters struct {
Body *AuditLogsSearchEventsRequest
}
func NewSearchAuditLogsOptionalParameters() *SearchAuditLogsOptionalParameters
NewSearchAuditLogsOptionalParameters creates an empty struct for parameters.
func (r *SearchAuditLogsOptionalParameters) WithBody(body AuditLogsSearchEventsRequest) *SearchAuditLogsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
SearchCIAppPipelineEventsOptionalParameters holds optional parameters for SearchCIAppPipelineEvents.
type SearchCIAppPipelineEventsOptionalParameters struct {
Body *CIAppPipelineEventsRequest
}
func NewSearchCIAppPipelineEventsOptionalParameters() *SearchCIAppPipelineEventsOptionalParameters
NewSearchCIAppPipelineEventsOptionalParameters creates an empty struct for parameters.
func (r *SearchCIAppPipelineEventsOptionalParameters) WithBody(body CIAppPipelineEventsRequest) *SearchCIAppPipelineEventsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
SearchCIAppTestEventsOptionalParameters holds optional parameters for SearchCIAppTestEvents.
type SearchCIAppTestEventsOptionalParameters struct {
Body *CIAppTestEventsRequest
}
func NewSearchCIAppTestEventsOptionalParameters() *SearchCIAppTestEventsOptionalParameters
NewSearchCIAppTestEventsOptionalParameters creates an empty struct for parameters.
func (r *SearchCIAppTestEventsOptionalParameters) WithBody(body CIAppTestEventsRequest) *SearchCIAppTestEventsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
SearchEventsOptionalParameters holds optional parameters for SearchEvents.
type SearchEventsOptionalParameters struct {
Body *EventsListRequest
}
func NewSearchEventsOptionalParameters() *SearchEventsOptionalParameters
NewSearchEventsOptionalParameters creates an empty struct for parameters.
func (r *SearchEventsOptionalParameters) WithBody(body EventsListRequest) *SearchEventsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
SearchIncidentsOptionalParameters holds optional parameters for SearchIncidents.
type SearchIncidentsOptionalParameters struct {
Include *IncidentRelatedObject
Sort *IncidentSearchSortOrder
PageSize *int64
PageOffset *int64
}
func NewSearchIncidentsOptionalParameters() *SearchIncidentsOptionalParameters
NewSearchIncidentsOptionalParameters creates an empty struct for parameters.
func (r *SearchIncidentsOptionalParameters) WithInclude(include IncidentRelatedObject) *SearchIncidentsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *SearchIncidentsOptionalParameters) WithPageOffset(pageOffset int64) *SearchIncidentsOptionalParameters
WithPageOffset sets the corresponding parameter name and returns the struct.
func (r *SearchIncidentsOptionalParameters) WithPageSize(pageSize int64) *SearchIncidentsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *SearchIncidentsOptionalParameters) WithSort(sort IncidentSearchSortOrder) *SearchIncidentsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
SearchSecurityMonitoringSignalsOptionalParameters holds optional parameters for SearchSecurityMonitoringSignals.
type SearchSecurityMonitoringSignalsOptionalParameters struct {
Body *SecurityMonitoringSignalListRequest
}
func NewSearchSecurityMonitoringSignalsOptionalParameters() *SearchSecurityMonitoringSignalsOptionalParameters
NewSearchSecurityMonitoringSignalsOptionalParameters creates an empty struct for parameters.
func (r *SearchSecurityMonitoringSignalsOptionalParameters) WithBody(body SecurityMonitoringSignalListRequest) *SearchSecurityMonitoringSignalsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
SecurityFilter The security filter's properties.
type SecurityFilter struct {
// The object describing a security filter.
Attributes *SecurityFilterAttributes `json:"attributes,omitempty"`
// The ID of the security filter.
Id *string `json:"id,omitempty"`
// The type of the resource. The value should always be `security_filters`.
Type *SecurityFilterType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilter() *SecurityFilter
NewSecurityFilter instantiates a new SecurityFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterWithDefaults() *SecurityFilter
NewSecurityFilterWithDefaults instantiates a new SecurityFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilter) GetAttributes() SecurityFilterAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SecurityFilter) GetAttributesOk() (*SecurityFilterAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilter) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityFilter) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilter) GetType() SecurityFilterType
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityFilter) GetTypeOk() (*SecurityFilterType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilter) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SecurityFilter) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityFilter) HasType() bool
HasType returns a boolean if a field has been set.
func (o SecurityFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilter) SetAttributes(v SecurityFilterAttributes)
SetAttributes gets a reference to the given SecurityFilterAttributes and assigns it to the Attributes field.
func (o *SecurityFilter) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SecurityFilter) SetType(v SecurityFilterType)
SetType gets a reference to the given SecurityFilterType and assigns it to the Type field.
func (o *SecurityFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterAttributes The object describing a security filter.
type SecurityFilterAttributes struct {
// The list of exclusion filters applied in this security filter.
ExclusionFilters []SecurityFilterExclusionFilterResponse `json:"exclusion_filters,omitempty"`
// The filtered data type.
FilteredDataType *SecurityFilterFilteredDataType `json:"filtered_data_type,omitempty"`
// Whether the security filter is the built-in filter.
IsBuiltin *bool `json:"is_builtin,omitempty"`
// Whether the security filter is enabled.
IsEnabled *bool `json:"is_enabled,omitempty"`
// The security filter name.
Name *string `json:"name,omitempty"`
// The security filter query. Logs accepted by this query will be accepted by this filter.
Query *string `json:"query,omitempty"`
// The version of the security filter.
Version *int32 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterAttributes() *SecurityFilterAttributes
NewSecurityFilterAttributes instantiates a new SecurityFilterAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterAttributesWithDefaults() *SecurityFilterAttributes
NewSecurityFilterAttributesWithDefaults instantiates a new SecurityFilterAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterAttributes) GetExclusionFilters() []SecurityFilterExclusionFilterResponse
GetExclusionFilters returns the ExclusionFilters field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetExclusionFiltersOk() (*[]SecurityFilterExclusionFilterResponse, bool)
GetExclusionFiltersOk returns a tuple with the ExclusionFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetFilteredDataType() SecurityFilterFilteredDataType
GetFilteredDataType returns the FilteredDataType field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetFilteredDataTypeOk() (*SecurityFilterFilteredDataType, bool)
GetFilteredDataTypeOk returns a tuple with the FilteredDataType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetIsBuiltin() bool
GetIsBuiltin returns the IsBuiltin field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetIsBuiltinOk() (*bool, bool)
GetIsBuiltinOk returns a tuple with the IsBuiltin field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetVersion() int32
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) HasExclusionFilters() bool
HasExclusionFilters returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasFilteredDataType() bool
HasFilteredDataType returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasIsBuiltin() bool
HasIsBuiltin returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityFilterAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterAttributes) SetExclusionFilters(v []SecurityFilterExclusionFilterResponse)
SetExclusionFilters gets a reference to the given []SecurityFilterExclusionFilterResponse and assigns it to the ExclusionFilters field.
func (o *SecurityFilterAttributes) SetFilteredDataType(v SecurityFilterFilteredDataType)
SetFilteredDataType gets a reference to the given SecurityFilterFilteredDataType and assigns it to the FilteredDataType field.
func (o *SecurityFilterAttributes) SetIsBuiltin(v bool)
SetIsBuiltin gets a reference to the given bool and assigns it to the IsBuiltin field.
func (o *SecurityFilterAttributes) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityFilterAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityFilterAttributes) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityFilterAttributes) SetVersion(v int32)
SetVersion gets a reference to the given int32 and assigns it to the Version field.
func (o *SecurityFilterAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterCreateAttributes Object containing the attributes of the security filter to be created.
type SecurityFilterCreateAttributes struct {
// Exclusion filters to exclude some logs from the security filter.
ExclusionFilters []SecurityFilterExclusionFilter `json:"exclusion_filters"`
// The filtered data type.
FilteredDataType SecurityFilterFilteredDataType `json:"filtered_data_type"`
// Whether the security filter is enabled.
IsEnabled bool `json:"is_enabled"`
// The name of the security filter.
Name string `json:"name"`
// The query of the security filter.
Query string `json:"query"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterCreateAttributes(exclusionFilters []SecurityFilterExclusionFilter, filteredDataType SecurityFilterFilteredDataType, isEnabled bool, name string, query string) *SecurityFilterCreateAttributes
NewSecurityFilterCreateAttributes instantiates a new SecurityFilterCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterCreateAttributesWithDefaults() *SecurityFilterCreateAttributes
NewSecurityFilterCreateAttributesWithDefaults instantiates a new SecurityFilterCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterCreateAttributes) GetExclusionFilters() []SecurityFilterExclusionFilter
GetExclusionFilters returns the ExclusionFilters field value.
func (o *SecurityFilterCreateAttributes) GetExclusionFiltersOk() (*[]SecurityFilterExclusionFilter, bool)
GetExclusionFiltersOk returns a tuple with the ExclusionFilters field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateAttributes) GetFilteredDataType() SecurityFilterFilteredDataType
GetFilteredDataType returns the FilteredDataType field value.
func (o *SecurityFilterCreateAttributes) GetFilteredDataTypeOk() (*SecurityFilterFilteredDataType, bool)
GetFilteredDataTypeOk returns a tuple with the FilteredDataType field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateAttributes) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value.
func (o *SecurityFilterCreateAttributes) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *SecurityFilterCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateAttributes) GetQuery() string
GetQuery returns the Query field value.
func (o *SecurityFilterCreateAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o SecurityFilterCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterCreateAttributes) SetExclusionFilters(v []SecurityFilterExclusionFilter)
SetExclusionFilters sets field value.
func (o *SecurityFilterCreateAttributes) SetFilteredDataType(v SecurityFilterFilteredDataType)
SetFilteredDataType sets field value.
func (o *SecurityFilterCreateAttributes) SetIsEnabled(v bool)
SetIsEnabled sets field value.
func (o *SecurityFilterCreateAttributes) SetName(v string)
SetName sets field value.
func (o *SecurityFilterCreateAttributes) SetQuery(v string)
SetQuery sets field value.
func (o *SecurityFilterCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterCreateData Object for a single security filter.
type SecurityFilterCreateData struct {
// Object containing the attributes of the security filter to be created.
Attributes SecurityFilterCreateAttributes `json:"attributes"`
// The type of the resource. The value should always be `security_filters`.
Type SecurityFilterType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterCreateData(attributes SecurityFilterCreateAttributes, typeVar SecurityFilterType) *SecurityFilterCreateData
NewSecurityFilterCreateData instantiates a new SecurityFilterCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterCreateDataWithDefaults() *SecurityFilterCreateData
NewSecurityFilterCreateDataWithDefaults instantiates a new SecurityFilterCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterCreateData) GetAttributes() SecurityFilterCreateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityFilterCreateData) GetAttributesOk() (*SecurityFilterCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateData) GetType() SecurityFilterType
GetType returns the Type field value.
func (o *SecurityFilterCreateData) GetTypeOk() (*SecurityFilterType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o SecurityFilterCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterCreateData) SetAttributes(v SecurityFilterCreateAttributes)
SetAttributes sets field value.
func (o *SecurityFilterCreateData) SetType(v SecurityFilterType)
SetType sets field value.
func (o *SecurityFilterCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterCreateRequest Request object that includes the security filter that you would like to create.
type SecurityFilterCreateRequest struct {
// Object for a single security filter.
Data SecurityFilterCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterCreateRequest(data SecurityFilterCreateData) *SecurityFilterCreateRequest
NewSecurityFilterCreateRequest instantiates a new SecurityFilterCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterCreateRequestWithDefaults() *SecurityFilterCreateRequest
NewSecurityFilterCreateRequestWithDefaults instantiates a new SecurityFilterCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterCreateRequest) GetData() SecurityFilterCreateData
GetData returns the Data field value.
func (o *SecurityFilterCreateRequest) GetDataOk() (*SecurityFilterCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityFilterCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterCreateRequest) SetData(v SecurityFilterCreateData)
SetData sets field value.
func (o *SecurityFilterCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterExclusionFilter Exclusion filter for the security filter.
type SecurityFilterExclusionFilter struct {
// Exclusion filter name.
Name string `json:"name"`
// Exclusion filter query. Logs that match this query are excluded from the security filter.
Query string `json:"query"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterExclusionFilter(name string, query string) *SecurityFilterExclusionFilter
NewSecurityFilterExclusionFilter instantiates a new SecurityFilterExclusionFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterExclusionFilterWithDefaults() *SecurityFilterExclusionFilter
NewSecurityFilterExclusionFilterWithDefaults instantiates a new SecurityFilterExclusionFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterExclusionFilter) GetName() string
GetName returns the Name field value.
func (o *SecurityFilterExclusionFilter) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *SecurityFilterExclusionFilter) GetQuery() string
GetQuery returns the Query field value.
func (o *SecurityFilterExclusionFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o SecurityFilterExclusionFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterExclusionFilter) SetName(v string)
SetName sets field value.
func (o *SecurityFilterExclusionFilter) SetQuery(v string)
SetQuery sets field value.
func (o *SecurityFilterExclusionFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterExclusionFilterResponse A single exclusion filter.
type SecurityFilterExclusionFilterResponse struct {
// The exclusion filter name.
Name *string `json:"name,omitempty"`
// The exclusion filter query.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterExclusionFilterResponse() *SecurityFilterExclusionFilterResponse
NewSecurityFilterExclusionFilterResponse instantiates a new SecurityFilterExclusionFilterResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterExclusionFilterResponseWithDefaults() *SecurityFilterExclusionFilterResponse
NewSecurityFilterExclusionFilterResponseWithDefaults instantiates a new SecurityFilterExclusionFilterResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterExclusionFilterResponse) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityFilterExclusionFilterResponse) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterExclusionFilterResponse) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityFilterExclusionFilterResponse) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterExclusionFilterResponse) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityFilterExclusionFilterResponse) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o SecurityFilterExclusionFilterResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterExclusionFilterResponse) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityFilterExclusionFilterResponse) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityFilterExclusionFilterResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterFilteredDataType The filtered data type.
type SecurityFilterFilteredDataType string
List of SecurityFilterFilteredDataType.
const (
SECURITYFILTERFILTEREDDATATYPE_LOGS SecurityFilterFilteredDataType = "logs"
)
func NewSecurityFilterFilteredDataTypeFromValue(v string) (*SecurityFilterFilteredDataType, error)
NewSecurityFilterFilteredDataTypeFromValue returns a pointer to a valid SecurityFilterFilteredDataType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityFilterFilteredDataType) GetAllowedValues() []SecurityFilterFilteredDataType
GetAllowedValues reeturns the list of possible values.
func (v SecurityFilterFilteredDataType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityFilterFilteredDataType) Ptr() *SecurityFilterFilteredDataType
Ptr returns reference to SecurityFilterFilteredDataType value.
func (v *SecurityFilterFilteredDataType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityFilterMeta Optional metadata associated to the response.
type SecurityFilterMeta struct {
// A warning message.
Warning *string `json:"warning,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterMeta() *SecurityFilterMeta
NewSecurityFilterMeta instantiates a new SecurityFilterMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterMetaWithDefaults() *SecurityFilterMeta
NewSecurityFilterMetaWithDefaults instantiates a new SecurityFilterMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterMeta) GetWarning() string
GetWarning returns the Warning field value if set, zero value otherwise.
func (o *SecurityFilterMeta) GetWarningOk() (*string, bool)
GetWarningOk returns a tuple with the Warning field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterMeta) HasWarning() bool
HasWarning returns a boolean if a field has been set.
func (o SecurityFilterMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterMeta) SetWarning(v string)
SetWarning gets a reference to the given string and assigns it to the Warning field.
func (o *SecurityFilterMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterResponse Response object which includes a single security filter.
type SecurityFilterResponse struct {
// The security filter's properties.
Data *SecurityFilter `json:"data,omitempty"`
// Optional metadata associated to the response.
Meta *SecurityFilterMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterResponse() *SecurityFilterResponse
NewSecurityFilterResponse instantiates a new SecurityFilterResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterResponseWithDefaults() *SecurityFilterResponse
NewSecurityFilterResponseWithDefaults instantiates a new SecurityFilterResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterResponse) GetData() SecurityFilter
GetData returns the Data field value if set, zero value otherwise.
func (o *SecurityFilterResponse) GetDataOk() (*SecurityFilter, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterResponse) GetMeta() SecurityFilterMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SecurityFilterResponse) GetMetaOk() (*SecurityFilterMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SecurityFilterResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SecurityFilterResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterResponse) SetData(v SecurityFilter)
SetData gets a reference to the given SecurityFilter and assigns it to the Data field.
func (o *SecurityFilterResponse) SetMeta(v SecurityFilterMeta)
SetMeta gets a reference to the given SecurityFilterMeta and assigns it to the Meta field.
func (o *SecurityFilterResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterType The type of the resource. The value should always be `security_filters`.
type SecurityFilterType string
List of SecurityFilterType.
const (
SECURITYFILTERTYPE_SECURITY_FILTERS SecurityFilterType = "security_filters"
)
func NewSecurityFilterTypeFromValue(v string) (*SecurityFilterType, error)
NewSecurityFilterTypeFromValue returns a pointer to a valid SecurityFilterType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityFilterType) GetAllowedValues() []SecurityFilterType
GetAllowedValues reeturns the list of possible values.
func (v SecurityFilterType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityFilterType) Ptr() *SecurityFilterType
Ptr returns reference to SecurityFilterType value.
func (v *SecurityFilterType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityFilterUpdateAttributes The security filters properties to be updated.
type SecurityFilterUpdateAttributes struct {
// Exclusion filters to exclude some logs from the security filter.
ExclusionFilters []SecurityFilterExclusionFilter `json:"exclusion_filters,omitempty"`
// The filtered data type.
FilteredDataType *SecurityFilterFilteredDataType `json:"filtered_data_type,omitempty"`
// Whether the security filter is enabled.
IsEnabled *bool `json:"is_enabled,omitempty"`
// The name of the security filter.
Name *string `json:"name,omitempty"`
// The query of the security filter.
Query *string `json:"query,omitempty"`
// The version of the security filter to update.
Version *int32 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterUpdateAttributes() *SecurityFilterUpdateAttributes
NewSecurityFilterUpdateAttributes instantiates a new SecurityFilterUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterUpdateAttributesWithDefaults() *SecurityFilterUpdateAttributes
NewSecurityFilterUpdateAttributesWithDefaults instantiates a new SecurityFilterUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterUpdateAttributes) GetExclusionFilters() []SecurityFilterExclusionFilter
GetExclusionFilters returns the ExclusionFilters field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetExclusionFiltersOk() (*[]SecurityFilterExclusionFilter, bool)
GetExclusionFiltersOk returns a tuple with the ExclusionFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetFilteredDataType() SecurityFilterFilteredDataType
GetFilteredDataType returns the FilteredDataType field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetFilteredDataTypeOk() (*SecurityFilterFilteredDataType, bool)
GetFilteredDataTypeOk returns a tuple with the FilteredDataType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetVersion() int32
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) HasExclusionFilters() bool
HasExclusionFilters returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasFilteredDataType() bool
HasFilteredDataType returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityFilterUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterUpdateAttributes) SetExclusionFilters(v []SecurityFilterExclusionFilter)
SetExclusionFilters gets a reference to the given []SecurityFilterExclusionFilter and assigns it to the ExclusionFilters field.
func (o *SecurityFilterUpdateAttributes) SetFilteredDataType(v SecurityFilterFilteredDataType)
SetFilteredDataType gets a reference to the given SecurityFilterFilteredDataType and assigns it to the FilteredDataType field.
func (o *SecurityFilterUpdateAttributes) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityFilterUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityFilterUpdateAttributes) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityFilterUpdateAttributes) SetVersion(v int32)
SetVersion gets a reference to the given int32 and assigns it to the Version field.
func (o *SecurityFilterUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterUpdateData The new security filter properties.
type SecurityFilterUpdateData struct {
// The security filters properties to be updated.
Attributes SecurityFilterUpdateAttributes `json:"attributes"`
// The type of the resource. The value should always be `security_filters`.
Type SecurityFilterType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterUpdateData(attributes SecurityFilterUpdateAttributes, typeVar SecurityFilterType) *SecurityFilterUpdateData
NewSecurityFilterUpdateData instantiates a new SecurityFilterUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterUpdateDataWithDefaults() *SecurityFilterUpdateData
NewSecurityFilterUpdateDataWithDefaults instantiates a new SecurityFilterUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterUpdateData) GetAttributes() SecurityFilterUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityFilterUpdateData) GetAttributesOk() (*SecurityFilterUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateData) GetType() SecurityFilterType
GetType returns the Type field value.
func (o *SecurityFilterUpdateData) GetTypeOk() (*SecurityFilterType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o SecurityFilterUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterUpdateData) SetAttributes(v SecurityFilterUpdateAttributes)
SetAttributes sets field value.
func (o *SecurityFilterUpdateData) SetType(v SecurityFilterType)
SetType sets field value.
func (o *SecurityFilterUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterUpdateRequest The new security filter body.
type SecurityFilterUpdateRequest struct {
// The new security filter properties.
Data SecurityFilterUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterUpdateRequest(data SecurityFilterUpdateData) *SecurityFilterUpdateRequest
NewSecurityFilterUpdateRequest instantiates a new SecurityFilterUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterUpdateRequestWithDefaults() *SecurityFilterUpdateRequest
NewSecurityFilterUpdateRequestWithDefaults instantiates a new SecurityFilterUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterUpdateRequest) GetData() SecurityFilterUpdateData
GetData returns the Data field value.
func (o *SecurityFilterUpdateRequest) GetDataOk() (*SecurityFilterUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityFilterUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterUpdateRequest) SetData(v SecurityFilterUpdateData)
SetData sets field value.
func (o *SecurityFilterUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFiltersResponse All the available security filters objects.
type SecurityFiltersResponse struct {
// A list of security filters objects.
Data []SecurityFilter `json:"data,omitempty"`
// Optional metadata associated to the response.
Meta *SecurityFilterMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFiltersResponse() *SecurityFiltersResponse
NewSecurityFiltersResponse instantiates a new SecurityFiltersResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFiltersResponseWithDefaults() *SecurityFiltersResponse
NewSecurityFiltersResponseWithDefaults instantiates a new SecurityFiltersResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFiltersResponse) GetData() []SecurityFilter
GetData returns the Data field value if set, zero value otherwise.
func (o *SecurityFiltersResponse) GetDataOk() (*[]SecurityFilter, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFiltersResponse) GetMeta() SecurityFilterMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SecurityFiltersResponse) GetMetaOk() (*SecurityFilterMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFiltersResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SecurityFiltersResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SecurityFiltersResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFiltersResponse) SetData(v []SecurityFilter)
SetData gets a reference to the given []SecurityFilter and assigns it to the Data field.
func (o *SecurityFiltersResponse) SetMeta(v SecurityFilterMeta)
SetMeta gets a reference to the given SecurityFilterMeta and assigns it to the Meta field.
func (o *SecurityFiltersResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringApi service type
type SecurityMonitoringApi datadog.Service
func NewSecurityMonitoringApi(client *datadog.APIClient) *SecurityMonitoringApi
NewSecurityMonitoringApi Returns NewSecurityMonitoringApi.
func (a *SecurityMonitoringApi) CreateSecurityFilter(ctx _context.Context, body SecurityFilterCreateRequest) (SecurityFilterResponse, *_nethttp.Response, error)
CreateSecurityFilter Create a security filter. Create a security filter.
See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples.
func (a *SecurityMonitoringApi) CreateSecurityMonitoringRule(ctx _context.Context, body SecurityMonitoringRuleCreatePayload) (SecurityMonitoringRuleResponse, *_nethttp.Response, error)
CreateSecurityMonitoringRule Create a detection rule. Create a detection rule.
func (a *SecurityMonitoringApi) DeleteSecurityFilter(ctx _context.Context, securityFilterId string) (*_nethttp.Response, error)
DeleteSecurityFilter Delete a security filter. Delete a specific security filter.
func (a *SecurityMonitoringApi) DeleteSecurityMonitoringRule(ctx _context.Context, ruleId string) (*_nethttp.Response, error)
DeleteSecurityMonitoringRule Delete an existing rule. Delete an existing rule. Default rules cannot be deleted.
func (a *SecurityMonitoringApi) EditSecurityMonitoringSignalAssignee(ctx _context.Context, signalId string, body SecurityMonitoringSignalAssigneeUpdateRequest) (SecurityMonitoringSignalTriageUpdateResponse, *_nethttp.Response, error)
EditSecurityMonitoringSignalAssignee Modify the triage assignee of a security signal. Modify the triage assignee of a security signal.
func (a *SecurityMonitoringApi) EditSecurityMonitoringSignalIncidents(ctx _context.Context, signalId string, body SecurityMonitoringSignalIncidentsUpdateRequest) (SecurityMonitoringSignalTriageUpdateResponse, *_nethttp.Response, error)
EditSecurityMonitoringSignalIncidents Change the related incidents of a security signal. Change the related incidents for a security signal.
func (a *SecurityMonitoringApi) EditSecurityMonitoringSignalState(ctx _context.Context, signalId string, body SecurityMonitoringSignalStateUpdateRequest) (SecurityMonitoringSignalTriageUpdateResponse, *_nethttp.Response, error)
EditSecurityMonitoringSignalState Change the triage state of a security signal. Change the triage state of a security signal.
func (a *SecurityMonitoringApi) GetFinding(ctx _context.Context, findingId string, o ...GetFindingOptionalParameters) (GetFindingResponse, *_nethttp.Response, error)
GetFinding Get a finding. Returns a single finding with message and resource configuration.
func (a *SecurityMonitoringApi) GetSecurityFilter(ctx _context.Context, securityFilterId string) (SecurityFilterResponse, *_nethttp.Response, error)
GetSecurityFilter Get a security filter. Get the details of a specific security filter.
See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples.
func (a *SecurityMonitoringApi) GetSecurityMonitoringRule(ctx _context.Context, ruleId string) (SecurityMonitoringRuleResponse, *_nethttp.Response, error)
GetSecurityMonitoringRule Get a rule's details. Get a rule's details.
func (a *SecurityMonitoringApi) GetSecurityMonitoringSignal(ctx _context.Context, signalId string) (SecurityMonitoringSignal, *_nethttp.Response, error)
GetSecurityMonitoringSignal Get a signal's details. Get a signal's details.
func (a *SecurityMonitoringApi) ListFindings(ctx _context.Context, o ...ListFindingsOptionalParameters) (ListFindingsResponse, *_nethttp.Response, error)
ListFindings List findings. Get a list of CSPM findings.
### Filtering
Filters can be applied by appending query parameters to the URL.
Here, `attribute_key` can be any of the filter keys described further below.
Query parameters of type `integer` support comparison operators (`>`, `>=`, `<`, `<=`). This is particularly useful when filtering by `evaluation_changed_at` or `resource_discovery_timestamp`. For example: `?filter[evaluation_changed_at]=>20123123121`.
You can also use the negation operator on strings. For example, use `filter[resource_type]=-aws*` to filter for any non-AWS resources.
The operator must come after the equal sign. For example, to filter with the `>=` operator, add the operator after the equal sign: `filter[evaluation_changed_at]=>=1678809373257`.
Query parameters must be only among the documented ones and with values of correct types. Duplicated query parameters (e.g. `filter[status]=low&filter[status]=info`) are not allowed.
### Response
The response includes an array of finding objects, pagination metadata, and a count of items that match the query.
Each finding object contains the following:
- The finding ID that can be used in a `GetFinding` request to retrieve the full finding details. - Core attributes, including status, evaluation, high-level resource details, muted state, and rule details. - `evaluation_changed_at` and `resource_discovery_date` time stamps. - An array of associated tags.
func (a *SecurityMonitoringApi) ListFindingsWithPagination(ctx _context.Context, o ...ListFindingsOptionalParameters) (<-chan datadog.PaginationResult[Finding], func())
ListFindingsWithPagination provides a paginated version of ListFindings returning a channel with all items.
func (a *SecurityMonitoringApi) ListSecurityFilters(ctx _context.Context) (SecurityFiltersResponse, *_nethttp.Response, error)
ListSecurityFilters Get all security filters. Get the list of configured security filters with their definitions.
func (a *SecurityMonitoringApi) ListSecurityMonitoringRules(ctx _context.Context, o ...ListSecurityMonitoringRulesOptionalParameters) (SecurityMonitoringListRulesResponse, *_nethttp.Response, error)
ListSecurityMonitoringRules List rules. List rules.
func (a *SecurityMonitoringApi) ListSecurityMonitoringSignals(ctx _context.Context, o ...ListSecurityMonitoringSignalsOptionalParameters) (SecurityMonitoringSignalsListResponse, *_nethttp.Response, error)
ListSecurityMonitoringSignals Get a quick list of security signals. The list endpoint returns security signals that match a search query. Both this endpoint and the POST endpoint can be used interchangeably when listing security signals.
func (a *SecurityMonitoringApi) ListSecurityMonitoringSignalsWithPagination(ctx _context.Context, o ...ListSecurityMonitoringSignalsOptionalParameters) (<-chan datadog.PaginationResult[SecurityMonitoringSignal], func())
ListSecurityMonitoringSignalsWithPagination provides a paginated version of ListSecurityMonitoringSignals returning a channel with all items.
func (a *SecurityMonitoringApi) SearchSecurityMonitoringSignals(ctx _context.Context, o ...SearchSecurityMonitoringSignalsOptionalParameters) (SecurityMonitoringSignalsListResponse, *_nethttp.Response, error)
SearchSecurityMonitoringSignals Get a list of security signals. Returns security signals that match a search query. Both this endpoint and the GET endpoint can be used interchangeably for listing security signals.
func (a *SecurityMonitoringApi) SearchSecurityMonitoringSignalsWithPagination(ctx _context.Context, o ...SearchSecurityMonitoringSignalsOptionalParameters) (<-chan datadog.PaginationResult[SecurityMonitoringSignal], func())
SearchSecurityMonitoringSignalsWithPagination provides a paginated version of SearchSecurityMonitoringSignals returning a channel with all items.
func (a *SecurityMonitoringApi) UpdateFinding(ctx _context.Context, findingId string, body MuteFindingRequest) (MuteFindingResponse, *_nethttp.Response, error)
UpdateFinding Mute or unmute a finding. Mute or unmute a specific finding. The API returns the updated finding object when the request is successful.
func (a *SecurityMonitoringApi) UpdateSecurityFilter(ctx _context.Context, securityFilterId string, body SecurityFilterUpdateRequest) (SecurityFilterResponse, *_nethttp.Response, error)
UpdateSecurityFilter Update a security filter. Update a specific security filter. Returns the security filter object when the request is successful.
func (a *SecurityMonitoringApi) UpdateSecurityMonitoringRule(ctx _context.Context, ruleId string, body SecurityMonitoringRuleUpdatePayload) (SecurityMonitoringRuleResponse, *_nethttp.Response, error)
UpdateSecurityMonitoringRule Update an existing rule. Update an existing rule. When updating `cases`, `queries` or `options`, the whole field must be included. For example, when modifying a query all queries must be included. Default rules can only be updated to be enabled and to change notifications.
SecurityMonitoringFilter The rule's suppression filter.
type SecurityMonitoringFilter struct {
// The type of filtering action.
Action *SecurityMonitoringFilterAction `json:"action,omitempty"`
// Query for selecting logs to apply the filtering action.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringFilter() *SecurityMonitoringFilter
NewSecurityMonitoringFilter instantiates a new SecurityMonitoringFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringFilterWithDefaults() *SecurityMonitoringFilter
NewSecurityMonitoringFilterWithDefaults instantiates a new SecurityMonitoringFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringFilter) GetAction() SecurityMonitoringFilterAction
GetAction returns the Action field value if set, zero value otherwise.
func (o *SecurityMonitoringFilter) GetActionOk() (*SecurityMonitoringFilterAction, bool)
GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityMonitoringFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringFilter) HasAction() bool
HasAction returns a boolean if a field has been set.
func (o *SecurityMonitoringFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o SecurityMonitoringFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringFilter) SetAction(v SecurityMonitoringFilterAction)
SetAction gets a reference to the given SecurityMonitoringFilterAction and assigns it to the Action field.
func (o *SecurityMonitoringFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityMonitoringFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringFilterAction The type of filtering action.
type SecurityMonitoringFilterAction string
List of SecurityMonitoringFilterAction.
const (
SECURITYMONITORINGFILTERACTION_REQUIRE SecurityMonitoringFilterAction = "require"
SECURITYMONITORINGFILTERACTION_SUPPRESS SecurityMonitoringFilterAction = "suppress"
)
func NewSecurityMonitoringFilterActionFromValue(v string) (*SecurityMonitoringFilterAction, error)
NewSecurityMonitoringFilterActionFromValue returns a pointer to a valid SecurityMonitoringFilterAction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringFilterAction) GetAllowedValues() []SecurityMonitoringFilterAction
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringFilterAction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringFilterAction) Ptr() *SecurityMonitoringFilterAction
Ptr returns reference to SecurityMonitoringFilterAction value.
func (v *SecurityMonitoringFilterAction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringListRulesResponse List of rules.
type SecurityMonitoringListRulesResponse struct {
// Array containing the list of rules.
Data []SecurityMonitoringRuleResponse `json:"data,omitempty"`
// Object describing meta attributes of response.
Meta *ResponseMetaAttributes `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringListRulesResponse() *SecurityMonitoringListRulesResponse
NewSecurityMonitoringListRulesResponse instantiates a new SecurityMonitoringListRulesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringListRulesResponseWithDefaults() *SecurityMonitoringListRulesResponse
NewSecurityMonitoringListRulesResponseWithDefaults instantiates a new SecurityMonitoringListRulesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringListRulesResponse) GetData() []SecurityMonitoringRuleResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *SecurityMonitoringListRulesResponse) GetDataOk() (*[]SecurityMonitoringRuleResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringListRulesResponse) GetMeta() ResponseMetaAttributes
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SecurityMonitoringListRulesResponse) GetMetaOk() (*ResponseMetaAttributes, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringListRulesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SecurityMonitoringListRulesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SecurityMonitoringListRulesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringListRulesResponse) SetData(v []SecurityMonitoringRuleResponse)
SetData gets a reference to the given []SecurityMonitoringRuleResponse and assigns it to the Data field.
func (o *SecurityMonitoringListRulesResponse) SetMeta(v ResponseMetaAttributes)
SetMeta gets a reference to the given ResponseMetaAttributes and assigns it to the Meta field.
func (o *SecurityMonitoringListRulesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleCase Case when signal is generated.
type SecurityMonitoringRuleCase struct {
// A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated
// based on the event counts in the previously defined queries.
Condition *string `json:"condition,omitempty"`
// Name of the case.
Name *string `json:"name,omitempty"`
// Notification targets for each rule case.
Notifications []string `json:"notifications,omitempty"`
// Severity of the Security Signal.
Status *SecurityMonitoringRuleSeverity `json:"status,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleCase() *SecurityMonitoringRuleCase
NewSecurityMonitoringRuleCase instantiates a new SecurityMonitoringRuleCase object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleCaseWithDefaults() *SecurityMonitoringRuleCase
NewSecurityMonitoringRuleCaseWithDefaults instantiates a new SecurityMonitoringRuleCase object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleCase) GetCondition() string
GetCondition returns the Condition field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCase) GetConditionOk() (*string, bool)
GetConditionOk returns a tuple with the Condition field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCase) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCase) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCase) GetNotifications() []string
GetNotifications returns the Notifications field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCase) GetNotificationsOk() (*[]string, bool)
GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCase) GetStatus() SecurityMonitoringRuleSeverity
GetStatus returns the Status field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCase) GetStatusOk() (*SecurityMonitoringRuleSeverity, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCase) HasCondition() bool
HasCondition returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCase) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCase) HasNotifications() bool
HasNotifications returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCase) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o SecurityMonitoringRuleCase) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleCase) SetCondition(v string)
SetCondition gets a reference to the given string and assigns it to the Condition field.
func (o *SecurityMonitoringRuleCase) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringRuleCase) SetNotifications(v []string)
SetNotifications gets a reference to the given []string and assigns it to the Notifications field.
func (o *SecurityMonitoringRuleCase) SetStatus(v SecurityMonitoringRuleSeverity)
SetStatus gets a reference to the given SecurityMonitoringRuleSeverity and assigns it to the Status field.
func (o *SecurityMonitoringRuleCase) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleCaseCreate Case when signal is generated.
type SecurityMonitoringRuleCaseCreate struct {
// A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated
// based on the event counts in the previously defined queries.
Condition *string `json:"condition,omitempty"`
// Name of the case.
Name *string `json:"name,omitempty"`
// Notification targets for each rule case.
Notifications []string `json:"notifications,omitempty"`
// Severity of the Security Signal.
Status SecurityMonitoringRuleSeverity `json:"status"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleCaseCreate(status SecurityMonitoringRuleSeverity) *SecurityMonitoringRuleCaseCreate
NewSecurityMonitoringRuleCaseCreate instantiates a new SecurityMonitoringRuleCaseCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleCaseCreateWithDefaults() *SecurityMonitoringRuleCaseCreate
NewSecurityMonitoringRuleCaseCreateWithDefaults instantiates a new SecurityMonitoringRuleCaseCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleCaseCreate) GetCondition() string
GetCondition returns the Condition field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCaseCreate) GetConditionOk() (*string, bool)
GetConditionOk returns a tuple with the Condition field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCaseCreate) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCaseCreate) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCaseCreate) GetNotifications() []string
GetNotifications returns the Notifications field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCaseCreate) GetNotificationsOk() (*[]string, bool)
GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCaseCreate) GetStatus() SecurityMonitoringRuleSeverity
GetStatus returns the Status field value.
func (o *SecurityMonitoringRuleCaseCreate) GetStatusOk() (*SecurityMonitoringRuleSeverity, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCaseCreate) HasCondition() bool
HasCondition returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCaseCreate) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCaseCreate) HasNotifications() bool
HasNotifications returns a boolean if a field has been set.
func (o SecurityMonitoringRuleCaseCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleCaseCreate) SetCondition(v string)
SetCondition gets a reference to the given string and assigns it to the Condition field.
func (o *SecurityMonitoringRuleCaseCreate) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringRuleCaseCreate) SetNotifications(v []string)
SetNotifications gets a reference to the given []string and assigns it to the Notifications field.
func (o *SecurityMonitoringRuleCaseCreate) SetStatus(v SecurityMonitoringRuleSeverity)
SetStatus sets field value.
func (o *SecurityMonitoringRuleCaseCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleCreatePayload - Create a new rule.
type SecurityMonitoringRuleCreatePayload struct {
SecurityMonitoringStandardRuleCreatePayload *SecurityMonitoringStandardRuleCreatePayload
SecurityMonitoringSignalRuleCreatePayload *SecurityMonitoringSignalRuleCreatePayload
CloudConfigurationRuleCreatePayload *CloudConfigurationRuleCreatePayload
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func CloudConfigurationRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload(v *CloudConfigurationRuleCreatePayload) SecurityMonitoringRuleCreatePayload
CloudConfigurationRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload is a convenience function that returns CloudConfigurationRuleCreatePayload wrapped in SecurityMonitoringRuleCreatePayload.
func SecurityMonitoringSignalRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload(v *SecurityMonitoringSignalRuleCreatePayload) SecurityMonitoringRuleCreatePayload
SecurityMonitoringSignalRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload is a convenience function that returns SecurityMonitoringSignalRuleCreatePayload wrapped in SecurityMonitoringRuleCreatePayload.
func SecurityMonitoringStandardRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload(v *SecurityMonitoringStandardRuleCreatePayload) SecurityMonitoringRuleCreatePayload
SecurityMonitoringStandardRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload is a convenience function that returns SecurityMonitoringStandardRuleCreatePayload wrapped in SecurityMonitoringRuleCreatePayload.
func (obj *SecurityMonitoringRuleCreatePayload) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SecurityMonitoringRuleCreatePayload) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SecurityMonitoringRuleCreatePayload) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SecurityMonitoringRuleDetectionMethod The detection method.
type SecurityMonitoringRuleDetectionMethod string
List of SecurityMonitoringRuleDetectionMethod.
const (
SECURITYMONITORINGRULEDETECTIONMETHOD_THRESHOLD SecurityMonitoringRuleDetectionMethod = "threshold"
SECURITYMONITORINGRULEDETECTIONMETHOD_NEW_VALUE SecurityMonitoringRuleDetectionMethod = "new_value"
SECURITYMONITORINGRULEDETECTIONMETHOD_ANOMALY_DETECTION SecurityMonitoringRuleDetectionMethod = "anomaly_detection"
SECURITYMONITORINGRULEDETECTIONMETHOD_IMPOSSIBLE_TRAVEL SecurityMonitoringRuleDetectionMethod = "impossible_travel"
SECURITYMONITORINGRULEDETECTIONMETHOD_HARDCODED SecurityMonitoringRuleDetectionMethod = "hardcoded"
SECURITYMONITORINGRULEDETECTIONMETHOD_THIRD_PARTY SecurityMonitoringRuleDetectionMethod = "third_party"
)
func NewSecurityMonitoringRuleDetectionMethodFromValue(v string) (*SecurityMonitoringRuleDetectionMethod, error)
NewSecurityMonitoringRuleDetectionMethodFromValue returns a pointer to a valid SecurityMonitoringRuleDetectionMethod for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleDetectionMethod) GetAllowedValues() []SecurityMonitoringRuleDetectionMethod
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleDetectionMethod) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleDetectionMethod) Ptr() *SecurityMonitoringRuleDetectionMethod
Ptr returns reference to SecurityMonitoringRuleDetectionMethod value.
func (v *SecurityMonitoringRuleDetectionMethod) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleEvaluationWindow A time window is specified to match when at least one of the cases matches true. This is a sliding window and evaluates in real time.
type SecurityMonitoringRuleEvaluationWindow int32
List of SecurityMonitoringRuleEvaluationWindow.
const (
SECURITYMONITORINGRULEEVALUATIONWINDOW_ZERO_MINUTES SecurityMonitoringRuleEvaluationWindow = 0
SECURITYMONITORINGRULEEVALUATIONWINDOW_ONE_MINUTE SecurityMonitoringRuleEvaluationWindow = 60
SECURITYMONITORINGRULEEVALUATIONWINDOW_FIVE_MINUTES SecurityMonitoringRuleEvaluationWindow = 300
SECURITYMONITORINGRULEEVALUATIONWINDOW_TEN_MINUTES SecurityMonitoringRuleEvaluationWindow = 600
SECURITYMONITORINGRULEEVALUATIONWINDOW_FIFTEEN_MINUTES SecurityMonitoringRuleEvaluationWindow = 900
SECURITYMONITORINGRULEEVALUATIONWINDOW_THIRTY_MINUTES SecurityMonitoringRuleEvaluationWindow = 1800
SECURITYMONITORINGRULEEVALUATIONWINDOW_ONE_HOUR SecurityMonitoringRuleEvaluationWindow = 3600
SECURITYMONITORINGRULEEVALUATIONWINDOW_TWO_HOURS SecurityMonitoringRuleEvaluationWindow = 7200
)
func NewSecurityMonitoringRuleEvaluationWindowFromValue(v int32) (*SecurityMonitoringRuleEvaluationWindow, error)
NewSecurityMonitoringRuleEvaluationWindowFromValue returns a pointer to a valid SecurityMonitoringRuleEvaluationWindow for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleEvaluationWindow) GetAllowedValues() []SecurityMonitoringRuleEvaluationWindow
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleEvaluationWindow) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleEvaluationWindow) Ptr() *SecurityMonitoringRuleEvaluationWindow
Ptr returns reference to SecurityMonitoringRuleEvaluationWindow value.
func (v *SecurityMonitoringRuleEvaluationWindow) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleHardcodedEvaluatorType Hardcoded evaluator type.
type SecurityMonitoringRuleHardcodedEvaluatorType string
List of SecurityMonitoringRuleHardcodedEvaluatorType.
const (
SECURITYMONITORINGRULEHARDCODEDEVALUATORTYPE_LOG4SHELL SecurityMonitoringRuleHardcodedEvaluatorType = "log4shell"
)
func NewSecurityMonitoringRuleHardcodedEvaluatorTypeFromValue(v string) (*SecurityMonitoringRuleHardcodedEvaluatorType, error)
NewSecurityMonitoringRuleHardcodedEvaluatorTypeFromValue returns a pointer to a valid SecurityMonitoringRuleHardcodedEvaluatorType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleHardcodedEvaluatorType) GetAllowedValues() []SecurityMonitoringRuleHardcodedEvaluatorType
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleHardcodedEvaluatorType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleHardcodedEvaluatorType) Ptr() *SecurityMonitoringRuleHardcodedEvaluatorType
Ptr returns reference to SecurityMonitoringRuleHardcodedEvaluatorType value.
func (v *SecurityMonitoringRuleHardcodedEvaluatorType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleImpossibleTravelOptions Options on impossible travel rules.
type SecurityMonitoringRuleImpossibleTravelOptions struct {
// If true, signals are suppressed for the first 24 hours. In that time, Datadog learns the user's regular
// access locations. This can be helpful to reduce noise and infer VPN usage or credentialed API access.
BaselineUserLocations *bool `json:"baselineUserLocations,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleImpossibleTravelOptions() *SecurityMonitoringRuleImpossibleTravelOptions
NewSecurityMonitoringRuleImpossibleTravelOptions instantiates a new SecurityMonitoringRuleImpossibleTravelOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleImpossibleTravelOptionsWithDefaults() *SecurityMonitoringRuleImpossibleTravelOptions
NewSecurityMonitoringRuleImpossibleTravelOptionsWithDefaults instantiates a new SecurityMonitoringRuleImpossibleTravelOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) GetBaselineUserLocations() bool
GetBaselineUserLocations returns the BaselineUserLocations field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) GetBaselineUserLocationsOk() (*bool, bool)
GetBaselineUserLocationsOk returns a tuple with the BaselineUserLocations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) HasBaselineUserLocations() bool
HasBaselineUserLocations returns a boolean if a field has been set.
func (o SecurityMonitoringRuleImpossibleTravelOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) SetBaselineUserLocations(v bool)
SetBaselineUserLocations gets a reference to the given bool and assigns it to the BaselineUserLocations field.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleKeepAlive Once a signal is generated, the signal will remain “open” if a case is matched at least once within this keep alive window.
type SecurityMonitoringRuleKeepAlive int32
List of SecurityMonitoringRuleKeepAlive.
const (
SECURITYMONITORINGRULEKEEPALIVE_ZERO_MINUTES SecurityMonitoringRuleKeepAlive = 0
SECURITYMONITORINGRULEKEEPALIVE_ONE_MINUTE SecurityMonitoringRuleKeepAlive = 60
SECURITYMONITORINGRULEKEEPALIVE_FIVE_MINUTES SecurityMonitoringRuleKeepAlive = 300
SECURITYMONITORINGRULEKEEPALIVE_TEN_MINUTES SecurityMonitoringRuleKeepAlive = 600
SECURITYMONITORINGRULEKEEPALIVE_FIFTEEN_MINUTES SecurityMonitoringRuleKeepAlive = 900
SECURITYMONITORINGRULEKEEPALIVE_THIRTY_MINUTES SecurityMonitoringRuleKeepAlive = 1800
SECURITYMONITORINGRULEKEEPALIVE_ONE_HOUR SecurityMonitoringRuleKeepAlive = 3600
SECURITYMONITORINGRULEKEEPALIVE_TWO_HOURS SecurityMonitoringRuleKeepAlive = 7200
SECURITYMONITORINGRULEKEEPALIVE_THREE_HOURS SecurityMonitoringRuleKeepAlive = 10800
SECURITYMONITORINGRULEKEEPALIVE_SIX_HOURS SecurityMonitoringRuleKeepAlive = 21600
)
func NewSecurityMonitoringRuleKeepAliveFromValue(v int32) (*SecurityMonitoringRuleKeepAlive, error)
NewSecurityMonitoringRuleKeepAliveFromValue returns a pointer to a valid SecurityMonitoringRuleKeepAlive for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleKeepAlive) GetAllowedValues() []SecurityMonitoringRuleKeepAlive
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleKeepAlive) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleKeepAlive) Ptr() *SecurityMonitoringRuleKeepAlive
Ptr returns reference to SecurityMonitoringRuleKeepAlive value.
func (v *SecurityMonitoringRuleKeepAlive) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleMaxSignalDuration A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. This time is calculated from the first seen timestamp.
type SecurityMonitoringRuleMaxSignalDuration int32
List of SecurityMonitoringRuleMaxSignalDuration.
const (
SECURITYMONITORINGRULEMAXSIGNALDURATION_ZERO_MINUTES SecurityMonitoringRuleMaxSignalDuration = 0
SECURITYMONITORINGRULEMAXSIGNALDURATION_ONE_MINUTE SecurityMonitoringRuleMaxSignalDuration = 60
SECURITYMONITORINGRULEMAXSIGNALDURATION_FIVE_MINUTES SecurityMonitoringRuleMaxSignalDuration = 300
SECURITYMONITORINGRULEMAXSIGNALDURATION_TEN_MINUTES SecurityMonitoringRuleMaxSignalDuration = 600
SECURITYMONITORINGRULEMAXSIGNALDURATION_FIFTEEN_MINUTES SecurityMonitoringRuleMaxSignalDuration = 900
SECURITYMONITORINGRULEMAXSIGNALDURATION_THIRTY_MINUTES SecurityMonitoringRuleMaxSignalDuration = 1800
SECURITYMONITORINGRULEMAXSIGNALDURATION_ONE_HOUR SecurityMonitoringRuleMaxSignalDuration = 3600
SECURITYMONITORINGRULEMAXSIGNALDURATION_TWO_HOURS SecurityMonitoringRuleMaxSignalDuration = 7200
SECURITYMONITORINGRULEMAXSIGNALDURATION_THREE_HOURS SecurityMonitoringRuleMaxSignalDuration = 10800
SECURITYMONITORINGRULEMAXSIGNALDURATION_SIX_HOURS SecurityMonitoringRuleMaxSignalDuration = 21600
SECURITYMONITORINGRULEMAXSIGNALDURATION_TWELVE_HOURS SecurityMonitoringRuleMaxSignalDuration = 43200
SECURITYMONITORINGRULEMAXSIGNALDURATION_ONE_DAY SecurityMonitoringRuleMaxSignalDuration = 86400
)
func NewSecurityMonitoringRuleMaxSignalDurationFromValue(v int32) (*SecurityMonitoringRuleMaxSignalDuration, error)
NewSecurityMonitoringRuleMaxSignalDurationFromValue returns a pointer to a valid SecurityMonitoringRuleMaxSignalDuration for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleMaxSignalDuration) GetAllowedValues() []SecurityMonitoringRuleMaxSignalDuration
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleMaxSignalDuration) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleMaxSignalDuration) Ptr() *SecurityMonitoringRuleMaxSignalDuration
Ptr returns reference to SecurityMonitoringRuleMaxSignalDuration value.
func (v *SecurityMonitoringRuleMaxSignalDuration) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptions Options on new value rules.
type SecurityMonitoringRuleNewValueOptions struct {
// The duration in days after which a learned value is forgotten.
ForgetAfter *SecurityMonitoringRuleNewValueOptionsForgetAfter `json:"forgetAfter,omitempty"`
// The duration in days during which values are learned, and after which signals will be generated for values that
// weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
LearningDuration *SecurityMonitoringRuleNewValueOptionsLearningDuration `json:"learningDuration,omitempty"`
// The learning method used to determine when signals should be generated for values that weren't learned.
LearningMethod *SecurityMonitoringRuleNewValueOptionsLearningMethod `json:"learningMethod,omitempty"`
// A number of occurrences after which signals will be generated for values that weren't learned.
LearningThreshold *SecurityMonitoringRuleNewValueOptionsLearningThreshold `json:"learningThreshold,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleNewValueOptions() *SecurityMonitoringRuleNewValueOptions
NewSecurityMonitoringRuleNewValueOptions instantiates a new SecurityMonitoringRuleNewValueOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleNewValueOptionsWithDefaults() *SecurityMonitoringRuleNewValueOptions
NewSecurityMonitoringRuleNewValueOptionsWithDefaults instantiates a new SecurityMonitoringRuleNewValueOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleNewValueOptions) GetForgetAfter() SecurityMonitoringRuleNewValueOptionsForgetAfter
GetForgetAfter returns the ForgetAfter field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleNewValueOptions) GetForgetAfterOk() (*SecurityMonitoringRuleNewValueOptionsForgetAfter, bool)
GetForgetAfterOk returns a tuple with the ForgetAfter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningDuration() SecurityMonitoringRuleNewValueOptionsLearningDuration
GetLearningDuration returns the LearningDuration field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningDurationOk() (*SecurityMonitoringRuleNewValueOptionsLearningDuration, bool)
GetLearningDurationOk returns a tuple with the LearningDuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningMethod() SecurityMonitoringRuleNewValueOptionsLearningMethod
GetLearningMethod returns the LearningMethod field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningMethodOk() (*SecurityMonitoringRuleNewValueOptionsLearningMethod, bool)
GetLearningMethodOk returns a tuple with the LearningMethod field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningThreshold() SecurityMonitoringRuleNewValueOptionsLearningThreshold
GetLearningThreshold returns the LearningThreshold field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningThresholdOk() (*SecurityMonitoringRuleNewValueOptionsLearningThreshold, bool)
GetLearningThresholdOk returns a tuple with the LearningThreshold field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleNewValueOptions) HasForgetAfter() bool
HasForgetAfter returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleNewValueOptions) HasLearningDuration() bool
HasLearningDuration returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleNewValueOptions) HasLearningMethod() bool
HasLearningMethod returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleNewValueOptions) HasLearningThreshold() bool
HasLearningThreshold returns a boolean if a field has been set.
func (o SecurityMonitoringRuleNewValueOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleNewValueOptions) SetForgetAfter(v SecurityMonitoringRuleNewValueOptionsForgetAfter)
SetForgetAfter gets a reference to the given SecurityMonitoringRuleNewValueOptionsForgetAfter and assigns it to the ForgetAfter field.
func (o *SecurityMonitoringRuleNewValueOptions) SetLearningDuration(v SecurityMonitoringRuleNewValueOptionsLearningDuration)
SetLearningDuration gets a reference to the given SecurityMonitoringRuleNewValueOptionsLearningDuration and assigns it to the LearningDuration field.
func (o *SecurityMonitoringRuleNewValueOptions) SetLearningMethod(v SecurityMonitoringRuleNewValueOptionsLearningMethod)
SetLearningMethod gets a reference to the given SecurityMonitoringRuleNewValueOptionsLearningMethod and assigns it to the LearningMethod field.
func (o *SecurityMonitoringRuleNewValueOptions) SetLearningThreshold(v SecurityMonitoringRuleNewValueOptionsLearningThreshold)
SetLearningThreshold gets a reference to the given SecurityMonitoringRuleNewValueOptionsLearningThreshold and assigns it to the LearningThreshold field.
func (o *SecurityMonitoringRuleNewValueOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptionsForgetAfter The duration in days after which a learned value is forgotten.
type SecurityMonitoringRuleNewValueOptionsForgetAfter int32
List of SecurityMonitoringRuleNewValueOptionsForgetAfter.
const (
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_ONE_DAY SecurityMonitoringRuleNewValueOptionsForgetAfter = 1
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_TWO_DAYS SecurityMonitoringRuleNewValueOptionsForgetAfter = 2
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_ONE_WEEK SecurityMonitoringRuleNewValueOptionsForgetAfter = 7
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_TWO_WEEKS SecurityMonitoringRuleNewValueOptionsForgetAfter = 14
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_THREE_WEEKS SecurityMonitoringRuleNewValueOptionsForgetAfter = 21
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_FOUR_WEEKS SecurityMonitoringRuleNewValueOptionsForgetAfter = 28
)
func NewSecurityMonitoringRuleNewValueOptionsForgetAfterFromValue(v int32) (*SecurityMonitoringRuleNewValueOptionsForgetAfter, error)
NewSecurityMonitoringRuleNewValueOptionsForgetAfterFromValue returns a pointer to a valid SecurityMonitoringRuleNewValueOptionsForgetAfter for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleNewValueOptionsForgetAfter) GetAllowedValues() []SecurityMonitoringRuleNewValueOptionsForgetAfter
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleNewValueOptionsForgetAfter) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleNewValueOptionsForgetAfter) Ptr() *SecurityMonitoringRuleNewValueOptionsForgetAfter
Ptr returns reference to SecurityMonitoringRuleNewValueOptionsForgetAfter value.
func (v *SecurityMonitoringRuleNewValueOptionsForgetAfter) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptionsLearningDuration The duration in days during which values are learned, and after which signals will be generated for values that weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
type SecurityMonitoringRuleNewValueOptionsLearningDuration int32
List of SecurityMonitoringRuleNewValueOptionsLearningDuration.
const (
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGDURATION_ZERO_DAYS SecurityMonitoringRuleNewValueOptionsLearningDuration = 0
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGDURATION_ONE_DAY SecurityMonitoringRuleNewValueOptionsLearningDuration = 1
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGDURATION_SEVEN_DAYS SecurityMonitoringRuleNewValueOptionsLearningDuration = 7
)
func NewSecurityMonitoringRuleNewValueOptionsLearningDurationFromValue(v int32) (*SecurityMonitoringRuleNewValueOptionsLearningDuration, error)
NewSecurityMonitoringRuleNewValueOptionsLearningDurationFromValue returns a pointer to a valid SecurityMonitoringRuleNewValueOptionsLearningDuration for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleNewValueOptionsLearningDuration) GetAllowedValues() []SecurityMonitoringRuleNewValueOptionsLearningDuration
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleNewValueOptionsLearningDuration) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleNewValueOptionsLearningDuration) Ptr() *SecurityMonitoringRuleNewValueOptionsLearningDuration
Ptr returns reference to SecurityMonitoringRuleNewValueOptionsLearningDuration value.
func (v *SecurityMonitoringRuleNewValueOptionsLearningDuration) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptionsLearningMethod The learning method used to determine when signals should be generated for values that weren't learned.
type SecurityMonitoringRuleNewValueOptionsLearningMethod string
List of SecurityMonitoringRuleNewValueOptionsLearningMethod.
const (
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGMETHOD_DURATION SecurityMonitoringRuleNewValueOptionsLearningMethod = "duration"
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGMETHOD_THRESHOLD SecurityMonitoringRuleNewValueOptionsLearningMethod = "threshold"
)
func NewSecurityMonitoringRuleNewValueOptionsLearningMethodFromValue(v string) (*SecurityMonitoringRuleNewValueOptionsLearningMethod, error)
NewSecurityMonitoringRuleNewValueOptionsLearningMethodFromValue returns a pointer to a valid SecurityMonitoringRuleNewValueOptionsLearningMethod for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleNewValueOptionsLearningMethod) GetAllowedValues() []SecurityMonitoringRuleNewValueOptionsLearningMethod
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleNewValueOptionsLearningMethod) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleNewValueOptionsLearningMethod) Ptr() *SecurityMonitoringRuleNewValueOptionsLearningMethod
Ptr returns reference to SecurityMonitoringRuleNewValueOptionsLearningMethod value.
func (v *SecurityMonitoringRuleNewValueOptionsLearningMethod) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptionsLearningThreshold A number of occurrences after which signals will be generated for values that weren't learned.
type SecurityMonitoringRuleNewValueOptionsLearningThreshold int32
List of SecurityMonitoringRuleNewValueOptionsLearningThreshold.
const (
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGTHRESHOLD_ZERO_OCCURRENCES SecurityMonitoringRuleNewValueOptionsLearningThreshold = 0
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGTHRESHOLD_ONE_OCCURRENCE SecurityMonitoringRuleNewValueOptionsLearningThreshold = 1
)
func NewSecurityMonitoringRuleNewValueOptionsLearningThresholdFromValue(v int32) (*SecurityMonitoringRuleNewValueOptionsLearningThreshold, error)
NewSecurityMonitoringRuleNewValueOptionsLearningThresholdFromValue returns a pointer to a valid SecurityMonitoringRuleNewValueOptionsLearningThreshold for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleNewValueOptionsLearningThreshold) GetAllowedValues() []SecurityMonitoringRuleNewValueOptionsLearningThreshold
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleNewValueOptionsLearningThreshold) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleNewValueOptionsLearningThreshold) Ptr() *SecurityMonitoringRuleNewValueOptionsLearningThreshold
Ptr returns reference to SecurityMonitoringRuleNewValueOptionsLearningThreshold value.
func (v *SecurityMonitoringRuleNewValueOptionsLearningThreshold) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleOptions Options on rules.
type SecurityMonitoringRuleOptions struct {
// Options for cloud_configuration rules.
// Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules.
//
ComplianceRuleOptions *CloudConfigurationComplianceRuleOptions `json:"complianceRuleOptions,omitempty"`
// If true, signals in non-production environments have a lower severity than what is defined by the rule case, which can reduce signal noise.
// The severity is decreased by one level: `CRITICAL` in production becomes `HIGH` in non-production, `HIGH` becomes `MEDIUM` and so on. `INFO` remains `INFO`.
// The decrement is applied when the environment tag of the signal starts with `staging`, `test` or `dev`.
DecreaseCriticalityBasedOnEnv *bool `json:"decreaseCriticalityBasedOnEnv,omitempty"`
// The detection method.
DetectionMethod *SecurityMonitoringRuleDetectionMethod `json:"detectionMethod,omitempty"`
// A time window is specified to match when at least one of the cases matches true. This is a sliding window
// and evaluates in real time.
EvaluationWindow *SecurityMonitoringRuleEvaluationWindow `json:"evaluationWindow,omitempty"`
// Hardcoded evaluator type.
HardcodedEvaluatorType *SecurityMonitoringRuleHardcodedEvaluatorType `json:"hardcodedEvaluatorType,omitempty"`
// Options on impossible travel rules.
ImpossibleTravelOptions *SecurityMonitoringRuleImpossibleTravelOptions `json:"impossibleTravelOptions,omitempty"`
// Once a signal is generated, the signal will remain “open” if a case is matched at least once within
// this keep alive window.
KeepAlive *SecurityMonitoringRuleKeepAlive `json:"keepAlive,omitempty"`
// A signal will “close” regardless of the query being matched once the time exceeds the maximum duration.
// This time is calculated from the first seen timestamp.
MaxSignalDuration *SecurityMonitoringRuleMaxSignalDuration `json:"maxSignalDuration,omitempty"`
// Options on new value rules.
NewValueOptions *SecurityMonitoringRuleNewValueOptions `json:"newValueOptions,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleOptions() *SecurityMonitoringRuleOptions
NewSecurityMonitoringRuleOptions instantiates a new SecurityMonitoringRuleOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleOptionsWithDefaults() *SecurityMonitoringRuleOptions
NewSecurityMonitoringRuleOptionsWithDefaults instantiates a new SecurityMonitoringRuleOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleOptions) GetComplianceRuleOptions() CloudConfigurationComplianceRuleOptions
GetComplianceRuleOptions returns the ComplianceRuleOptions field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetComplianceRuleOptionsOk() (*CloudConfigurationComplianceRuleOptions, bool)
GetComplianceRuleOptionsOk returns a tuple with the ComplianceRuleOptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetDecreaseCriticalityBasedOnEnv() bool
GetDecreaseCriticalityBasedOnEnv returns the DecreaseCriticalityBasedOnEnv field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetDecreaseCriticalityBasedOnEnvOk() (*bool, bool)
GetDecreaseCriticalityBasedOnEnvOk returns a tuple with the DecreaseCriticalityBasedOnEnv field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetDetectionMethod() SecurityMonitoringRuleDetectionMethod
GetDetectionMethod returns the DetectionMethod field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetDetectionMethodOk() (*SecurityMonitoringRuleDetectionMethod, bool)
GetDetectionMethodOk returns a tuple with the DetectionMethod field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetEvaluationWindow() SecurityMonitoringRuleEvaluationWindow
GetEvaluationWindow returns the EvaluationWindow field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetEvaluationWindowOk() (*SecurityMonitoringRuleEvaluationWindow, bool)
GetEvaluationWindowOk returns a tuple with the EvaluationWindow field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetHardcodedEvaluatorType() SecurityMonitoringRuleHardcodedEvaluatorType
GetHardcodedEvaluatorType returns the HardcodedEvaluatorType field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetHardcodedEvaluatorTypeOk() (*SecurityMonitoringRuleHardcodedEvaluatorType, bool)
GetHardcodedEvaluatorTypeOk returns a tuple with the HardcodedEvaluatorType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetImpossibleTravelOptions() SecurityMonitoringRuleImpossibleTravelOptions
GetImpossibleTravelOptions returns the ImpossibleTravelOptions field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetImpossibleTravelOptionsOk() (*SecurityMonitoringRuleImpossibleTravelOptions, bool)
GetImpossibleTravelOptionsOk returns a tuple with the ImpossibleTravelOptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetKeepAlive() SecurityMonitoringRuleKeepAlive
GetKeepAlive returns the KeepAlive field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetKeepAliveOk() (*SecurityMonitoringRuleKeepAlive, bool)
GetKeepAliveOk returns a tuple with the KeepAlive field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetMaxSignalDuration() SecurityMonitoringRuleMaxSignalDuration
GetMaxSignalDuration returns the MaxSignalDuration field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetMaxSignalDurationOk() (*SecurityMonitoringRuleMaxSignalDuration, bool)
GetMaxSignalDurationOk returns a tuple with the MaxSignalDuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetNewValueOptions() SecurityMonitoringRuleNewValueOptions
GetNewValueOptions returns the NewValueOptions field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetNewValueOptionsOk() (*SecurityMonitoringRuleNewValueOptions, bool)
GetNewValueOptionsOk returns a tuple with the NewValueOptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) HasComplianceRuleOptions() bool
HasComplianceRuleOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasDecreaseCriticalityBasedOnEnv() bool
HasDecreaseCriticalityBasedOnEnv returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasDetectionMethod() bool
HasDetectionMethod returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasEvaluationWindow() bool
HasEvaluationWindow returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasHardcodedEvaluatorType() bool
HasHardcodedEvaluatorType returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasImpossibleTravelOptions() bool
HasImpossibleTravelOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasKeepAlive() bool
HasKeepAlive returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasMaxSignalDuration() bool
HasMaxSignalDuration returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasNewValueOptions() bool
HasNewValueOptions returns a boolean if a field has been set.
func (o SecurityMonitoringRuleOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleOptions) SetComplianceRuleOptions(v CloudConfigurationComplianceRuleOptions)
SetComplianceRuleOptions gets a reference to the given CloudConfigurationComplianceRuleOptions and assigns it to the ComplianceRuleOptions field.
func (o *SecurityMonitoringRuleOptions) SetDecreaseCriticalityBasedOnEnv(v bool)
SetDecreaseCriticalityBasedOnEnv gets a reference to the given bool and assigns it to the DecreaseCriticalityBasedOnEnv field.
func (o *SecurityMonitoringRuleOptions) SetDetectionMethod(v SecurityMonitoringRuleDetectionMethod)
SetDetectionMethod gets a reference to the given SecurityMonitoringRuleDetectionMethod and assigns it to the DetectionMethod field.
func (o *SecurityMonitoringRuleOptions) SetEvaluationWindow(v SecurityMonitoringRuleEvaluationWindow)
SetEvaluationWindow gets a reference to the given SecurityMonitoringRuleEvaluationWindow and assigns it to the EvaluationWindow field.
func (o *SecurityMonitoringRuleOptions) SetHardcodedEvaluatorType(v SecurityMonitoringRuleHardcodedEvaluatorType)
SetHardcodedEvaluatorType gets a reference to the given SecurityMonitoringRuleHardcodedEvaluatorType and assigns it to the HardcodedEvaluatorType field.
func (o *SecurityMonitoringRuleOptions) SetImpossibleTravelOptions(v SecurityMonitoringRuleImpossibleTravelOptions)
SetImpossibleTravelOptions gets a reference to the given SecurityMonitoringRuleImpossibleTravelOptions and assigns it to the ImpossibleTravelOptions field.
func (o *SecurityMonitoringRuleOptions) SetKeepAlive(v SecurityMonitoringRuleKeepAlive)
SetKeepAlive gets a reference to the given SecurityMonitoringRuleKeepAlive and assigns it to the KeepAlive field.
func (o *SecurityMonitoringRuleOptions) SetMaxSignalDuration(v SecurityMonitoringRuleMaxSignalDuration)
SetMaxSignalDuration gets a reference to the given SecurityMonitoringRuleMaxSignalDuration and assigns it to the MaxSignalDuration field.
func (o *SecurityMonitoringRuleOptions) SetNewValueOptions(v SecurityMonitoringRuleNewValueOptions)
SetNewValueOptions gets a reference to the given SecurityMonitoringRuleNewValueOptions and assigns it to the NewValueOptions field.
func (o *SecurityMonitoringRuleOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleQuery - Query for matching rule.
type SecurityMonitoringRuleQuery struct {
SecurityMonitoringStandardRuleQuery *SecurityMonitoringStandardRuleQuery
SecurityMonitoringSignalRuleQuery *SecurityMonitoringSignalRuleQuery
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SecurityMonitoringSignalRuleQueryAsSecurityMonitoringRuleQuery(v *SecurityMonitoringSignalRuleQuery) SecurityMonitoringRuleQuery
SecurityMonitoringSignalRuleQueryAsSecurityMonitoringRuleQuery is a convenience function that returns SecurityMonitoringSignalRuleQuery wrapped in SecurityMonitoringRuleQuery.
func SecurityMonitoringStandardRuleQueryAsSecurityMonitoringRuleQuery(v *SecurityMonitoringStandardRuleQuery) SecurityMonitoringRuleQuery
SecurityMonitoringStandardRuleQueryAsSecurityMonitoringRuleQuery is a convenience function that returns SecurityMonitoringStandardRuleQuery wrapped in SecurityMonitoringRuleQuery.
func (obj *SecurityMonitoringRuleQuery) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SecurityMonitoringRuleQuery) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SecurityMonitoringRuleQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SecurityMonitoringRuleQueryAggregation The aggregation type.
type SecurityMonitoringRuleQueryAggregation string
List of SecurityMonitoringRuleQueryAggregation.
const (
SECURITYMONITORINGRULEQUERYAGGREGATION_COUNT SecurityMonitoringRuleQueryAggregation = "count"
SECURITYMONITORINGRULEQUERYAGGREGATION_CARDINALITY SecurityMonitoringRuleQueryAggregation = "cardinality"
SECURITYMONITORINGRULEQUERYAGGREGATION_SUM SecurityMonitoringRuleQueryAggregation = "sum"
SECURITYMONITORINGRULEQUERYAGGREGATION_MAX SecurityMonitoringRuleQueryAggregation = "max"
SECURITYMONITORINGRULEQUERYAGGREGATION_NEW_VALUE SecurityMonitoringRuleQueryAggregation = "new_value"
SECURITYMONITORINGRULEQUERYAGGREGATION_GEO_DATA SecurityMonitoringRuleQueryAggregation = "geo_data"
SECURITYMONITORINGRULEQUERYAGGREGATION_EVENT_COUNT SecurityMonitoringRuleQueryAggregation = "event_count"
SECURITYMONITORINGRULEQUERYAGGREGATION_NONE SecurityMonitoringRuleQueryAggregation = "none"
)
func NewSecurityMonitoringRuleQueryAggregationFromValue(v string) (*SecurityMonitoringRuleQueryAggregation, error)
NewSecurityMonitoringRuleQueryAggregationFromValue returns a pointer to a valid SecurityMonitoringRuleQueryAggregation for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleQueryAggregation) GetAllowedValues() []SecurityMonitoringRuleQueryAggregation
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleQueryAggregation) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleQueryAggregation) Ptr() *SecurityMonitoringRuleQueryAggregation
Ptr returns reference to SecurityMonitoringRuleQueryAggregation value.
func (v *SecurityMonitoringRuleQueryAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleResponse - Create a new rule.
type SecurityMonitoringRuleResponse struct {
SecurityMonitoringStandardRuleResponse *SecurityMonitoringStandardRuleResponse
SecurityMonitoringSignalRuleResponse *SecurityMonitoringSignalRuleResponse
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SecurityMonitoringSignalRuleResponseAsSecurityMonitoringRuleResponse(v *SecurityMonitoringSignalRuleResponse) SecurityMonitoringRuleResponse
SecurityMonitoringSignalRuleResponseAsSecurityMonitoringRuleResponse is a convenience function that returns SecurityMonitoringSignalRuleResponse wrapped in SecurityMonitoringRuleResponse.
func SecurityMonitoringStandardRuleResponseAsSecurityMonitoringRuleResponse(v *SecurityMonitoringStandardRuleResponse) SecurityMonitoringRuleResponse
SecurityMonitoringStandardRuleResponseAsSecurityMonitoringRuleResponse is a convenience function that returns SecurityMonitoringStandardRuleResponse wrapped in SecurityMonitoringRuleResponse.
func (obj *SecurityMonitoringRuleResponse) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SecurityMonitoringRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SecurityMonitoringRuleResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SecurityMonitoringRuleSeverity Severity of the Security Signal.
type SecurityMonitoringRuleSeverity string
List of SecurityMonitoringRuleSeverity.
const (
SECURITYMONITORINGRULESEVERITY_INFO SecurityMonitoringRuleSeverity = "info"
SECURITYMONITORINGRULESEVERITY_LOW SecurityMonitoringRuleSeverity = "low"
SECURITYMONITORINGRULESEVERITY_MEDIUM SecurityMonitoringRuleSeverity = "medium"
SECURITYMONITORINGRULESEVERITY_HIGH SecurityMonitoringRuleSeverity = "high"
SECURITYMONITORINGRULESEVERITY_CRITICAL SecurityMonitoringRuleSeverity = "critical"
)
func NewSecurityMonitoringRuleSeverityFromValue(v string) (*SecurityMonitoringRuleSeverity, error)
NewSecurityMonitoringRuleSeverityFromValue returns a pointer to a valid SecurityMonitoringRuleSeverity for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleSeverity) GetAllowedValues() []SecurityMonitoringRuleSeverity
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleSeverity) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleSeverity) Ptr() *SecurityMonitoringRuleSeverity
Ptr returns reference to SecurityMonitoringRuleSeverity value.
func (v *SecurityMonitoringRuleSeverity) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleTypeCreate The rule type.
type SecurityMonitoringRuleTypeCreate string
List of SecurityMonitoringRuleTypeCreate.
const (
SECURITYMONITORINGRULETYPECREATE_LOG_DETECTION SecurityMonitoringRuleTypeCreate = "log_detection"
SECURITYMONITORINGRULETYPECREATE_WORKLOAD_SECURITY SecurityMonitoringRuleTypeCreate = "workload_security"
)
func NewSecurityMonitoringRuleTypeCreateFromValue(v string) (*SecurityMonitoringRuleTypeCreate, error)
NewSecurityMonitoringRuleTypeCreateFromValue returns a pointer to a valid SecurityMonitoringRuleTypeCreate for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleTypeCreate) GetAllowedValues() []SecurityMonitoringRuleTypeCreate
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleTypeCreate) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleTypeCreate) Ptr() *SecurityMonitoringRuleTypeCreate
Ptr returns reference to SecurityMonitoringRuleTypeCreate value.
func (v *SecurityMonitoringRuleTypeCreate) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleTypeRead The rule type.
type SecurityMonitoringRuleTypeRead string
List of SecurityMonitoringRuleTypeRead.
const (
SECURITYMONITORINGRULETYPEREAD_LOG_DETECTION SecurityMonitoringRuleTypeRead = "log_detection"
SECURITYMONITORINGRULETYPEREAD_INFRASTRUCTURE_CONFIGURATION SecurityMonitoringRuleTypeRead = "infrastructure_configuration"
SECURITYMONITORINGRULETYPEREAD_WORKLOAD_SECURITY SecurityMonitoringRuleTypeRead = "workload_security"
SECURITYMONITORINGRULETYPEREAD_CLOUD_CONFIGURATION SecurityMonitoringRuleTypeRead = "cloud_configuration"
SECURITYMONITORINGRULETYPEREAD_APPLICATION_SECURITY SecurityMonitoringRuleTypeRead = "application_security"
)
func NewSecurityMonitoringRuleTypeReadFromValue(v string) (*SecurityMonitoringRuleTypeRead, error)
NewSecurityMonitoringRuleTypeReadFromValue returns a pointer to a valid SecurityMonitoringRuleTypeRead for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleTypeRead) GetAllowedValues() []SecurityMonitoringRuleTypeRead
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleTypeRead) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleTypeRead) Ptr() *SecurityMonitoringRuleTypeRead
Ptr returns reference to SecurityMonitoringRuleTypeRead value.
func (v *SecurityMonitoringRuleTypeRead) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleUpdatePayload Update an existing rule.
type SecurityMonitoringRuleUpdatePayload struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCase `json:"cases,omitempty"`
// How to generate compliance signals. Useful for cloud_configuration rules only.
ComplianceSignalOptions *CloudConfigurationRuleComplianceSignalOptions `json:"complianceSignalOptions,omitempty"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// Whether the rule is enabled.
IsEnabled *bool `json:"isEnabled,omitempty"`
// Message for generated signals.
Message *string `json:"message,omitempty"`
// Name of the rule.
Name *string `json:"name,omitempty"`
// Options on rules.
Options *SecurityMonitoringRuleOptions `json:"options,omitempty"`
// Queries for selecting logs which are part of the rule.
Queries []SecurityMonitoringRuleQuery `json:"queries,omitempty"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The version of the rule being updated.
Version *int32 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleUpdatePayload() *SecurityMonitoringRuleUpdatePayload
NewSecurityMonitoringRuleUpdatePayload instantiates a new SecurityMonitoringRuleUpdatePayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleUpdatePayloadWithDefaults() *SecurityMonitoringRuleUpdatePayload
NewSecurityMonitoringRuleUpdatePayloadWithDefaults instantiates a new SecurityMonitoringRuleUpdatePayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleUpdatePayload) GetCases() []SecurityMonitoringRuleCase
GetCases returns the Cases field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetCasesOk() (*[]SecurityMonitoringRuleCase, bool)
GetCasesOk returns a tuple with the Cases field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetComplianceSignalOptions() CloudConfigurationRuleComplianceSignalOptions
GetComplianceSignalOptions returns the ComplianceSignalOptions field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetComplianceSignalOptionsOk() (*CloudConfigurationRuleComplianceSignalOptions, bool)
GetComplianceSignalOptionsOk returns a tuple with the ComplianceSignalOptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetQueries() []SecurityMonitoringRuleQuery
GetQueries returns the Queries field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetQueriesOk() (*[]SecurityMonitoringRuleQuery, bool)
GetQueriesOk returns a tuple with the Queries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetVersion() int32
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasCases() bool
HasCases returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasComplianceSignalOptions() bool
HasComplianceSignalOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasQueries() bool
HasQueries returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringRuleUpdatePayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleUpdatePayload) SetCases(v []SecurityMonitoringRuleCase)
SetCases gets a reference to the given []SecurityMonitoringRuleCase and assigns it to the Cases field.
func (o *SecurityMonitoringRuleUpdatePayload) SetComplianceSignalOptions(v CloudConfigurationRuleComplianceSignalOptions)
SetComplianceSignalOptions gets a reference to the given CloudConfigurationRuleComplianceSignalOptions and assigns it to the ComplianceSignalOptions field.
func (o *SecurityMonitoringRuleUpdatePayload) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringRuleUpdatePayload) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringRuleUpdatePayload) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityMonitoringRuleUpdatePayload) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *SecurityMonitoringRuleUpdatePayload) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringRuleUpdatePayload) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions gets a reference to the given SecurityMonitoringRuleOptions and assigns it to the Options field.
func (o *SecurityMonitoringRuleUpdatePayload) SetQueries(v []SecurityMonitoringRuleQuery)
SetQueries gets a reference to the given []SecurityMonitoringRuleQuery and assigns it to the Queries field.
func (o *SecurityMonitoringRuleUpdatePayload) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringRuleUpdatePayload) SetVersion(v int32)
SetVersion gets a reference to the given int32 and assigns it to the Version field.
func (o *SecurityMonitoringRuleUpdatePayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignal Object description of a security signal.
type SecurityMonitoringSignal struct {
// The object containing all signal attributes and their
// associated values.
Attributes *SecurityMonitoringSignalAttributes `json:"attributes,omitempty"`
// The unique ID of the security signal.
Id *string `json:"id,omitempty"`
// The type of event.
Type *SecurityMonitoringSignalType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignal() *SecurityMonitoringSignal
NewSecurityMonitoringSignal instantiates a new SecurityMonitoringSignal object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalWithDefaults() *SecurityMonitoringSignal
NewSecurityMonitoringSignalWithDefaults instantiates a new SecurityMonitoringSignal object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignal) GetAttributes() SecurityMonitoringSignalAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SecurityMonitoringSignal) GetAttributesOk() (*SecurityMonitoringSignalAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignal) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityMonitoringSignal) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignal) GetType() SecurityMonitoringSignalType
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringSignal) GetTypeOk() (*SecurityMonitoringSignalType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignal) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SecurityMonitoringSignal) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignal) HasType() bool
HasType returns a boolean if a field has been set.
func (o SecurityMonitoringSignal) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignal) SetAttributes(v SecurityMonitoringSignalAttributes)
SetAttributes gets a reference to the given SecurityMonitoringSignalAttributes and assigns it to the Attributes field.
func (o *SecurityMonitoringSignal) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SecurityMonitoringSignal) SetType(v SecurityMonitoringSignalType)
SetType gets a reference to the given SecurityMonitoringSignalType and assigns it to the Type field.
func (o *SecurityMonitoringSignal) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalArchiveReason Reason a signal is archived.
type SecurityMonitoringSignalArchiveReason string
List of SecurityMonitoringSignalArchiveReason.
const (
SECURITYMONITORINGSIGNALARCHIVEREASON_NONE SecurityMonitoringSignalArchiveReason = "none"
SECURITYMONITORINGSIGNALARCHIVEREASON_FALSE_POSITIVE SecurityMonitoringSignalArchiveReason = "false_positive"
SECURITYMONITORINGSIGNALARCHIVEREASON_TESTING_OR_MAINTENANCE SecurityMonitoringSignalArchiveReason = "testing_or_maintenance"
SECURITYMONITORINGSIGNALARCHIVEREASON_INVESTIGATED_CASE_OPENED SecurityMonitoringSignalArchiveReason = "investigated_case_opened"
SECURITYMONITORINGSIGNALARCHIVEREASON_OTHER SecurityMonitoringSignalArchiveReason = "other"
)
func NewSecurityMonitoringSignalArchiveReasonFromValue(v string) (*SecurityMonitoringSignalArchiveReason, error)
NewSecurityMonitoringSignalArchiveReasonFromValue returns a pointer to a valid SecurityMonitoringSignalArchiveReason for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalArchiveReason) GetAllowedValues() []SecurityMonitoringSignalArchiveReason
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalArchiveReason) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalArchiveReason) Ptr() *SecurityMonitoringSignalArchiveReason
Ptr returns reference to SecurityMonitoringSignalArchiveReason value.
func (v *SecurityMonitoringSignalArchiveReason) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalAssigneeUpdateAttributes Attributes describing the new assignee of a security signal.
type SecurityMonitoringSignalAssigneeUpdateAttributes struct {
// Object representing a given user entity.
Assignee SecurityMonitoringTriageUser `json:"assignee"`
// Version of the updated signal. If server side version is higher, update will be rejected.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalAssigneeUpdateAttributes(assignee SecurityMonitoringTriageUser) *SecurityMonitoringSignalAssigneeUpdateAttributes
NewSecurityMonitoringSignalAssigneeUpdateAttributes instantiates a new SecurityMonitoringSignalAssigneeUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalAssigneeUpdateAttributesWithDefaults() *SecurityMonitoringSignalAssigneeUpdateAttributes
NewSecurityMonitoringSignalAssigneeUpdateAttributesWithDefaults instantiates a new SecurityMonitoringSignalAssigneeUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) GetAssignee() SecurityMonitoringTriageUser
GetAssignee returns the Assignee field value.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) GetAssigneeOk() (*SecurityMonitoringTriageUser, bool)
GetAssigneeOk returns a tuple with the Assignee field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringSignalAssigneeUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) SetAssignee(v SecurityMonitoringTriageUser)
SetAssignee sets field value.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalAssigneeUpdateData Data containing the patch for changing the assignee of a signal.
type SecurityMonitoringSignalAssigneeUpdateData struct {
// Attributes describing the new assignee of a security signal.
Attributes SecurityMonitoringSignalAssigneeUpdateAttributes `json:"attributes"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalAssigneeUpdateData(attributes SecurityMonitoringSignalAssigneeUpdateAttributes) *SecurityMonitoringSignalAssigneeUpdateData
NewSecurityMonitoringSignalAssigneeUpdateData instantiates a new SecurityMonitoringSignalAssigneeUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalAssigneeUpdateDataWithDefaults() *SecurityMonitoringSignalAssigneeUpdateData
NewSecurityMonitoringSignalAssigneeUpdateDataWithDefaults instantiates a new SecurityMonitoringSignalAssigneeUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalAssigneeUpdateData) GetAttributes() SecurityMonitoringSignalAssigneeUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityMonitoringSignalAssigneeUpdateData) GetAttributesOk() (*SecurityMonitoringSignalAssigneeUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalAssigneeUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalAssigneeUpdateData) SetAttributes(v SecurityMonitoringSignalAssigneeUpdateAttributes)
SetAttributes sets field value.
func (o *SecurityMonitoringSignalAssigneeUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalAssigneeUpdateRequest Request body for changing the assignee of a given security monitoring signal.
type SecurityMonitoringSignalAssigneeUpdateRequest struct {
// Data containing the patch for changing the assignee of a signal.
Data SecurityMonitoringSignalAssigneeUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalAssigneeUpdateRequest(data SecurityMonitoringSignalAssigneeUpdateData) *SecurityMonitoringSignalAssigneeUpdateRequest
NewSecurityMonitoringSignalAssigneeUpdateRequest instantiates a new SecurityMonitoringSignalAssigneeUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalAssigneeUpdateRequestWithDefaults() *SecurityMonitoringSignalAssigneeUpdateRequest
NewSecurityMonitoringSignalAssigneeUpdateRequestWithDefaults instantiates a new SecurityMonitoringSignalAssigneeUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalAssigneeUpdateRequest) GetData() SecurityMonitoringSignalAssigneeUpdateData
GetData returns the Data field value.
func (o *SecurityMonitoringSignalAssigneeUpdateRequest) GetDataOk() (*SecurityMonitoringSignalAssigneeUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalAssigneeUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalAssigneeUpdateRequest) SetData(v SecurityMonitoringSignalAssigneeUpdateData)
SetData sets field value.
func (o *SecurityMonitoringSignalAssigneeUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalAttributes The object containing all signal attributes and their associated values.
type SecurityMonitoringSignalAttributes struct {
// A JSON object of attributes in the security signal.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// The message in the security signal defined by the rule that generated the signal.
Message *string `json:"message,omitempty"`
// An array of tags associated with the security signal.
Tags []string `json:"tags,omitempty"`
// The timestamp of the security signal.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalAttributes() *SecurityMonitoringSignalAttributes
NewSecurityMonitoringSignalAttributes instantiates a new SecurityMonitoringSignalAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalAttributesWithDefaults() *SecurityMonitoringSignalAttributes
NewSecurityMonitoringSignalAttributesWithDefaults instantiates a new SecurityMonitoringSignalAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o SecurityMonitoringSignalAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *SecurityMonitoringSignalAttributes) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *SecurityMonitoringSignalAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringSignalAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *SecurityMonitoringSignalAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalIncidentsUpdateAttributes Attributes describing the new list of related signals for a security signal.
type SecurityMonitoringSignalIncidentsUpdateAttributes struct {
// Array of incidents that are associated with this signal.
IncidentIds []int64 `json:"incident_ids"`
// Version of the updated signal. If server side version is higher, update will be rejected.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalIncidentsUpdateAttributes(incidentIds []int64) *SecurityMonitoringSignalIncidentsUpdateAttributes
NewSecurityMonitoringSignalIncidentsUpdateAttributes instantiates a new SecurityMonitoringSignalIncidentsUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalIncidentsUpdateAttributesWithDefaults() *SecurityMonitoringSignalIncidentsUpdateAttributes
NewSecurityMonitoringSignalIncidentsUpdateAttributesWithDefaults instantiates a new SecurityMonitoringSignalIncidentsUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) GetIncidentIds() []int64
GetIncidentIds returns the IncidentIds field value.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) GetIncidentIdsOk() (*[]int64, bool)
GetIncidentIdsOk returns a tuple with the IncidentIds field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringSignalIncidentsUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) SetIncidentIds(v []int64)
SetIncidentIds sets field value.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalIncidentsUpdateData Data containing the patch for changing the related incidents of a signal.
type SecurityMonitoringSignalIncidentsUpdateData struct {
// Attributes describing the new list of related signals for a security signal.
Attributes SecurityMonitoringSignalIncidentsUpdateAttributes `json:"attributes"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalIncidentsUpdateData(attributes SecurityMonitoringSignalIncidentsUpdateAttributes) *SecurityMonitoringSignalIncidentsUpdateData
NewSecurityMonitoringSignalIncidentsUpdateData instantiates a new SecurityMonitoringSignalIncidentsUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalIncidentsUpdateDataWithDefaults() *SecurityMonitoringSignalIncidentsUpdateData
NewSecurityMonitoringSignalIncidentsUpdateDataWithDefaults instantiates a new SecurityMonitoringSignalIncidentsUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalIncidentsUpdateData) GetAttributes() SecurityMonitoringSignalIncidentsUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityMonitoringSignalIncidentsUpdateData) GetAttributesOk() (*SecurityMonitoringSignalIncidentsUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalIncidentsUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalIncidentsUpdateData) SetAttributes(v SecurityMonitoringSignalIncidentsUpdateAttributes)
SetAttributes sets field value.
func (o *SecurityMonitoringSignalIncidentsUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalIncidentsUpdateRequest Request body for changing the related incidents of a given security monitoring signal.
type SecurityMonitoringSignalIncidentsUpdateRequest struct {
// Data containing the patch for changing the related incidents of a signal.
Data SecurityMonitoringSignalIncidentsUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalIncidentsUpdateRequest(data SecurityMonitoringSignalIncidentsUpdateData) *SecurityMonitoringSignalIncidentsUpdateRequest
NewSecurityMonitoringSignalIncidentsUpdateRequest instantiates a new SecurityMonitoringSignalIncidentsUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalIncidentsUpdateRequestWithDefaults() *SecurityMonitoringSignalIncidentsUpdateRequest
NewSecurityMonitoringSignalIncidentsUpdateRequestWithDefaults instantiates a new SecurityMonitoringSignalIncidentsUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalIncidentsUpdateRequest) GetData() SecurityMonitoringSignalIncidentsUpdateData
GetData returns the Data field value.
func (o *SecurityMonitoringSignalIncidentsUpdateRequest) GetDataOk() (*SecurityMonitoringSignalIncidentsUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalIncidentsUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalIncidentsUpdateRequest) SetData(v SecurityMonitoringSignalIncidentsUpdateData)
SetData sets field value.
func (o *SecurityMonitoringSignalIncidentsUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalListRequest The request for a security signal list.
type SecurityMonitoringSignalListRequest struct {
// Search filters for listing security signals.
Filter *SecurityMonitoringSignalListRequestFilter `json:"filter,omitempty"`
// The paging attributes for listing security signals.
Page *SecurityMonitoringSignalListRequestPage `json:"page,omitempty"`
// The sort parameters used for querying security signals.
Sort *SecurityMonitoringSignalsSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalListRequest() *SecurityMonitoringSignalListRequest
NewSecurityMonitoringSignalListRequest instantiates a new SecurityMonitoringSignalListRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalListRequestWithDefaults() *SecurityMonitoringSignalListRequest
NewSecurityMonitoringSignalListRequestWithDefaults instantiates a new SecurityMonitoringSignalListRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalListRequest) GetFilter() SecurityMonitoringSignalListRequestFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequest) GetFilterOk() (*SecurityMonitoringSignalListRequestFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequest) GetPage() SecurityMonitoringSignalListRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequest) GetPageOk() (*SecurityMonitoringSignalListRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequest) GetSort() SecurityMonitoringSignalsSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequest) GetSortOk() (*SecurityMonitoringSignalsSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o SecurityMonitoringSignalListRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalListRequest) SetFilter(v SecurityMonitoringSignalListRequestFilter)
SetFilter gets a reference to the given SecurityMonitoringSignalListRequestFilter and assigns it to the Filter field.
func (o *SecurityMonitoringSignalListRequest) SetPage(v SecurityMonitoringSignalListRequestPage)
SetPage gets a reference to the given SecurityMonitoringSignalListRequestPage and assigns it to the Page field.
func (o *SecurityMonitoringSignalListRequest) SetSort(v SecurityMonitoringSignalsSort)
SetSort gets a reference to the given SecurityMonitoringSignalsSort and assigns it to the Sort field.
func (o *SecurityMonitoringSignalListRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalListRequestFilter Search filters for listing security signals.
type SecurityMonitoringSignalListRequestFilter struct {
// The minimum timestamp for requested security signals.
From *time.Time `json:"from,omitempty"`
// Search query for listing security signals.
Query *string `json:"query,omitempty"`
// The maximum timestamp for requested security signals.
To *time.Time `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalListRequestFilter() *SecurityMonitoringSignalListRequestFilter
NewSecurityMonitoringSignalListRequestFilter instantiates a new SecurityMonitoringSignalListRequestFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalListRequestFilterWithDefaults() *SecurityMonitoringSignalListRequestFilter
NewSecurityMonitoringSignalListRequestFilterWithDefaults instantiates a new SecurityMonitoringSignalListRequestFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalListRequestFilter) GetFrom() time.Time
GetFrom returns the From field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestFilter) GetFromOk() (*time.Time, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestFilter) GetTo() time.Time
GetTo returns the To field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestFilter) GetToOk() (*time.Time, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequestFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequestFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o SecurityMonitoringSignalListRequestFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalListRequestFilter) SetFrom(v time.Time)
SetFrom gets a reference to the given time.Time and assigns it to the From field.
func (o *SecurityMonitoringSignalListRequestFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityMonitoringSignalListRequestFilter) SetTo(v time.Time)
SetTo gets a reference to the given time.Time and assigns it to the To field.
func (o *SecurityMonitoringSignalListRequestFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalListRequestPage The paging attributes for listing security signals.
type SecurityMonitoringSignalListRequestPage struct {
// A list of results using the cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// The maximum number of security signals in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalListRequestPage() *SecurityMonitoringSignalListRequestPage
NewSecurityMonitoringSignalListRequestPage instantiates a new SecurityMonitoringSignalListRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalListRequestPageWithDefaults() *SecurityMonitoringSignalListRequestPage
NewSecurityMonitoringSignalListRequestPageWithDefaults instantiates a new SecurityMonitoringSignalListRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalListRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestPage) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestPage) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequestPage) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o SecurityMonitoringSignalListRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalListRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *SecurityMonitoringSignalListRequestPage) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *SecurityMonitoringSignalListRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleCreatePayload Create a new signal correlation rule.
type SecurityMonitoringSignalRuleCreatePayload struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCaseCreate `json:"cases"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// Whether the rule is enabled.
IsEnabled bool `json:"isEnabled"`
// Message for generated signals.
Message string `json:"message"`
// The name of the rule.
Name string `json:"name"`
// Options on rules.
Options SecurityMonitoringRuleOptions `json:"options"`
// Queries for selecting signals which are part of the rule.
Queries []SecurityMonitoringSignalRuleQuery `json:"queries"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *SecurityMonitoringSignalRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalRuleCreatePayload(cases []SecurityMonitoringRuleCaseCreate, isEnabled bool, message string, name string, options SecurityMonitoringRuleOptions, queries []SecurityMonitoringSignalRuleQuery) *SecurityMonitoringSignalRuleCreatePayload
NewSecurityMonitoringSignalRuleCreatePayload instantiates a new SecurityMonitoringSignalRuleCreatePayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalRuleCreatePayloadWithDefaults() *SecurityMonitoringSignalRuleCreatePayload
NewSecurityMonitoringSignalRuleCreatePayloadWithDefaults instantiates a new SecurityMonitoringSignalRuleCreatePayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetCases() []SecurityMonitoringRuleCaseCreate
GetCases returns the Cases field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetCasesOk() (*[]SecurityMonitoringRuleCaseCreate, bool)
GetCasesOk returns a tuple with the Cases field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetMessage() string
GetMessage returns the Message field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetName() string
GetName returns the Name field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetQueries() []SecurityMonitoringSignalRuleQuery
GetQueries returns the Queries field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetQueriesOk() (*[]SecurityMonitoringSignalRuleQuery, bool)
GetQueriesOk returns a tuple with the Queries field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetType() SecurityMonitoringSignalRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetTypeOk() (*SecurityMonitoringSignalRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) HasType() bool
HasType returns a boolean if a field has been set.
func (o SecurityMonitoringSignalRuleCreatePayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetCases(v []SecurityMonitoringRuleCaseCreate)
SetCases sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetIsEnabled(v bool)
SetIsEnabled sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetMessage(v string)
SetMessage sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetName(v string)
SetName sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetQueries(v []SecurityMonitoringSignalRuleQuery)
SetQueries sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetType(v SecurityMonitoringSignalRuleType)
SetType gets a reference to the given SecurityMonitoringSignalRuleType and assigns it to the Type field.
func (o *SecurityMonitoringSignalRuleCreatePayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleQuery Query for matching rule on signals.
type SecurityMonitoringSignalRuleQuery struct {
// The aggregation type.
Aggregation *SecurityMonitoringRuleQueryAggregation `json:"aggregation,omitempty"`
// Fields to group by.
CorrelatedByFields []string `json:"correlatedByFields,omitempty"`
// Index of the rule query used to retrieve the correlated field.
CorrelatedQueryIndex *int32 `json:"correlatedQueryIndex,omitempty"`
// Group of target fields to aggregate over.
Metrics []string `json:"metrics,omitempty"`
// Name of the query.
Name *string `json:"name,omitempty"`
// Rule ID to match on signals.
RuleId string `json:"ruleId"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalRuleQuery(ruleId string) *SecurityMonitoringSignalRuleQuery
NewSecurityMonitoringSignalRuleQuery instantiates a new SecurityMonitoringSignalRuleQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalRuleQueryWithDefaults() *SecurityMonitoringSignalRuleQuery
NewSecurityMonitoringSignalRuleQueryWithDefaults instantiates a new SecurityMonitoringSignalRuleQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalRuleQuery) GetAggregation() SecurityMonitoringRuleQueryAggregation
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetAggregationOk() (*SecurityMonitoringRuleQueryAggregation, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetCorrelatedByFields() []string
GetCorrelatedByFields returns the CorrelatedByFields field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetCorrelatedByFieldsOk() (*[]string, bool)
GetCorrelatedByFieldsOk returns a tuple with the CorrelatedByFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetCorrelatedQueryIndex() int32
GetCorrelatedQueryIndex returns the CorrelatedQueryIndex field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetCorrelatedQueryIndexOk() (*int32, bool)
GetCorrelatedQueryIndexOk returns a tuple with the CorrelatedQueryIndex field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetRuleId() string
GetRuleId returns the RuleId field value.
func (o *SecurityMonitoringSignalRuleQuery) GetRuleIdOk() (*string, bool)
GetRuleIdOk returns a tuple with the RuleId field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasCorrelatedByFields() bool
HasCorrelatedByFields returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasCorrelatedQueryIndex() bool
HasCorrelatedQueryIndex returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o SecurityMonitoringSignalRuleQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalRuleQuery) SetAggregation(v SecurityMonitoringRuleQueryAggregation)
SetAggregation gets a reference to the given SecurityMonitoringRuleQueryAggregation and assigns it to the Aggregation field.
func (o *SecurityMonitoringSignalRuleQuery) SetCorrelatedByFields(v []string)
SetCorrelatedByFields gets a reference to the given []string and assigns it to the CorrelatedByFields field.
func (o *SecurityMonitoringSignalRuleQuery) SetCorrelatedQueryIndex(v int32)
SetCorrelatedQueryIndex gets a reference to the given int32 and assigns it to the CorrelatedQueryIndex field.
func (o *SecurityMonitoringSignalRuleQuery) SetMetrics(v []string)
SetMetrics gets a reference to the given []string and assigns it to the Metrics field.
func (o *SecurityMonitoringSignalRuleQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringSignalRuleQuery) SetRuleId(v string)
SetRuleId sets field value.
func (o *SecurityMonitoringSignalRuleQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleResponse Rule.
type SecurityMonitoringSignalRuleResponse struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCase `json:"cases,omitempty"`
// When the rule was created, timestamp in milliseconds.
CreatedAt *int64 `json:"createdAt,omitempty"`
// User ID of the user who created the rule.
CreationAuthorId *int64 `json:"creationAuthorId,omitempty"`
// When the rule will be deprecated, timestamp in milliseconds.
DeprecationDate *int64 `json:"deprecationDate,omitempty"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// The ID of the rule.
Id *string `json:"id,omitempty"`
// Whether the rule is included by default.
IsDefault *bool `json:"isDefault,omitempty"`
// Whether the rule has been deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// Whether the rule is enabled.
IsEnabled *bool `json:"isEnabled,omitempty"`
// Message for generated signals.
Message *string `json:"message,omitempty"`
// The name of the rule.
Name *string `json:"name,omitempty"`
// Options on rules.
Options *SecurityMonitoringRuleOptions `json:"options,omitempty"`
// Queries for selecting logs which are part of the rule.
Queries []SecurityMonitoringSignalRuleResponseQuery `json:"queries,omitempty"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *SecurityMonitoringSignalRuleType `json:"type,omitempty"`
// User ID of the user who updated the rule.
UpdateAuthorId *int64 `json:"updateAuthorId,omitempty"`
// The version of the rule.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalRuleResponse() *SecurityMonitoringSignalRuleResponse
NewSecurityMonitoringSignalRuleResponse instantiates a new SecurityMonitoringSignalRuleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalRuleResponseWithDefaults() *SecurityMonitoringSignalRuleResponse
NewSecurityMonitoringSignalRuleResponseWithDefaults instantiates a new SecurityMonitoringSignalRuleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalRuleResponse) GetCases() []SecurityMonitoringRuleCase
GetCases returns the Cases field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetCasesOk() (*[]SecurityMonitoringRuleCase, bool)
GetCasesOk returns a tuple with the Cases field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetCreationAuthorId() int64
GetCreationAuthorId returns the CreationAuthorId field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetCreationAuthorIdOk() (*int64, bool)
GetCreationAuthorIdOk returns a tuple with the CreationAuthorId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetDeprecationDate() int64
GetDeprecationDate returns the DeprecationDate field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetDeprecationDateOk() (*int64, bool)
GetDeprecationDateOk returns a tuple with the DeprecationDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetIsDefault() bool
GetIsDefault returns the IsDefault field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetIsDefaultOk() (*bool, bool)
GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetIsDeleted() bool
GetIsDeleted returns the IsDeleted field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetIsDeletedOk() (*bool, bool)
GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetQueries() []SecurityMonitoringSignalRuleResponseQuery
GetQueries returns the Queries field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetQueriesOk() (*[]SecurityMonitoringSignalRuleResponseQuery, bool)
GetQueriesOk returns a tuple with the Queries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetType() SecurityMonitoringSignalRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetTypeOk() (*SecurityMonitoringSignalRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetUpdateAuthorId() int64
GetUpdateAuthorId returns the UpdateAuthorId field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetUpdateAuthorIdOk() (*int64, bool)
GetUpdateAuthorIdOk returns a tuple with the UpdateAuthorId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasCases() bool
HasCases returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasCreationAuthorId() bool
HasCreationAuthorId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasDeprecationDate() bool
HasDeprecationDate returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasIsDefault() bool
HasIsDefault returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasIsDeleted() bool
HasIsDeleted returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasQueries() bool
HasQueries returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasUpdateAuthorId() bool
HasUpdateAuthorId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringSignalRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalRuleResponse) SetCases(v []SecurityMonitoringRuleCase)
SetCases gets a reference to the given []SecurityMonitoringRuleCase and assigns it to the Cases field.
func (o *SecurityMonitoringSignalRuleResponse) SetCreatedAt(v int64)
SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *SecurityMonitoringSignalRuleResponse) SetCreationAuthorId(v int64)
SetCreationAuthorId gets a reference to the given int64 and assigns it to the CreationAuthorId field.
func (o *SecurityMonitoringSignalRuleResponse) SetDeprecationDate(v int64)
SetDeprecationDate gets a reference to the given int64 and assigns it to the DeprecationDate field.
func (o *SecurityMonitoringSignalRuleResponse) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringSignalRuleResponse) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringSignalRuleResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SecurityMonitoringSignalRuleResponse) SetIsDefault(v bool)
SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.
func (o *SecurityMonitoringSignalRuleResponse) SetIsDeleted(v bool)
SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field.
func (o *SecurityMonitoringSignalRuleResponse) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityMonitoringSignalRuleResponse) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *SecurityMonitoringSignalRuleResponse) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringSignalRuleResponse) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions gets a reference to the given SecurityMonitoringRuleOptions and assigns it to the Options field.
func (o *SecurityMonitoringSignalRuleResponse) SetQueries(v []SecurityMonitoringSignalRuleResponseQuery)
SetQueries gets a reference to the given []SecurityMonitoringSignalRuleResponseQuery and assigns it to the Queries field.
func (o *SecurityMonitoringSignalRuleResponse) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringSignalRuleResponse) SetType(v SecurityMonitoringSignalRuleType)
SetType gets a reference to the given SecurityMonitoringSignalRuleType and assigns it to the Type field.
func (o *SecurityMonitoringSignalRuleResponse) SetUpdateAuthorId(v int64)
SetUpdateAuthorId gets a reference to the given int64 and assigns it to the UpdateAuthorId field.
func (o *SecurityMonitoringSignalRuleResponse) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringSignalRuleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleResponseQuery Query for matching rule on signals.
type SecurityMonitoringSignalRuleResponseQuery struct {
// The aggregation type.
Aggregation *SecurityMonitoringRuleQueryAggregation `json:"aggregation,omitempty"`
// Fields to group by.
CorrelatedByFields []string `json:"correlatedByFields,omitempty"`
// Index of the rule query used to retrieve the correlated field.
CorrelatedQueryIndex *int32 `json:"correlatedQueryIndex,omitempty"`
// Default Rule ID to match on signals.
DefaultRuleId *string `json:"defaultRuleId,omitempty"`
// Group of target fields to aggregate over.
Metrics []string `json:"metrics,omitempty"`
// Name of the query.
Name *string `json:"name,omitempty"`
// Rule ID to match on signals.
RuleId *string `json:"ruleId,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalRuleResponseQuery() *SecurityMonitoringSignalRuleResponseQuery
NewSecurityMonitoringSignalRuleResponseQuery instantiates a new SecurityMonitoringSignalRuleResponseQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalRuleResponseQueryWithDefaults() *SecurityMonitoringSignalRuleResponseQuery
NewSecurityMonitoringSignalRuleResponseQueryWithDefaults instantiates a new SecurityMonitoringSignalRuleResponseQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetAggregation() SecurityMonitoringRuleQueryAggregation
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetAggregationOk() (*SecurityMonitoringRuleQueryAggregation, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetCorrelatedByFields() []string
GetCorrelatedByFields returns the CorrelatedByFields field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetCorrelatedByFieldsOk() (*[]string, bool)
GetCorrelatedByFieldsOk returns a tuple with the CorrelatedByFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetCorrelatedQueryIndex() int32
GetCorrelatedQueryIndex returns the CorrelatedQueryIndex field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetCorrelatedQueryIndexOk() (*int32, bool)
GetCorrelatedQueryIndexOk returns a tuple with the CorrelatedQueryIndex field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetDefaultRuleId() string
GetDefaultRuleId returns the DefaultRuleId field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetDefaultRuleIdOk() (*string, bool)
GetDefaultRuleIdOk returns a tuple with the DefaultRuleId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetRuleId() string
GetRuleId returns the RuleId field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetRuleIdOk() (*string, bool)
GetRuleIdOk returns a tuple with the RuleId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasCorrelatedByFields() bool
HasCorrelatedByFields returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasCorrelatedQueryIndex() bool
HasCorrelatedQueryIndex returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasDefaultRuleId() bool
HasDefaultRuleId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasRuleId() bool
HasRuleId returns a boolean if a field has been set.
func (o SecurityMonitoringSignalRuleResponseQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetAggregation(v SecurityMonitoringRuleQueryAggregation)
SetAggregation gets a reference to the given SecurityMonitoringRuleQueryAggregation and assigns it to the Aggregation field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetCorrelatedByFields(v []string)
SetCorrelatedByFields gets a reference to the given []string and assigns it to the CorrelatedByFields field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetCorrelatedQueryIndex(v int32)
SetCorrelatedQueryIndex gets a reference to the given int32 and assigns it to the CorrelatedQueryIndex field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetDefaultRuleId(v string)
SetDefaultRuleId gets a reference to the given string and assigns it to the DefaultRuleId field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetMetrics(v []string)
SetMetrics gets a reference to the given []string and assigns it to the Metrics field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetRuleId(v string)
SetRuleId gets a reference to the given string and assigns it to the RuleId field.
func (o *SecurityMonitoringSignalRuleResponseQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleType The rule type.
type SecurityMonitoringSignalRuleType string
List of SecurityMonitoringSignalRuleType.
const (
SECURITYMONITORINGSIGNALRULETYPE_SIGNAL_CORRELATION SecurityMonitoringSignalRuleType = "signal_correlation"
)
func NewSecurityMonitoringSignalRuleTypeFromValue(v string) (*SecurityMonitoringSignalRuleType, error)
NewSecurityMonitoringSignalRuleTypeFromValue returns a pointer to a valid SecurityMonitoringSignalRuleType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalRuleType) GetAllowedValues() []SecurityMonitoringSignalRuleType
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalRuleType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalRuleType) Ptr() *SecurityMonitoringSignalRuleType
Ptr returns reference to SecurityMonitoringSignalRuleType value.
func (v *SecurityMonitoringSignalRuleType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalState The new triage state of the signal.
type SecurityMonitoringSignalState string
List of SecurityMonitoringSignalState.
const (
SECURITYMONITORINGSIGNALSTATE_OPEN SecurityMonitoringSignalState = "open"
SECURITYMONITORINGSIGNALSTATE_ARCHIVED SecurityMonitoringSignalState = "archived"
SECURITYMONITORINGSIGNALSTATE_UNDER_REVIEW SecurityMonitoringSignalState = "under_review"
)
func NewSecurityMonitoringSignalStateFromValue(v string) (*SecurityMonitoringSignalState, error)
NewSecurityMonitoringSignalStateFromValue returns a pointer to a valid SecurityMonitoringSignalState for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalState) GetAllowedValues() []SecurityMonitoringSignalState
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalState) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalState) Ptr() *SecurityMonitoringSignalState
Ptr returns reference to SecurityMonitoringSignalState value.
func (v *SecurityMonitoringSignalState) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalStateUpdateAttributes Attributes describing the change of state of a security signal.
type SecurityMonitoringSignalStateUpdateAttributes struct {
// Optional comment to display on archived signals.
ArchiveComment *string `json:"archive_comment,omitempty"`
// Reason a signal is archived.
ArchiveReason *SecurityMonitoringSignalArchiveReason `json:"archive_reason,omitempty"`
// The new triage state of the signal.
State SecurityMonitoringSignalState `json:"state"`
// Version of the updated signal. If server side version is higher, update will be rejected.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalStateUpdateAttributes(state SecurityMonitoringSignalState) *SecurityMonitoringSignalStateUpdateAttributes
NewSecurityMonitoringSignalStateUpdateAttributes instantiates a new SecurityMonitoringSignalStateUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalStateUpdateAttributesWithDefaults() *SecurityMonitoringSignalStateUpdateAttributes
NewSecurityMonitoringSignalStateUpdateAttributesWithDefaults instantiates a new SecurityMonitoringSignalStateUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetArchiveComment() string
GetArchiveComment returns the ArchiveComment field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetArchiveCommentOk() (*string, bool)
GetArchiveCommentOk returns a tuple with the ArchiveComment field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetArchiveReason() SecurityMonitoringSignalArchiveReason
GetArchiveReason returns the ArchiveReason field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetArchiveReasonOk() (*SecurityMonitoringSignalArchiveReason, bool)
GetArchiveReasonOk returns a tuple with the ArchiveReason field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetState() SecurityMonitoringSignalState
GetState returns the State field value.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetStateOk() (*SecurityMonitoringSignalState, bool)
GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) HasArchiveComment() bool
HasArchiveComment returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) HasArchiveReason() bool
HasArchiveReason returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringSignalStateUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalStateUpdateAttributes) SetArchiveComment(v string)
SetArchiveComment gets a reference to the given string and assigns it to the ArchiveComment field.
func (o *SecurityMonitoringSignalStateUpdateAttributes) SetArchiveReason(v SecurityMonitoringSignalArchiveReason)
SetArchiveReason gets a reference to the given SecurityMonitoringSignalArchiveReason and assigns it to the ArchiveReason field.
func (o *SecurityMonitoringSignalStateUpdateAttributes) SetState(v SecurityMonitoringSignalState)
SetState sets field value.
func (o *SecurityMonitoringSignalStateUpdateAttributes) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringSignalStateUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalStateUpdateData Data containing the patch for changing the state of a signal.
type SecurityMonitoringSignalStateUpdateData struct {
// Attributes describing the change of state of a security signal.
Attributes SecurityMonitoringSignalStateUpdateAttributes `json:"attributes"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalStateUpdateData(attributes SecurityMonitoringSignalStateUpdateAttributes) *SecurityMonitoringSignalStateUpdateData
NewSecurityMonitoringSignalStateUpdateData instantiates a new SecurityMonitoringSignalStateUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalStateUpdateDataWithDefaults() *SecurityMonitoringSignalStateUpdateData
NewSecurityMonitoringSignalStateUpdateDataWithDefaults instantiates a new SecurityMonitoringSignalStateUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalStateUpdateData) GetAttributes() SecurityMonitoringSignalStateUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityMonitoringSignalStateUpdateData) GetAttributesOk() (*SecurityMonitoringSignalStateUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalStateUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalStateUpdateData) SetAttributes(v SecurityMonitoringSignalStateUpdateAttributes)
SetAttributes sets field value.
func (o *SecurityMonitoringSignalStateUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalStateUpdateRequest Request body for changing the state of a given security monitoring signal.
type SecurityMonitoringSignalStateUpdateRequest struct {
// Data containing the patch for changing the state of a signal.
Data SecurityMonitoringSignalStateUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalStateUpdateRequest(data SecurityMonitoringSignalStateUpdateData) *SecurityMonitoringSignalStateUpdateRequest
NewSecurityMonitoringSignalStateUpdateRequest instantiates a new SecurityMonitoringSignalStateUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalStateUpdateRequestWithDefaults() *SecurityMonitoringSignalStateUpdateRequest
NewSecurityMonitoringSignalStateUpdateRequestWithDefaults instantiates a new SecurityMonitoringSignalStateUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalStateUpdateRequest) GetData() SecurityMonitoringSignalStateUpdateData
GetData returns the Data field value.
func (o *SecurityMonitoringSignalStateUpdateRequest) GetDataOk() (*SecurityMonitoringSignalStateUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalStateUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalStateUpdateRequest) SetData(v SecurityMonitoringSignalStateUpdateData)
SetData sets field value.
func (o *SecurityMonitoringSignalStateUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalTriageAttributes Attributes describing a triage state update operation over a security signal.
type SecurityMonitoringSignalTriageAttributes struct {
// Optional comment to display on archived signals.
ArchiveComment *string `json:"archive_comment,omitempty"`
// Timestamp of the last edit to the comment.
ArchiveCommentTimestamp *int64 `json:"archive_comment_timestamp,omitempty"`
// Object representing a given user entity.
ArchiveCommentUser *SecurityMonitoringTriageUser `json:"archive_comment_user,omitempty"`
// Reason a signal is archived.
ArchiveReason *SecurityMonitoringSignalArchiveReason `json:"archive_reason,omitempty"`
// Object representing a given user entity.
Assignee SecurityMonitoringTriageUser `json:"assignee"`
// Array of incidents that are associated with this signal.
IncidentIds []int64 `json:"incident_ids"`
// The new triage state of the signal.
State SecurityMonitoringSignalState `json:"state"`
// Timestamp of the last update to the signal state.
StateUpdateTimestamp *int64 `json:"state_update_timestamp,omitempty"`
// Object representing a given user entity.
StateUpdateUser *SecurityMonitoringTriageUser `json:"state_update_user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalTriageAttributes(assignee SecurityMonitoringTriageUser, incidentIds []int64, state SecurityMonitoringSignalState) *SecurityMonitoringSignalTriageAttributes
NewSecurityMonitoringSignalTriageAttributes instantiates a new SecurityMonitoringSignalTriageAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalTriageAttributesWithDefaults() *SecurityMonitoringSignalTriageAttributes
NewSecurityMonitoringSignalTriageAttributesWithDefaults instantiates a new SecurityMonitoringSignalTriageAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveComment() string
GetArchiveComment returns the ArchiveComment field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentOk() (*string, bool)
GetArchiveCommentOk returns a tuple with the ArchiveComment field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentTimestamp() int64
GetArchiveCommentTimestamp returns the ArchiveCommentTimestamp field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentTimestampOk() (*int64, bool)
GetArchiveCommentTimestampOk returns a tuple with the ArchiveCommentTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentUser() SecurityMonitoringTriageUser
GetArchiveCommentUser returns the ArchiveCommentUser field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentUserOk() (*SecurityMonitoringTriageUser, bool)
GetArchiveCommentUserOk returns a tuple with the ArchiveCommentUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveReason() SecurityMonitoringSignalArchiveReason
GetArchiveReason returns the ArchiveReason field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveReasonOk() (*SecurityMonitoringSignalArchiveReason, bool)
GetArchiveReasonOk returns a tuple with the ArchiveReason field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetAssignee() SecurityMonitoringTriageUser
GetAssignee returns the Assignee field value.
func (o *SecurityMonitoringSignalTriageAttributes) GetAssigneeOk() (*SecurityMonitoringTriageUser, bool)
GetAssigneeOk returns a tuple with the Assignee field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetIncidentIds() []int64
GetIncidentIds returns the IncidentIds field value.
func (o *SecurityMonitoringSignalTriageAttributes) GetIncidentIdsOk() (*[]int64, bool)
GetIncidentIdsOk returns a tuple with the IncidentIds field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetState() SecurityMonitoringSignalState
GetState returns the State field value.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateOk() (*SecurityMonitoringSignalState, bool)
GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateUpdateTimestamp() int64
GetStateUpdateTimestamp returns the StateUpdateTimestamp field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateUpdateTimestampOk() (*int64, bool)
GetStateUpdateTimestampOk returns a tuple with the StateUpdateTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateUpdateUser() SecurityMonitoringTriageUser
GetStateUpdateUser returns the StateUpdateUser field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateUpdateUserOk() (*SecurityMonitoringTriageUser, bool)
GetStateUpdateUserOk returns a tuple with the StateUpdateUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasArchiveComment() bool
HasArchiveComment returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasArchiveCommentTimestamp() bool
HasArchiveCommentTimestamp returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasArchiveCommentUser() bool
HasArchiveCommentUser returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasArchiveReason() bool
HasArchiveReason returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasStateUpdateTimestamp() bool
HasStateUpdateTimestamp returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasStateUpdateUser() bool
HasStateUpdateUser returns a boolean if a field has been set.
func (o SecurityMonitoringSignalTriageAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalTriageAttributes) SetArchiveComment(v string)
SetArchiveComment gets a reference to the given string and assigns it to the ArchiveComment field.
func (o *SecurityMonitoringSignalTriageAttributes) SetArchiveCommentTimestamp(v int64)
SetArchiveCommentTimestamp gets a reference to the given int64 and assigns it to the ArchiveCommentTimestamp field.
func (o *SecurityMonitoringSignalTriageAttributes) SetArchiveCommentUser(v SecurityMonitoringTriageUser)
SetArchiveCommentUser gets a reference to the given SecurityMonitoringTriageUser and assigns it to the ArchiveCommentUser field.
func (o *SecurityMonitoringSignalTriageAttributes) SetArchiveReason(v SecurityMonitoringSignalArchiveReason)
SetArchiveReason gets a reference to the given SecurityMonitoringSignalArchiveReason and assigns it to the ArchiveReason field.
func (o *SecurityMonitoringSignalTriageAttributes) SetAssignee(v SecurityMonitoringTriageUser)
SetAssignee sets field value.
func (o *SecurityMonitoringSignalTriageAttributes) SetIncidentIds(v []int64)
SetIncidentIds sets field value.
func (o *SecurityMonitoringSignalTriageAttributes) SetState(v SecurityMonitoringSignalState)
SetState sets field value.
func (o *SecurityMonitoringSignalTriageAttributes) SetStateUpdateTimestamp(v int64)
SetStateUpdateTimestamp gets a reference to the given int64 and assigns it to the StateUpdateTimestamp field.
func (o *SecurityMonitoringSignalTriageAttributes) SetStateUpdateUser(v SecurityMonitoringTriageUser)
SetStateUpdateUser gets a reference to the given SecurityMonitoringTriageUser and assigns it to the StateUpdateUser field.
func (o *SecurityMonitoringSignalTriageAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalTriageUpdateData Data containing the updated triage attributes of the signal.
type SecurityMonitoringSignalTriageUpdateData struct {
// Attributes describing a triage state update operation over a security signal.
Attributes *SecurityMonitoringSignalTriageAttributes `json:"attributes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalTriageUpdateData() *SecurityMonitoringSignalTriageUpdateData
NewSecurityMonitoringSignalTriageUpdateData instantiates a new SecurityMonitoringSignalTriageUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalTriageUpdateDataWithDefaults() *SecurityMonitoringSignalTriageUpdateData
NewSecurityMonitoringSignalTriageUpdateDataWithDefaults instantiates a new SecurityMonitoringSignalTriageUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalTriageUpdateData) GetAttributes() SecurityMonitoringSignalTriageAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageUpdateData) GetAttributesOk() (*SecurityMonitoringSignalTriageAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o SecurityMonitoringSignalTriageUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalTriageUpdateData) SetAttributes(v SecurityMonitoringSignalTriageAttributes)
SetAttributes gets a reference to the given SecurityMonitoringSignalTriageAttributes and assigns it to the Attributes field.
func (o *SecurityMonitoringSignalTriageUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalTriageUpdateResponse The response returned after all triage operations, containing the updated signal triage data.
type SecurityMonitoringSignalTriageUpdateResponse struct {
// Data containing the updated triage attributes of the signal.
Data SecurityMonitoringSignalTriageUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalTriageUpdateResponse(data SecurityMonitoringSignalTriageUpdateData) *SecurityMonitoringSignalTriageUpdateResponse
NewSecurityMonitoringSignalTriageUpdateResponse instantiates a new SecurityMonitoringSignalTriageUpdateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalTriageUpdateResponseWithDefaults() *SecurityMonitoringSignalTriageUpdateResponse
NewSecurityMonitoringSignalTriageUpdateResponseWithDefaults instantiates a new SecurityMonitoringSignalTriageUpdateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalTriageUpdateResponse) GetData() SecurityMonitoringSignalTriageUpdateData
GetData returns the Data field value.
func (o *SecurityMonitoringSignalTriageUpdateResponse) GetDataOk() (*SecurityMonitoringSignalTriageUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalTriageUpdateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalTriageUpdateResponse) SetData(v SecurityMonitoringSignalTriageUpdateData)
SetData sets field value.
func (o *SecurityMonitoringSignalTriageUpdateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalType The type of event.
type SecurityMonitoringSignalType string
List of SecurityMonitoringSignalType.
const (
SECURITYMONITORINGSIGNALTYPE_SIGNAL SecurityMonitoringSignalType = "signal"
)
func NewSecurityMonitoringSignalTypeFromValue(v string) (*SecurityMonitoringSignalType, error)
NewSecurityMonitoringSignalTypeFromValue returns a pointer to a valid SecurityMonitoringSignalType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalType) GetAllowedValues() []SecurityMonitoringSignalType
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalType) Ptr() *SecurityMonitoringSignalType
Ptr returns reference to SecurityMonitoringSignalType value.
func (v *SecurityMonitoringSignalType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsListResponse The response object with all security signals matching the request and pagination information.
type SecurityMonitoringSignalsListResponse struct {
// An array of security signals matching the request.
Data []SecurityMonitoringSignal `json:"data,omitempty"`
// Links attributes.
Links *SecurityMonitoringSignalsListResponseLinks `json:"links,omitempty"`
// Meta attributes.
Meta *SecurityMonitoringSignalsListResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalsListResponse() *SecurityMonitoringSignalsListResponse
NewSecurityMonitoringSignalsListResponse instantiates a new SecurityMonitoringSignalsListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalsListResponseWithDefaults() *SecurityMonitoringSignalsListResponse
NewSecurityMonitoringSignalsListResponseWithDefaults instantiates a new SecurityMonitoringSignalsListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalsListResponse) GetData() []SecurityMonitoringSignal
GetData returns the Data field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponse) GetDataOk() (*[]SecurityMonitoringSignal, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponse) GetLinks() SecurityMonitoringSignalsListResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponse) GetLinksOk() (*SecurityMonitoringSignalsListResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponse) GetMeta() SecurityMonitoringSignalsListResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponse) GetMetaOk() (*SecurityMonitoringSignalsListResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalsListResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalsListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SecurityMonitoringSignalsListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalsListResponse) SetData(v []SecurityMonitoringSignal)
SetData gets a reference to the given []SecurityMonitoringSignal and assigns it to the Data field.
func (o *SecurityMonitoringSignalsListResponse) SetLinks(v SecurityMonitoringSignalsListResponseLinks)
SetLinks gets a reference to the given SecurityMonitoringSignalsListResponseLinks and assigns it to the Links field.
func (o *SecurityMonitoringSignalsListResponse) SetMeta(v SecurityMonitoringSignalsListResponseMeta)
SetMeta gets a reference to the given SecurityMonitoringSignalsListResponseMeta and assigns it to the Meta field.
func (o *SecurityMonitoringSignalsListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsListResponseLinks Links attributes.
type SecurityMonitoringSignalsListResponseLinks struct {
// The link for the next set of results. **Note**: The request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalsListResponseLinks() *SecurityMonitoringSignalsListResponseLinks
NewSecurityMonitoringSignalsListResponseLinks instantiates a new SecurityMonitoringSignalsListResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalsListResponseLinksWithDefaults() *SecurityMonitoringSignalsListResponseLinks
NewSecurityMonitoringSignalsListResponseLinksWithDefaults instantiates a new SecurityMonitoringSignalsListResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalsListResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o SecurityMonitoringSignalsListResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalsListResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *SecurityMonitoringSignalsListResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsListResponseMeta Meta attributes.
type SecurityMonitoringSignalsListResponseMeta struct {
// Paging attributes.
Page *SecurityMonitoringSignalsListResponseMetaPage `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalsListResponseMeta() *SecurityMonitoringSignalsListResponseMeta
NewSecurityMonitoringSignalsListResponseMeta instantiates a new SecurityMonitoringSignalsListResponseMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalsListResponseMetaWithDefaults() *SecurityMonitoringSignalsListResponseMeta
NewSecurityMonitoringSignalsListResponseMetaWithDefaults instantiates a new SecurityMonitoringSignalsListResponseMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalsListResponseMeta) GetPage() SecurityMonitoringSignalsListResponseMetaPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponseMeta) GetPageOk() (*SecurityMonitoringSignalsListResponseMetaPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponseMeta) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o SecurityMonitoringSignalsListResponseMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalsListResponseMeta) SetPage(v SecurityMonitoringSignalsListResponseMetaPage)
SetPage gets a reference to the given SecurityMonitoringSignalsListResponseMetaPage and assigns it to the Page field.
func (o *SecurityMonitoringSignalsListResponseMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsListResponseMetaPage Paging attributes.
type SecurityMonitoringSignalsListResponseMetaPage struct {
// The cursor used to get the next results, if any. To make the next request, use the same
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalsListResponseMetaPage() *SecurityMonitoringSignalsListResponseMetaPage
NewSecurityMonitoringSignalsListResponseMetaPage instantiates a new SecurityMonitoringSignalsListResponseMetaPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalsListResponseMetaPageWithDefaults() *SecurityMonitoringSignalsListResponseMetaPage
NewSecurityMonitoringSignalsListResponseMetaPageWithDefaults instantiates a new SecurityMonitoringSignalsListResponseMetaPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalsListResponseMetaPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponseMetaPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponseMetaPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o SecurityMonitoringSignalsListResponseMetaPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalsListResponseMetaPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *SecurityMonitoringSignalsListResponseMetaPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsSort The sort parameters used for querying security signals.
type SecurityMonitoringSignalsSort string
List of SecurityMonitoringSignalsSort.
const (
SECURITYMONITORINGSIGNALSSORT_TIMESTAMP_ASCENDING SecurityMonitoringSignalsSort = "timestamp"
SECURITYMONITORINGSIGNALSSORT_TIMESTAMP_DESCENDING SecurityMonitoringSignalsSort = "-timestamp"
)
func NewSecurityMonitoringSignalsSortFromValue(v string) (*SecurityMonitoringSignalsSort, error)
NewSecurityMonitoringSignalsSortFromValue returns a pointer to a valid SecurityMonitoringSignalsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalsSort) GetAllowedValues() []SecurityMonitoringSignalsSort
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalsSort) Ptr() *SecurityMonitoringSignalsSort
Ptr returns reference to SecurityMonitoringSignalsSort value.
func (v *SecurityMonitoringSignalsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringStandardRuleCreatePayload Create a new rule.
type SecurityMonitoringStandardRuleCreatePayload struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCaseCreate `json:"cases"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// Whether the rule is enabled.
IsEnabled bool `json:"isEnabled"`
// Message for generated signals.
Message string `json:"message"`
// The name of the rule.
Name string `json:"name"`
// Options on rules.
Options SecurityMonitoringRuleOptions `json:"options"`
// Queries for selecting logs which are part of the rule.
Queries []SecurityMonitoringStandardRuleQuery `json:"queries"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *SecurityMonitoringRuleTypeCreate `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringStandardRuleCreatePayload(cases []SecurityMonitoringRuleCaseCreate, isEnabled bool, message string, name string, options SecurityMonitoringRuleOptions, queries []SecurityMonitoringStandardRuleQuery) *SecurityMonitoringStandardRuleCreatePayload
NewSecurityMonitoringStandardRuleCreatePayload instantiates a new SecurityMonitoringStandardRuleCreatePayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringStandardRuleCreatePayloadWithDefaults() *SecurityMonitoringStandardRuleCreatePayload
NewSecurityMonitoringStandardRuleCreatePayloadWithDefaults instantiates a new SecurityMonitoringStandardRuleCreatePayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetCases() []SecurityMonitoringRuleCaseCreate
GetCases returns the Cases field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetCasesOk() (*[]SecurityMonitoringRuleCaseCreate, bool)
GetCasesOk returns a tuple with the Cases field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetMessage() string
GetMessage returns the Message field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetName() string
GetName returns the Name field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetQueries() []SecurityMonitoringStandardRuleQuery
GetQueries returns the Queries field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetQueriesOk() (*[]SecurityMonitoringStandardRuleQuery, bool)
GetQueriesOk returns a tuple with the Queries field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetType() SecurityMonitoringRuleTypeCreate
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetTypeOk() (*SecurityMonitoringRuleTypeCreate, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) HasType() bool
HasType returns a boolean if a field has been set.
func (o SecurityMonitoringStandardRuleCreatePayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetCases(v []SecurityMonitoringRuleCaseCreate)
SetCases sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetIsEnabled(v bool)
SetIsEnabled sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetMessage(v string)
SetMessage sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetName(v string)
SetName sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetQueries(v []SecurityMonitoringStandardRuleQuery)
SetQueries sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetType(v SecurityMonitoringRuleTypeCreate)
SetType gets a reference to the given SecurityMonitoringRuleTypeCreate and assigns it to the Type field.
func (o *SecurityMonitoringStandardRuleCreatePayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringStandardRuleQuery Query for matching rule.
type SecurityMonitoringStandardRuleQuery struct {
// The aggregation type.
Aggregation *SecurityMonitoringRuleQueryAggregation `json:"aggregation,omitempty"`
// Field for which the cardinality is measured. Sent as an array.
DistinctFields []string `json:"distinctFields,omitempty"`
// Fields to group by.
GroupByFields []string `json:"groupByFields,omitempty"`
// (Deprecated) The target field to aggregate over when using the sum or max
// aggregations. `metrics` field should be used instead.
// Deprecated
Metric *string `json:"metric,omitempty"`
// Group of target fields to aggregate over when using the sum, max, geo data, or new value aggregations. The sum, max, and geo data aggregations only accept one value in this list, whereas the new value aggregation accepts up to five values.
Metrics []string `json:"metrics,omitempty"`
// Name of the query.
Name *string `json:"name,omitempty"`
// Query to run on logs.
Query string `json:"query"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringStandardRuleQuery(query string) *SecurityMonitoringStandardRuleQuery
NewSecurityMonitoringStandardRuleQuery instantiates a new SecurityMonitoringStandardRuleQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringStandardRuleQueryWithDefaults() *SecurityMonitoringStandardRuleQuery
NewSecurityMonitoringStandardRuleQueryWithDefaults instantiates a new SecurityMonitoringStandardRuleQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringStandardRuleQuery) GetAggregation() SecurityMonitoringRuleQueryAggregation
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetAggregationOk() (*SecurityMonitoringRuleQueryAggregation, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetDistinctFields() []string
GetDistinctFields returns the DistinctFields field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetDistinctFieldsOk() (*[]string, bool)
GetDistinctFieldsOk returns a tuple with the DistinctFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetGroupByFields() []string
GetGroupByFields returns the GroupByFields field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetGroupByFieldsOk() (*[]string, bool)
GetGroupByFieldsOk returns a tuple with the GroupByFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise. Deprecated
func (o *SecurityMonitoringStandardRuleQuery) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated
func (o *SecurityMonitoringStandardRuleQuery) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetQuery() string
GetQuery returns the Query field value.
func (o *SecurityMonitoringStandardRuleQuery) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasDistinctFields() bool
HasDistinctFields returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasGroupByFields() bool
HasGroupByFields returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o SecurityMonitoringStandardRuleQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringStandardRuleQuery) SetAggregation(v SecurityMonitoringRuleQueryAggregation)
SetAggregation gets a reference to the given SecurityMonitoringRuleQueryAggregation and assigns it to the Aggregation field.
func (o *SecurityMonitoringStandardRuleQuery) SetDistinctFields(v []string)
SetDistinctFields gets a reference to the given []string and assigns it to the DistinctFields field.
func (o *SecurityMonitoringStandardRuleQuery) SetGroupByFields(v []string)
SetGroupByFields gets a reference to the given []string and assigns it to the GroupByFields field.
func (o *SecurityMonitoringStandardRuleQuery) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field. Deprecated
func (o *SecurityMonitoringStandardRuleQuery) SetMetrics(v []string)
SetMetrics gets a reference to the given []string and assigns it to the Metrics field.
func (o *SecurityMonitoringStandardRuleQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringStandardRuleQuery) SetQuery(v string)
SetQuery sets field value.
func (o *SecurityMonitoringStandardRuleQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringStandardRuleResponse Rule.
type SecurityMonitoringStandardRuleResponse struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCase `json:"cases,omitempty"`
// How to generate compliance signals. Useful for cloud_configuration rules only.
ComplianceSignalOptions *CloudConfigurationRuleComplianceSignalOptions `json:"complianceSignalOptions,omitempty"`
// When the rule was created, timestamp in milliseconds.
CreatedAt *int64 `json:"createdAt,omitempty"`
// User ID of the user who created the rule.
CreationAuthorId *int64 `json:"creationAuthorId,omitempty"`
// When the rule will be deprecated, timestamp in milliseconds.
DeprecationDate *int64 `json:"deprecationDate,omitempty"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// The ID of the rule.
Id *string `json:"id,omitempty"`
// Whether the rule is included by default.
IsDefault *bool `json:"isDefault,omitempty"`
// Whether the rule has been deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// Whether the rule is enabled.
IsEnabled *bool `json:"isEnabled,omitempty"`
// Message for generated signals.
Message *string `json:"message,omitempty"`
// The name of the rule.
Name *string `json:"name,omitempty"`
// Options on rules.
Options *SecurityMonitoringRuleOptions `json:"options,omitempty"`
// Queries for selecting logs which are part of the rule.
Queries []SecurityMonitoringStandardRuleQuery `json:"queries,omitempty"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *SecurityMonitoringRuleTypeRead `json:"type,omitempty"`
// User ID of the user who updated the rule.
UpdateAuthorId *int64 `json:"updateAuthorId,omitempty"`
// The version of the rule.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringStandardRuleResponse() *SecurityMonitoringStandardRuleResponse
NewSecurityMonitoringStandardRuleResponse instantiates a new SecurityMonitoringStandardRuleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringStandardRuleResponseWithDefaults() *SecurityMonitoringStandardRuleResponse
NewSecurityMonitoringStandardRuleResponseWithDefaults instantiates a new SecurityMonitoringStandardRuleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringStandardRuleResponse) GetCases() []SecurityMonitoringRuleCase
GetCases returns the Cases field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetCasesOk() (*[]SecurityMonitoringRuleCase, bool)
GetCasesOk returns a tuple with the Cases field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetComplianceSignalOptions() CloudConfigurationRuleComplianceSignalOptions
GetComplianceSignalOptions returns the ComplianceSignalOptions field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetComplianceSignalOptionsOk() (*CloudConfigurationRuleComplianceSignalOptions, bool)
GetComplianceSignalOptionsOk returns a tuple with the ComplianceSignalOptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetCreationAuthorId() int64
GetCreationAuthorId returns the CreationAuthorId field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetCreationAuthorIdOk() (*int64, bool)
GetCreationAuthorIdOk returns a tuple with the CreationAuthorId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetDeprecationDate() int64
GetDeprecationDate returns the DeprecationDate field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetDeprecationDateOk() (*int64, bool)
GetDeprecationDateOk returns a tuple with the DeprecationDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetIsDefault() bool
GetIsDefault returns the IsDefault field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetIsDefaultOk() (*bool, bool)
GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetIsDeleted() bool
GetIsDeleted returns the IsDeleted field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetIsDeletedOk() (*bool, bool)
GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetQueries() []SecurityMonitoringStandardRuleQuery
GetQueries returns the Queries field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetQueriesOk() (*[]SecurityMonitoringStandardRuleQuery, bool)
GetQueriesOk returns a tuple with the Queries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetType() SecurityMonitoringRuleTypeRead
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetTypeOk() (*SecurityMonitoringRuleTypeRead, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetUpdateAuthorId() int64
GetUpdateAuthorId returns the UpdateAuthorId field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetUpdateAuthorIdOk() (*int64, bool)
GetUpdateAuthorIdOk returns a tuple with the UpdateAuthorId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasCases() bool
HasCases returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasComplianceSignalOptions() bool
HasComplianceSignalOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasCreationAuthorId() bool
HasCreationAuthorId returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasDeprecationDate() bool
HasDeprecationDate returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasIsDefault() bool
HasIsDefault returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasIsDeleted() bool
HasIsDeleted returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasQueries() bool
HasQueries returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasUpdateAuthorId() bool
HasUpdateAuthorId returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringStandardRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringStandardRuleResponse) SetCases(v []SecurityMonitoringRuleCase)
SetCases gets a reference to the given []SecurityMonitoringRuleCase and assigns it to the Cases field.
func (o *SecurityMonitoringStandardRuleResponse) SetComplianceSignalOptions(v CloudConfigurationRuleComplianceSignalOptions)
SetComplianceSignalOptions gets a reference to the given CloudConfigurationRuleComplianceSignalOptions and assigns it to the ComplianceSignalOptions field.
func (o *SecurityMonitoringStandardRuleResponse) SetCreatedAt(v int64)
SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *SecurityMonitoringStandardRuleResponse) SetCreationAuthorId(v int64)
SetCreationAuthorId gets a reference to the given int64 and assigns it to the CreationAuthorId field.
func (o *SecurityMonitoringStandardRuleResponse) SetDeprecationDate(v int64)
SetDeprecationDate gets a reference to the given int64 and assigns it to the DeprecationDate field.
func (o *SecurityMonitoringStandardRuleResponse) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringStandardRuleResponse) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringStandardRuleResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SecurityMonitoringStandardRuleResponse) SetIsDefault(v bool)
SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.
func (o *SecurityMonitoringStandardRuleResponse) SetIsDeleted(v bool)
SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field.
func (o *SecurityMonitoringStandardRuleResponse) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityMonitoringStandardRuleResponse) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *SecurityMonitoringStandardRuleResponse) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringStandardRuleResponse) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions gets a reference to the given SecurityMonitoringRuleOptions and assigns it to the Options field.
func (o *SecurityMonitoringStandardRuleResponse) SetQueries(v []SecurityMonitoringStandardRuleQuery)
SetQueries gets a reference to the given []SecurityMonitoringStandardRuleQuery and assigns it to the Queries field.
func (o *SecurityMonitoringStandardRuleResponse) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringStandardRuleResponse) SetType(v SecurityMonitoringRuleTypeRead)
SetType gets a reference to the given SecurityMonitoringRuleTypeRead and assigns it to the Type field.
func (o *SecurityMonitoringStandardRuleResponse) SetUpdateAuthorId(v int64)
SetUpdateAuthorId gets a reference to the given int64 and assigns it to the UpdateAuthorId field.
func (o *SecurityMonitoringStandardRuleResponse) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringStandardRuleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringTriageUser Object representing a given user entity.
type SecurityMonitoringTriageUser struct {
// The handle for this user account.
Handle *string `json:"handle,omitempty"`
// Numerical ID assigned by Datadog to this user account.
Id *int64 `json:"id,omitempty"`
// The name for this user account.
Name datadog.NullableString `json:"name,omitempty"`
// UUID assigned by Datadog to this user account.
Uuid string `json:"uuid"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringTriageUser(uuid string) *SecurityMonitoringTriageUser
NewSecurityMonitoringTriageUser instantiates a new SecurityMonitoringTriageUser object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringTriageUserWithDefaults() *SecurityMonitoringTriageUser
NewSecurityMonitoringTriageUserWithDefaults instantiates a new SecurityMonitoringTriageUser object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringTriageUser) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *SecurityMonitoringTriageUser) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringTriageUser) GetId() int64
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityMonitoringTriageUser) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringTriageUser) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SecurityMonitoringTriageUser) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *SecurityMonitoringTriageUser) GetUuid() string
GetUuid returns the Uuid field value.
func (o *SecurityMonitoringTriageUser) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringTriageUser) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *SecurityMonitoringTriageUser) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityMonitoringTriageUser) HasName() bool
HasName returns a boolean if a field has been set.
func (o SecurityMonitoringTriageUser) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringTriageUser) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *SecurityMonitoringTriageUser) SetId(v int64)
SetId gets a reference to the given int64 and assigns it to the Id field.
func (o *SecurityMonitoringTriageUser) SetName(v string)
SetName gets a reference to the given datadog.NullableString and assigns it to the Name field.
func (o *SecurityMonitoringTriageUser) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil.
func (o *SecurityMonitoringTriageUser) SetUuid(v string)
SetUuid sets field value.
func (o *SecurityMonitoringTriageUser) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *SecurityMonitoringTriageUser) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil.
SensitiveDataScannerApi service type
type SensitiveDataScannerApi datadog.Service
func NewSensitiveDataScannerApi(client *datadog.APIClient) *SensitiveDataScannerApi
NewSensitiveDataScannerApi Returns NewSensitiveDataScannerApi.
func (a *SensitiveDataScannerApi) CreateScanningGroup(ctx _context.Context, body SensitiveDataScannerGroupCreateRequest) (SensitiveDataScannerCreateGroupResponse, *_nethttp.Response, error)
CreateScanningGroup Create Scanning Group. Create a scanning group. The request MAY include a configuration relationship. A rules relationship can be omitted entirely, but if it is included it MUST be null or an empty array (rules cannot be created at the same time). The new group will be ordered last within the configuration.
func (a *SensitiveDataScannerApi) CreateScanningRule(ctx _context.Context, body SensitiveDataScannerRuleCreateRequest) (SensitiveDataScannerCreateRuleResponse, *_nethttp.Response, error)
CreateScanningRule Create Scanning Rule. Create a scanning rule in a sensitive data scanner group, ordered last. The posted rule MUST include a group relationship. It MUST include either a standard_pattern relationship or a regex attribute, but not both. If included_attributes is empty or missing, we will scan all attributes except excluded_attributes. If both are missing, we will scan the whole event.
func (a *SensitiveDataScannerApi) DeleteScanningGroup(ctx _context.Context, groupId string, body SensitiveDataScannerGroupDeleteRequest) (SensitiveDataScannerGroupDeleteResponse, *_nethttp.Response, error)
DeleteScanningGroup Delete Scanning Group. Delete a given group.
func (a *SensitiveDataScannerApi) DeleteScanningRule(ctx _context.Context, ruleId string, body SensitiveDataScannerRuleDeleteRequest) (SensitiveDataScannerRuleDeleteResponse, *_nethttp.Response, error)
DeleteScanningRule Delete Scanning Rule. Delete a given rule.
func (a *SensitiveDataScannerApi) ListScanningGroups(ctx _context.Context) (SensitiveDataScannerGetConfigResponse, *_nethttp.Response, error)
ListScanningGroups List Scanning Groups. List all the Scanning groups in your organization.
func (a *SensitiveDataScannerApi) ListStandardPatterns(ctx _context.Context) (SensitiveDataScannerStandardPatternsResponseData, *_nethttp.Response, error)
ListStandardPatterns List standard patterns. Returns all standard patterns.
func (a *SensitiveDataScannerApi) ReorderScanningGroups(ctx _context.Context, body SensitiveDataScannerConfigRequest) (SensitiveDataScannerReorderGroupsResponse, *_nethttp.Response, error)
ReorderScanningGroups Reorder Groups. Reorder the list of groups.
func (a *SensitiveDataScannerApi) UpdateScanningGroup(ctx _context.Context, groupId string, body SensitiveDataScannerGroupUpdateRequest) (SensitiveDataScannerGroupUpdateResponse, *_nethttp.Response, error)
UpdateScanningGroup Update Scanning Group. Update a group, including the order of the rules. Rules within the group are reordered by including a rules relationship. If the rules relationship is present, its data section MUST contain linkages for all of the rules currently in the group, and MUST NOT contain any others.
func (a *SensitiveDataScannerApi) UpdateScanningRule(ctx _context.Context, ruleId string, body SensitiveDataScannerRuleUpdateRequest) (SensitiveDataScannerRuleUpdateResponse, *_nethttp.Response, error)
UpdateScanningRule Update Scanning Rule. Update a scanning rule. The request body MUST NOT include a standard_pattern relationship, as that relationship is non-editable. Trying to edit the regex attribute of a rule with a standard_pattern relationship will also result in an error.
SensitiveDataScannerConfigRequest Group reorder request.
type SensitiveDataScannerConfigRequest struct {
// Data related to the reordering of scanning groups.
Data SensitiveDataScannerReorderConfig `json:"data"`
// Meta payload containing information about the API.
Meta SensitiveDataScannerMetaVersionOnly `json:"meta"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerConfigRequest(data SensitiveDataScannerReorderConfig, meta SensitiveDataScannerMetaVersionOnly) *SensitiveDataScannerConfigRequest
NewSensitiveDataScannerConfigRequest instantiates a new SensitiveDataScannerConfigRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerConfigRequestWithDefaults() *SensitiveDataScannerConfigRequest
NewSensitiveDataScannerConfigRequestWithDefaults instantiates a new SensitiveDataScannerConfigRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerConfigRequest) GetData() SensitiveDataScannerReorderConfig
GetData returns the Data field value.
func (o *SensitiveDataScannerConfigRequest) GetDataOk() (*SensitiveDataScannerReorderConfig, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *SensitiveDataScannerConfigRequest) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value.
func (o *SensitiveDataScannerConfigRequest) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value and a boolean to check if the value has been set.
func (o SensitiveDataScannerConfigRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerConfigRequest) SetData(v SensitiveDataScannerReorderConfig)
SetData sets field value.
func (o *SensitiveDataScannerConfigRequest) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta sets field value.
func (o *SensitiveDataScannerConfigRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerConfiguration A Sensitive Data Scanner configuration.
type SensitiveDataScannerConfiguration struct {
// ID of the configuration.
Id *string `json:"id,omitempty"`
// Sensitive Data Scanner configuration type.
Type *SensitiveDataScannerConfigurationType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerConfiguration() *SensitiveDataScannerConfiguration
NewSensitiveDataScannerConfiguration instantiates a new SensitiveDataScannerConfiguration object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerConfigurationWithDefaults() *SensitiveDataScannerConfiguration
NewSensitiveDataScannerConfigurationWithDefaults instantiates a new SensitiveDataScannerConfiguration object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerConfiguration) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerConfiguration) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerConfiguration) GetType() SensitiveDataScannerConfigurationType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerConfiguration) GetTypeOk() (*SensitiveDataScannerConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerConfiguration) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerConfiguration) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerConfiguration) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerConfiguration) SetType(v SensitiveDataScannerConfigurationType)
SetType gets a reference to the given SensitiveDataScannerConfigurationType and assigns it to the Type field.
func (o *SensitiveDataScannerConfiguration) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerConfigurationData A Sensitive Data Scanner configuration data.
type SensitiveDataScannerConfigurationData struct {
// A Sensitive Data Scanner configuration.
Data *SensitiveDataScannerConfiguration `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerConfigurationData() *SensitiveDataScannerConfigurationData
NewSensitiveDataScannerConfigurationData instantiates a new SensitiveDataScannerConfigurationData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerConfigurationDataWithDefaults() *SensitiveDataScannerConfigurationData
NewSensitiveDataScannerConfigurationDataWithDefaults instantiates a new SensitiveDataScannerConfigurationData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerConfigurationData) GetData() SensitiveDataScannerConfiguration
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerConfigurationData) GetDataOk() (*SensitiveDataScannerConfiguration, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerConfigurationData) HasData() bool
HasData returns a boolean if a field has been set.
func (o SensitiveDataScannerConfigurationData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerConfigurationData) SetData(v SensitiveDataScannerConfiguration)
SetData gets a reference to the given SensitiveDataScannerConfiguration and assigns it to the Data field.
func (o *SensitiveDataScannerConfigurationData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerConfigurationRelationships Relationships of the configuration.
type SensitiveDataScannerConfigurationRelationships struct {
// List of groups, ordered.
Groups *SensitiveDataScannerGroupList `json:"groups,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerConfigurationRelationships() *SensitiveDataScannerConfigurationRelationships
NewSensitiveDataScannerConfigurationRelationships instantiates a new SensitiveDataScannerConfigurationRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerConfigurationRelationshipsWithDefaults() *SensitiveDataScannerConfigurationRelationships
NewSensitiveDataScannerConfigurationRelationshipsWithDefaults instantiates a new SensitiveDataScannerConfigurationRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerConfigurationRelationships) GetGroups() SensitiveDataScannerGroupList
GetGroups returns the Groups field value if set, zero value otherwise.
func (o *SensitiveDataScannerConfigurationRelationships) GetGroupsOk() (*SensitiveDataScannerGroupList, bool)
GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerConfigurationRelationships) HasGroups() bool
HasGroups returns a boolean if a field has been set.
func (o SensitiveDataScannerConfigurationRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerConfigurationRelationships) SetGroups(v SensitiveDataScannerGroupList)
SetGroups gets a reference to the given SensitiveDataScannerGroupList and assigns it to the Groups field.
func (o *SensitiveDataScannerConfigurationRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerConfigurationType Sensitive Data Scanner configuration type.
type SensitiveDataScannerConfigurationType string
List of SensitiveDataScannerConfigurationType.
const (
SENSITIVEDATASCANNERCONFIGURATIONTYPE_SENSITIVE_DATA_SCANNER_CONFIGURATIONS SensitiveDataScannerConfigurationType = "sensitive_data_scanner_configuration"
)
func NewSensitiveDataScannerConfigurationTypeFromValue(v string) (*SensitiveDataScannerConfigurationType, error)
NewSensitiveDataScannerConfigurationTypeFromValue returns a pointer to a valid SensitiveDataScannerConfigurationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SensitiveDataScannerConfigurationType) GetAllowedValues() []SensitiveDataScannerConfigurationType
GetAllowedValues reeturns the list of possible values.
func (v SensitiveDataScannerConfigurationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SensitiveDataScannerConfigurationType) Ptr() *SensitiveDataScannerConfigurationType
Ptr returns reference to SensitiveDataScannerConfigurationType value.
func (v *SensitiveDataScannerConfigurationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerCreateGroupResponse Create group response.
type SensitiveDataScannerCreateGroupResponse struct {
// Response data related to the creation of a group.
Data *SensitiveDataScannerGroupResponse `json:"data,omitempty"`
// Meta payload containing information about the API.
Meta *SensitiveDataScannerMetaVersionOnly `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerCreateGroupResponse() *SensitiveDataScannerCreateGroupResponse
NewSensitiveDataScannerCreateGroupResponse instantiates a new SensitiveDataScannerCreateGroupResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerCreateGroupResponseWithDefaults() *SensitiveDataScannerCreateGroupResponse
NewSensitiveDataScannerCreateGroupResponseWithDefaults instantiates a new SensitiveDataScannerCreateGroupResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerCreateGroupResponse) GetData() SensitiveDataScannerGroupResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerCreateGroupResponse) GetDataOk() (*SensitiveDataScannerGroupResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerCreateGroupResponse) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerCreateGroupResponse) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerCreateGroupResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SensitiveDataScannerCreateGroupResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerCreateGroupResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerCreateGroupResponse) SetData(v SensitiveDataScannerGroupResponse)
SetData gets a reference to the given SensitiveDataScannerGroupResponse and assigns it to the Data field.
func (o *SensitiveDataScannerCreateGroupResponse) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta gets a reference to the given SensitiveDataScannerMetaVersionOnly and assigns it to the Meta field.
func (o *SensitiveDataScannerCreateGroupResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerCreateRuleResponse Create rule response.
type SensitiveDataScannerCreateRuleResponse struct {
// Response data related to the creation of a rule.
Data *SensitiveDataScannerRuleResponse `json:"data,omitempty"`
// Meta payload containing information about the API.
Meta *SensitiveDataScannerMetaVersionOnly `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerCreateRuleResponse() *SensitiveDataScannerCreateRuleResponse
NewSensitiveDataScannerCreateRuleResponse instantiates a new SensitiveDataScannerCreateRuleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerCreateRuleResponseWithDefaults() *SensitiveDataScannerCreateRuleResponse
NewSensitiveDataScannerCreateRuleResponseWithDefaults instantiates a new SensitiveDataScannerCreateRuleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerCreateRuleResponse) GetData() SensitiveDataScannerRuleResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerCreateRuleResponse) GetDataOk() (*SensitiveDataScannerRuleResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerCreateRuleResponse) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerCreateRuleResponse) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerCreateRuleResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SensitiveDataScannerCreateRuleResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerCreateRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerCreateRuleResponse) SetData(v SensitiveDataScannerRuleResponse)
SetData gets a reference to the given SensitiveDataScannerRuleResponse and assigns it to the Data field.
func (o *SensitiveDataScannerCreateRuleResponse) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta gets a reference to the given SensitiveDataScannerMetaVersionOnly and assigns it to the Meta field.
func (o *SensitiveDataScannerCreateRuleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerFilter Filter for the Scanning Group.
type SensitiveDataScannerFilter struct {
// Query to filter the events.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerFilter() *SensitiveDataScannerFilter
NewSensitiveDataScannerFilter instantiates a new SensitiveDataScannerFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerFilterWithDefaults() *SensitiveDataScannerFilter
NewSensitiveDataScannerFilterWithDefaults instantiates a new SensitiveDataScannerFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SensitiveDataScannerFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o SensitiveDataScannerFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SensitiveDataScannerFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGetConfigIncludedItem - An object related to the configuration.
type SensitiveDataScannerGetConfigIncludedItem struct {
SensitiveDataScannerRuleIncludedItem *SensitiveDataScannerRuleIncludedItem
SensitiveDataScannerGroupIncludedItem *SensitiveDataScannerGroupIncludedItem
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SensitiveDataScannerGroupIncludedItemAsSensitiveDataScannerGetConfigIncludedItem(v *SensitiveDataScannerGroupIncludedItem) SensitiveDataScannerGetConfigIncludedItem
SensitiveDataScannerGroupIncludedItemAsSensitiveDataScannerGetConfigIncludedItem is a convenience function that returns SensitiveDataScannerGroupIncludedItem wrapped in SensitiveDataScannerGetConfigIncludedItem.
func SensitiveDataScannerRuleIncludedItemAsSensitiveDataScannerGetConfigIncludedItem(v *SensitiveDataScannerRuleIncludedItem) SensitiveDataScannerGetConfigIncludedItem
SensitiveDataScannerRuleIncludedItemAsSensitiveDataScannerGetConfigIncludedItem is a convenience function that returns SensitiveDataScannerRuleIncludedItem wrapped in SensitiveDataScannerGetConfigIncludedItem.
func (obj *SensitiveDataScannerGetConfigIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SensitiveDataScannerGetConfigIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SensitiveDataScannerGetConfigIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SensitiveDataScannerGetConfigResponse Get all groups response.
type SensitiveDataScannerGetConfigResponse struct {
// Response data related to the scanning groups.
Data *SensitiveDataScannerGetConfigResponseData `json:"data,omitempty"`
// Included objects from relationships.
Included []SensitiveDataScannerGetConfigIncludedItem `json:"included,omitempty"`
// Meta response containing information about the API.
Meta *SensitiveDataScannerMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGetConfigResponse() *SensitiveDataScannerGetConfigResponse
NewSensitiveDataScannerGetConfigResponse instantiates a new SensitiveDataScannerGetConfigResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGetConfigResponseWithDefaults() *SensitiveDataScannerGetConfigResponse
NewSensitiveDataScannerGetConfigResponseWithDefaults instantiates a new SensitiveDataScannerGetConfigResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGetConfigResponse) GetData() SensitiveDataScannerGetConfigResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerGetConfigResponse) GetDataOk() (*SensitiveDataScannerGetConfigResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGetConfigResponse) GetIncluded() []SensitiveDataScannerGetConfigIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *SensitiveDataScannerGetConfigResponse) GetIncludedOk() (*[]SensitiveDataScannerGetConfigIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGetConfigResponse) GetMeta() SensitiveDataScannerMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerGetConfigResponse) GetMetaOk() (*SensitiveDataScannerMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGetConfigResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SensitiveDataScannerGetConfigResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *SensitiveDataScannerGetConfigResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerGetConfigResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGetConfigResponse) SetData(v SensitiveDataScannerGetConfigResponseData)
SetData gets a reference to the given SensitiveDataScannerGetConfigResponseData and assigns it to the Data field.
func (o *SensitiveDataScannerGetConfigResponse) SetIncluded(v []SensitiveDataScannerGetConfigIncludedItem)
SetIncluded gets a reference to the given []SensitiveDataScannerGetConfigIncludedItem and assigns it to the Included field.
func (o *SensitiveDataScannerGetConfigResponse) SetMeta(v SensitiveDataScannerMeta)
SetMeta gets a reference to the given SensitiveDataScannerMeta and assigns it to the Meta field.
func (o *SensitiveDataScannerGetConfigResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGetConfigResponseData Response data related to the scanning groups.
type SensitiveDataScannerGetConfigResponseData struct {
// Attributes of the Sensitive Data configuration.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// ID of the configuration.
Id *string `json:"id,omitempty"`
// Relationships of the configuration.
Relationships *SensitiveDataScannerConfigurationRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner configuration type.
Type *SensitiveDataScannerConfigurationType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGetConfigResponseData() *SensitiveDataScannerGetConfigResponseData
NewSensitiveDataScannerGetConfigResponseData instantiates a new SensitiveDataScannerGetConfigResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGetConfigResponseDataWithDefaults() *SensitiveDataScannerGetConfigResponseData
NewSensitiveDataScannerGetConfigResponseDataWithDefaults instantiates a new SensitiveDataScannerGetConfigResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGetConfigResponseData) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SensitiveDataScannerGetConfigResponseData) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGetConfigResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerGetConfigResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGetConfigResponseData) GetRelationships() SensitiveDataScannerConfigurationRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerGetConfigResponseData) GetRelationshipsOk() (*SensitiveDataScannerConfigurationRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGetConfigResponseData) GetType() SensitiveDataScannerConfigurationType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerGetConfigResponseData) GetTypeOk() (*SensitiveDataScannerConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGetConfigResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SensitiveDataScannerGetConfigResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerGetConfigResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *SensitiveDataScannerGetConfigResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerGetConfigResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGetConfigResponseData) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *SensitiveDataScannerGetConfigResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerGetConfigResponseData) SetRelationships(v SensitiveDataScannerConfigurationRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerConfigurationRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerGetConfigResponseData) SetType(v SensitiveDataScannerConfigurationType)
SetType gets a reference to the given SensitiveDataScannerConfigurationType and assigns it to the Type field.
func (o *SensitiveDataScannerGetConfigResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroup A scanning group.
type SensitiveDataScannerGroup struct {
// ID of the group.
Id *string `json:"id,omitempty"`
// Sensitive Data Scanner group type.
Type *SensitiveDataScannerGroupType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroup() *SensitiveDataScannerGroup
NewSensitiveDataScannerGroup instantiates a new SensitiveDataScannerGroup object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupWithDefaults() *SensitiveDataScannerGroup
NewSensitiveDataScannerGroupWithDefaults instantiates a new SensitiveDataScannerGroup object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroup) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroup) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroup) GetType() SensitiveDataScannerGroupType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroup) GetTypeOk() (*SensitiveDataScannerGroupType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroup) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroup) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerGroup) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroup) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerGroup) SetType(v SensitiveDataScannerGroupType)
SetType gets a reference to the given SensitiveDataScannerGroupType and assigns it to the Type field.
func (o *SensitiveDataScannerGroup) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupAttributes Attributes of the Sensitive Data Scanner group.
type SensitiveDataScannerGroupAttributes struct {
// Description of the group.
Description *string `json:"description,omitempty"`
// Filter for the Scanning Group.
Filter *SensitiveDataScannerFilter `json:"filter,omitempty"`
// Whether or not the group is enabled.
IsEnabled *bool `json:"is_enabled,omitempty"`
// Name of the group.
Name *string `json:"name,omitempty"`
// List of products the scanning group applies.
ProductList []SensitiveDataScannerProduct `json:"product_list,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupAttributes() *SensitiveDataScannerGroupAttributes
NewSensitiveDataScannerGroupAttributes instantiates a new SensitiveDataScannerGroupAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupAttributesWithDefaults() *SensitiveDataScannerGroupAttributes
NewSensitiveDataScannerGroupAttributesWithDefaults instantiates a new SensitiveDataScannerGroupAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupAttributes) GetFilter() SensitiveDataScannerFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupAttributes) GetFilterOk() (*SensitiveDataScannerFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupAttributes) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupAttributes) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupAttributes) GetProductList() []SensitiveDataScannerProduct
GetProductList returns the ProductList field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupAttributes) GetProductListOk() (*[]SensitiveDataScannerProduct, bool)
GetProductListOk returns a tuple with the ProductList field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupAttributes) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupAttributes) HasProductList() bool
HasProductList returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *SensitiveDataScannerGroupAttributes) SetFilter(v SensitiveDataScannerFilter)
SetFilter gets a reference to the given SensitiveDataScannerFilter and assigns it to the Filter field.
func (o *SensitiveDataScannerGroupAttributes) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SensitiveDataScannerGroupAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SensitiveDataScannerGroupAttributes) SetProductList(v []SensitiveDataScannerProduct)
SetProductList gets a reference to the given []SensitiveDataScannerProduct and assigns it to the ProductList field.
func (o *SensitiveDataScannerGroupAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupCreate Data related to the creation of a group.
type SensitiveDataScannerGroupCreate struct {
// Attributes of the Sensitive Data Scanner group.
Attributes SensitiveDataScannerGroupAttributes `json:"attributes"`
// Relationships of the group.
Relationships *SensitiveDataScannerGroupRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner group type.
Type SensitiveDataScannerGroupType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupCreate(attributes SensitiveDataScannerGroupAttributes, typeVar SensitiveDataScannerGroupType) *SensitiveDataScannerGroupCreate
NewSensitiveDataScannerGroupCreate instantiates a new SensitiveDataScannerGroupCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupCreateWithDefaults() *SensitiveDataScannerGroupCreate
NewSensitiveDataScannerGroupCreateWithDefaults instantiates a new SensitiveDataScannerGroupCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupCreate) GetAttributes() SensitiveDataScannerGroupAttributes
GetAttributes returns the Attributes field value.
func (o *SensitiveDataScannerGroupCreate) GetAttributesOk() (*SensitiveDataScannerGroupAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupCreate) GetRelationships() SensitiveDataScannerGroupRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupCreate) GetRelationshipsOk() (*SensitiveDataScannerGroupRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupCreate) GetType() SensitiveDataScannerGroupType
GetType returns the Type field value.
func (o *SensitiveDataScannerGroupCreate) GetTypeOk() (*SensitiveDataScannerGroupType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupCreate) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupCreate) SetAttributes(v SensitiveDataScannerGroupAttributes)
SetAttributes sets field value.
func (o *SensitiveDataScannerGroupCreate) SetRelationships(v SensitiveDataScannerGroupRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerGroupRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerGroupCreate) SetType(v SensitiveDataScannerGroupType)
SetType sets field value.
func (o *SensitiveDataScannerGroupCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupCreateRequest Create group request.
type SensitiveDataScannerGroupCreateRequest struct {
// Data related to the creation of a group.
Data *SensitiveDataScannerGroupCreate `json:"data,omitempty"`
// Meta payload containing information about the API.
Meta *SensitiveDataScannerMetaVersionOnly `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupCreateRequest() *SensitiveDataScannerGroupCreateRequest
NewSensitiveDataScannerGroupCreateRequest instantiates a new SensitiveDataScannerGroupCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupCreateRequestWithDefaults() *SensitiveDataScannerGroupCreateRequest
NewSensitiveDataScannerGroupCreateRequestWithDefaults instantiates a new SensitiveDataScannerGroupCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupCreateRequest) GetData() SensitiveDataScannerGroupCreate
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupCreateRequest) GetDataOk() (*SensitiveDataScannerGroupCreate, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupCreateRequest) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupCreateRequest) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupCreateRequest) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupCreateRequest) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupCreateRequest) SetData(v SensitiveDataScannerGroupCreate)
SetData gets a reference to the given SensitiveDataScannerGroupCreate and assigns it to the Data field.
func (o *SensitiveDataScannerGroupCreateRequest) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta gets a reference to the given SensitiveDataScannerMetaVersionOnly and assigns it to the Meta field.
func (o *SensitiveDataScannerGroupCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupData A scanning group data.
type SensitiveDataScannerGroupData struct {
// A scanning group.
Data *SensitiveDataScannerGroup `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupData() *SensitiveDataScannerGroupData
NewSensitiveDataScannerGroupData instantiates a new SensitiveDataScannerGroupData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupDataWithDefaults() *SensitiveDataScannerGroupData
NewSensitiveDataScannerGroupDataWithDefaults instantiates a new SensitiveDataScannerGroupData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupData) GetData() SensitiveDataScannerGroup
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupData) GetDataOk() (*SensitiveDataScannerGroup, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupData) HasData() bool
HasData returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupData) SetData(v SensitiveDataScannerGroup)
SetData gets a reference to the given SensitiveDataScannerGroup and assigns it to the Data field.
func (o *SensitiveDataScannerGroupData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupDeleteRequest Delete group request.
type SensitiveDataScannerGroupDeleteRequest struct {
// Meta payload containing information about the API.
Meta SensitiveDataScannerMetaVersionOnly `json:"meta"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupDeleteRequest(meta SensitiveDataScannerMetaVersionOnly) *SensitiveDataScannerGroupDeleteRequest
NewSensitiveDataScannerGroupDeleteRequest instantiates a new SensitiveDataScannerGroupDeleteRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupDeleteRequestWithDefaults() *SensitiveDataScannerGroupDeleteRequest
NewSensitiveDataScannerGroupDeleteRequestWithDefaults instantiates a new SensitiveDataScannerGroupDeleteRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupDeleteRequest) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value.
func (o *SensitiveDataScannerGroupDeleteRequest) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value and a boolean to check if the value has been set.
func (o SensitiveDataScannerGroupDeleteRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupDeleteRequest) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta sets field value.
func (o *SensitiveDataScannerGroupDeleteRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupDeleteResponse Delete group response.
type SensitiveDataScannerGroupDeleteResponse struct {
// Meta payload containing information about the API.
Meta *SensitiveDataScannerMetaVersionOnly `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupDeleteResponse() *SensitiveDataScannerGroupDeleteResponse
NewSensitiveDataScannerGroupDeleteResponse instantiates a new SensitiveDataScannerGroupDeleteResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupDeleteResponseWithDefaults() *SensitiveDataScannerGroupDeleteResponse
NewSensitiveDataScannerGroupDeleteResponseWithDefaults instantiates a new SensitiveDataScannerGroupDeleteResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupDeleteResponse) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupDeleteResponse) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupDeleteResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupDeleteResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupDeleteResponse) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta gets a reference to the given SensitiveDataScannerMetaVersionOnly and assigns it to the Meta field.
func (o *SensitiveDataScannerGroupDeleteResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupIncludedItem A Scanning Group included item.
type SensitiveDataScannerGroupIncludedItem struct {
// Attributes of the Sensitive Data Scanner group.
Attributes *SensitiveDataScannerGroupAttributes `json:"attributes,omitempty"`
// ID of the group.
Id *string `json:"id,omitempty"`
// Relationships of the group.
Relationships *SensitiveDataScannerGroupRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner group type.
Type *SensitiveDataScannerGroupType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupIncludedItem() *SensitiveDataScannerGroupIncludedItem
NewSensitiveDataScannerGroupIncludedItem instantiates a new SensitiveDataScannerGroupIncludedItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupIncludedItemWithDefaults() *SensitiveDataScannerGroupIncludedItem
NewSensitiveDataScannerGroupIncludedItemWithDefaults instantiates a new SensitiveDataScannerGroupIncludedItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupIncludedItem) GetAttributes() SensitiveDataScannerGroupAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupIncludedItem) GetAttributesOk() (*SensitiveDataScannerGroupAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupIncludedItem) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupIncludedItem) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupIncludedItem) GetRelationships() SensitiveDataScannerGroupRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupIncludedItem) GetRelationshipsOk() (*SensitiveDataScannerGroupRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupIncludedItem) GetType() SensitiveDataScannerGroupType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupIncludedItem) GetTypeOk() (*SensitiveDataScannerGroupType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupIncludedItem) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupIncludedItem) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupIncludedItem) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupIncludedItem) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupIncludedItem) SetAttributes(v SensitiveDataScannerGroupAttributes)
SetAttributes gets a reference to the given SensitiveDataScannerGroupAttributes and assigns it to the Attributes field.
func (o *SensitiveDataScannerGroupIncludedItem) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerGroupIncludedItem) SetRelationships(v SensitiveDataScannerGroupRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerGroupRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerGroupIncludedItem) SetType(v SensitiveDataScannerGroupType)
SetType gets a reference to the given SensitiveDataScannerGroupType and assigns it to the Type field.
func (o *SensitiveDataScannerGroupIncludedItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupItem Data related to a Sensitive Data Scanner Group.
type SensitiveDataScannerGroupItem struct {
// ID of the group.
Id *string `json:"id,omitempty"`
// Sensitive Data Scanner group type.
Type *SensitiveDataScannerGroupType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupItem() *SensitiveDataScannerGroupItem
NewSensitiveDataScannerGroupItem instantiates a new SensitiveDataScannerGroupItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupItemWithDefaults() *SensitiveDataScannerGroupItem
NewSensitiveDataScannerGroupItemWithDefaults instantiates a new SensitiveDataScannerGroupItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupItem) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupItem) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupItem) GetType() SensitiveDataScannerGroupType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupItem) GetTypeOk() (*SensitiveDataScannerGroupType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupItem) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupItem) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupItem) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerGroupItem) SetType(v SensitiveDataScannerGroupType)
SetType gets a reference to the given SensitiveDataScannerGroupType and assigns it to the Type field.
func (o *SensitiveDataScannerGroupItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupList List of groups, ordered.
type SensitiveDataScannerGroupList struct {
// List of groups. The order is important.
Data []SensitiveDataScannerGroupItem `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupList() *SensitiveDataScannerGroupList
NewSensitiveDataScannerGroupList instantiates a new SensitiveDataScannerGroupList object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupListWithDefaults() *SensitiveDataScannerGroupList
NewSensitiveDataScannerGroupListWithDefaults instantiates a new SensitiveDataScannerGroupList object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupList) GetData() []SensitiveDataScannerGroupItem
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupList) GetDataOk() (*[]SensitiveDataScannerGroupItem, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupList) HasData() bool
HasData returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupList) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupList) SetData(v []SensitiveDataScannerGroupItem)
SetData gets a reference to the given []SensitiveDataScannerGroupItem and assigns it to the Data field.
func (o *SensitiveDataScannerGroupList) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupRelationships Relationships of the group.
type SensitiveDataScannerGroupRelationships struct {
// A Sensitive Data Scanner configuration data.
Configuration *SensitiveDataScannerConfigurationData `json:"configuration,omitempty"`
// Rules included in the group.
Rules *SensitiveDataScannerRuleData `json:"rules,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupRelationships() *SensitiveDataScannerGroupRelationships
NewSensitiveDataScannerGroupRelationships instantiates a new SensitiveDataScannerGroupRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupRelationshipsWithDefaults() *SensitiveDataScannerGroupRelationships
NewSensitiveDataScannerGroupRelationshipsWithDefaults instantiates a new SensitiveDataScannerGroupRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupRelationships) GetConfiguration() SensitiveDataScannerConfigurationData
GetConfiguration returns the Configuration field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupRelationships) GetConfigurationOk() (*SensitiveDataScannerConfigurationData, bool)
GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupRelationships) GetRules() SensitiveDataScannerRuleData
GetRules returns the Rules field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupRelationships) GetRulesOk() (*SensitiveDataScannerRuleData, bool)
GetRulesOk returns a tuple with the Rules field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupRelationships) HasConfiguration() bool
HasConfiguration returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupRelationships) HasRules() bool
HasRules returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupRelationships) SetConfiguration(v SensitiveDataScannerConfigurationData)
SetConfiguration gets a reference to the given SensitiveDataScannerConfigurationData and assigns it to the Configuration field.
func (o *SensitiveDataScannerGroupRelationships) SetRules(v SensitiveDataScannerRuleData)
SetRules gets a reference to the given SensitiveDataScannerRuleData and assigns it to the Rules field.
func (o *SensitiveDataScannerGroupRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupResponse Response data related to the creation of a group.
type SensitiveDataScannerGroupResponse struct {
// Attributes of the Sensitive Data Scanner group.
Attributes *SensitiveDataScannerGroupAttributes `json:"attributes,omitempty"`
// ID of the group.
Id *string `json:"id,omitempty"`
// Relationships of the group.
Relationships *SensitiveDataScannerGroupRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner group type.
Type *SensitiveDataScannerGroupType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupResponse() *SensitiveDataScannerGroupResponse
NewSensitiveDataScannerGroupResponse instantiates a new SensitiveDataScannerGroupResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupResponseWithDefaults() *SensitiveDataScannerGroupResponse
NewSensitiveDataScannerGroupResponseWithDefaults instantiates a new SensitiveDataScannerGroupResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupResponse) GetAttributes() SensitiveDataScannerGroupAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupResponse) GetAttributesOk() (*SensitiveDataScannerGroupAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupResponse) GetRelationships() SensitiveDataScannerGroupRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupResponse) GetRelationshipsOk() (*SensitiveDataScannerGroupRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupResponse) GetType() SensitiveDataScannerGroupType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupResponse) GetTypeOk() (*SensitiveDataScannerGroupType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupResponse) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupResponse) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupResponse) SetAttributes(v SensitiveDataScannerGroupAttributes)
SetAttributes gets a reference to the given SensitiveDataScannerGroupAttributes and assigns it to the Attributes field.
func (o *SensitiveDataScannerGroupResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerGroupResponse) SetRelationships(v SensitiveDataScannerGroupRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerGroupRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerGroupResponse) SetType(v SensitiveDataScannerGroupType)
SetType gets a reference to the given SensitiveDataScannerGroupType and assigns it to the Type field.
func (o *SensitiveDataScannerGroupResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupType Sensitive Data Scanner group type.
type SensitiveDataScannerGroupType string
List of SensitiveDataScannerGroupType.
const (
SENSITIVEDATASCANNERGROUPTYPE_SENSITIVE_DATA_SCANNER_GROUP SensitiveDataScannerGroupType = "sensitive_data_scanner_group"
)
func NewSensitiveDataScannerGroupTypeFromValue(v string) (*SensitiveDataScannerGroupType, error)
NewSensitiveDataScannerGroupTypeFromValue returns a pointer to a valid SensitiveDataScannerGroupType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SensitiveDataScannerGroupType) GetAllowedValues() []SensitiveDataScannerGroupType
GetAllowedValues reeturns the list of possible values.
func (v SensitiveDataScannerGroupType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SensitiveDataScannerGroupType) Ptr() *SensitiveDataScannerGroupType
Ptr returns reference to SensitiveDataScannerGroupType value.
func (v *SensitiveDataScannerGroupType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupUpdate Data related to the update of a group.
type SensitiveDataScannerGroupUpdate struct {
// Attributes of the Sensitive Data Scanner group.
Attributes *SensitiveDataScannerGroupAttributes `json:"attributes,omitempty"`
// ID of the group.
Id *string `json:"id,omitempty"`
// Relationships of the group.
Relationships *SensitiveDataScannerGroupRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner group type.
Type *SensitiveDataScannerGroupType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupUpdate() *SensitiveDataScannerGroupUpdate
NewSensitiveDataScannerGroupUpdate instantiates a new SensitiveDataScannerGroupUpdate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupUpdateWithDefaults() *SensitiveDataScannerGroupUpdate
NewSensitiveDataScannerGroupUpdateWithDefaults instantiates a new SensitiveDataScannerGroupUpdate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupUpdate) GetAttributes() SensitiveDataScannerGroupAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupUpdate) GetAttributesOk() (*SensitiveDataScannerGroupAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupUpdate) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupUpdate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupUpdate) GetRelationships() SensitiveDataScannerGroupRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupUpdate) GetRelationshipsOk() (*SensitiveDataScannerGroupRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupUpdate) GetType() SensitiveDataScannerGroupType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupUpdate) GetTypeOk() (*SensitiveDataScannerGroupType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupUpdate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupUpdate) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupUpdate) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *SensitiveDataScannerGroupUpdate) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupUpdate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupUpdate) SetAttributes(v SensitiveDataScannerGroupAttributes)
SetAttributes gets a reference to the given SensitiveDataScannerGroupAttributes and assigns it to the Attributes field.
func (o *SensitiveDataScannerGroupUpdate) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerGroupUpdate) SetRelationships(v SensitiveDataScannerGroupRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerGroupRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerGroupUpdate) SetType(v SensitiveDataScannerGroupType)
SetType gets a reference to the given SensitiveDataScannerGroupType and assigns it to the Type field.
func (o *SensitiveDataScannerGroupUpdate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupUpdateRequest Update group request.
type SensitiveDataScannerGroupUpdateRequest struct {
// Data related to the update of a group.
Data SensitiveDataScannerGroupUpdate `json:"data"`
// Meta payload containing information about the API.
Meta SensitiveDataScannerMetaVersionOnly `json:"meta"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupUpdateRequest(data SensitiveDataScannerGroupUpdate, meta SensitiveDataScannerMetaVersionOnly) *SensitiveDataScannerGroupUpdateRequest
NewSensitiveDataScannerGroupUpdateRequest instantiates a new SensitiveDataScannerGroupUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupUpdateRequestWithDefaults() *SensitiveDataScannerGroupUpdateRequest
NewSensitiveDataScannerGroupUpdateRequestWithDefaults instantiates a new SensitiveDataScannerGroupUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupUpdateRequest) GetData() SensitiveDataScannerGroupUpdate
GetData returns the Data field value.
func (o *SensitiveDataScannerGroupUpdateRequest) GetDataOk() (*SensitiveDataScannerGroupUpdate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupUpdateRequest) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value.
func (o *SensitiveDataScannerGroupUpdateRequest) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value and a boolean to check if the value has been set.
func (o SensitiveDataScannerGroupUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupUpdateRequest) SetData(v SensitiveDataScannerGroupUpdate)
SetData sets field value.
func (o *SensitiveDataScannerGroupUpdateRequest) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta sets field value.
func (o *SensitiveDataScannerGroupUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerGroupUpdateResponse Update group response.
type SensitiveDataScannerGroupUpdateResponse struct {
// Meta payload containing information about the API.
Meta *SensitiveDataScannerMetaVersionOnly `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerGroupUpdateResponse() *SensitiveDataScannerGroupUpdateResponse
NewSensitiveDataScannerGroupUpdateResponse instantiates a new SensitiveDataScannerGroupUpdateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerGroupUpdateResponseWithDefaults() *SensitiveDataScannerGroupUpdateResponse
NewSensitiveDataScannerGroupUpdateResponseWithDefaults instantiates a new SensitiveDataScannerGroupUpdateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerGroupUpdateResponse) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerGroupUpdateResponse) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerGroupUpdateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerGroupUpdateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerGroupUpdateResponse) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta gets a reference to the given SensitiveDataScannerMetaVersionOnly and assigns it to the Meta field.
func (o *SensitiveDataScannerGroupUpdateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerMeta Meta response containing information about the API.
type SensitiveDataScannerMeta struct {
// Maximum number of scanning rules allowed for the org.
CountLimit *int64 `json:"count_limit,omitempty"`
// Maximum number of scanning groups allowed for the org.
GroupCountLimit *int64 `json:"group_count_limit,omitempty"`
// Whether or not scanned events are highlighted in Logs or RUM for the org.
HasHighlightEnabled *bool `json:"has_highlight_enabled,omitempty"`
// Whether or not scanned events have multi-pass enabled.
HasMultiPassEnabled *bool `json:"has_multi_pass_enabled,omitempty"`
// Whether or not the org is compliant to the payment card industry standard.
IsPciCompliant *bool `json:"is_pci_compliant,omitempty"`
// Version of the API.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerMeta() *SensitiveDataScannerMeta
NewSensitiveDataScannerMeta instantiates a new SensitiveDataScannerMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerMetaWithDefaults() *SensitiveDataScannerMeta
NewSensitiveDataScannerMetaWithDefaults instantiates a new SensitiveDataScannerMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerMeta) GetCountLimit() int64
GetCountLimit returns the CountLimit field value if set, zero value otherwise.
func (o *SensitiveDataScannerMeta) GetCountLimitOk() (*int64, bool)
GetCountLimitOk returns a tuple with the CountLimit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerMeta) GetGroupCountLimit() int64
GetGroupCountLimit returns the GroupCountLimit field value if set, zero value otherwise.
func (o *SensitiveDataScannerMeta) GetGroupCountLimitOk() (*int64, bool)
GetGroupCountLimitOk returns a tuple with the GroupCountLimit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerMeta) GetHasHighlightEnabled() bool
GetHasHighlightEnabled returns the HasHighlightEnabled field value if set, zero value otherwise.
func (o *SensitiveDataScannerMeta) GetHasHighlightEnabledOk() (*bool, bool)
GetHasHighlightEnabledOk returns a tuple with the HasHighlightEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerMeta) GetHasMultiPassEnabled() bool
GetHasMultiPassEnabled returns the HasMultiPassEnabled field value if set, zero value otherwise.
func (o *SensitiveDataScannerMeta) GetHasMultiPassEnabledOk() (*bool, bool)
GetHasMultiPassEnabledOk returns a tuple with the HasMultiPassEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerMeta) GetIsPciCompliant() bool
GetIsPciCompliant returns the IsPciCompliant field value if set, zero value otherwise.
func (o *SensitiveDataScannerMeta) GetIsPciCompliantOk() (*bool, bool)
GetIsPciCompliantOk returns a tuple with the IsPciCompliant field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerMeta) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SensitiveDataScannerMeta) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerMeta) HasCountLimit() bool
HasCountLimit returns a boolean if a field has been set.
func (o *SensitiveDataScannerMeta) HasGroupCountLimit() bool
HasGroupCountLimit returns a boolean if a field has been set.
func (o *SensitiveDataScannerMeta) HasHasHighlightEnabled() bool
HasHasHighlightEnabled returns a boolean if a field has been set.
func (o *SensitiveDataScannerMeta) HasHasMultiPassEnabled() bool
HasHasMultiPassEnabled returns a boolean if a field has been set.
func (o *SensitiveDataScannerMeta) HasIsPciCompliant() bool
HasIsPciCompliant returns a boolean if a field has been set.
func (o *SensitiveDataScannerMeta) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SensitiveDataScannerMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerMeta) SetCountLimit(v int64)
SetCountLimit gets a reference to the given int64 and assigns it to the CountLimit field.
func (o *SensitiveDataScannerMeta) SetGroupCountLimit(v int64)
SetGroupCountLimit gets a reference to the given int64 and assigns it to the GroupCountLimit field.
func (o *SensitiveDataScannerMeta) SetHasHighlightEnabled(v bool)
SetHasHighlightEnabled gets a reference to the given bool and assigns it to the HasHighlightEnabled field.
func (o *SensitiveDataScannerMeta) SetHasMultiPassEnabled(v bool)
SetHasMultiPassEnabled gets a reference to the given bool and assigns it to the HasMultiPassEnabled field.
func (o *SensitiveDataScannerMeta) SetIsPciCompliant(v bool)
SetIsPciCompliant gets a reference to the given bool and assigns it to the IsPciCompliant field.
func (o *SensitiveDataScannerMeta) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SensitiveDataScannerMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerMetaVersionOnly Meta payload containing information about the API.
type SensitiveDataScannerMetaVersionOnly struct {
// Version of the API (optional).
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerMetaVersionOnly() *SensitiveDataScannerMetaVersionOnly
NewSensitiveDataScannerMetaVersionOnly instantiates a new SensitiveDataScannerMetaVersionOnly object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerMetaVersionOnlyWithDefaults() *SensitiveDataScannerMetaVersionOnly
NewSensitiveDataScannerMetaVersionOnlyWithDefaults instantiates a new SensitiveDataScannerMetaVersionOnly object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerMetaVersionOnly) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SensitiveDataScannerMetaVersionOnly) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerMetaVersionOnly) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SensitiveDataScannerMetaVersionOnly) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerMetaVersionOnly) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SensitiveDataScannerMetaVersionOnly) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerProduct Datadog product onto which Sensitive Data Scanner can be activated.
type SensitiveDataScannerProduct string
List of SensitiveDataScannerProduct.
const (
SENSITIVEDATASCANNERPRODUCT_LOGS SensitiveDataScannerProduct = "logs"
SENSITIVEDATASCANNERPRODUCT_RUM SensitiveDataScannerProduct = "rum"
SENSITIVEDATASCANNERPRODUCT_EVENTS SensitiveDataScannerProduct = "events"
SENSITIVEDATASCANNERPRODUCT_APM SensitiveDataScannerProduct = "apm"
)
func NewSensitiveDataScannerProductFromValue(v string) (*SensitiveDataScannerProduct, error)
NewSensitiveDataScannerProductFromValue returns a pointer to a valid SensitiveDataScannerProduct for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SensitiveDataScannerProduct) GetAllowedValues() []SensitiveDataScannerProduct
GetAllowedValues reeturns the list of possible values.
func (v SensitiveDataScannerProduct) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SensitiveDataScannerProduct) Ptr() *SensitiveDataScannerProduct
Ptr returns reference to SensitiveDataScannerProduct value.
func (v *SensitiveDataScannerProduct) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerReorderConfig Data related to the reordering of scanning groups.
type SensitiveDataScannerReorderConfig struct {
// ID of the configuration.
Id *string `json:"id,omitempty"`
// Relationships of the configuration.
Relationships *SensitiveDataScannerConfigurationRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner configuration type.
Type *SensitiveDataScannerConfigurationType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerReorderConfig() *SensitiveDataScannerReorderConfig
NewSensitiveDataScannerReorderConfig instantiates a new SensitiveDataScannerReorderConfig object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerReorderConfigWithDefaults() *SensitiveDataScannerReorderConfig
NewSensitiveDataScannerReorderConfigWithDefaults instantiates a new SensitiveDataScannerReorderConfig object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerReorderConfig) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerReorderConfig) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerReorderConfig) GetRelationships() SensitiveDataScannerConfigurationRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerReorderConfig) GetRelationshipsOk() (*SensitiveDataScannerConfigurationRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerReorderConfig) GetType() SensitiveDataScannerConfigurationType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerReorderConfig) GetTypeOk() (*SensitiveDataScannerConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerReorderConfig) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerReorderConfig) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *SensitiveDataScannerReorderConfig) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerReorderConfig) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerReorderConfig) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerReorderConfig) SetRelationships(v SensitiveDataScannerConfigurationRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerConfigurationRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerReorderConfig) SetType(v SensitiveDataScannerConfigurationType)
SetType gets a reference to the given SensitiveDataScannerConfigurationType and assigns it to the Type field.
func (o *SensitiveDataScannerReorderConfig) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerReorderGroupsResponse Group reorder response.
type SensitiveDataScannerReorderGroupsResponse struct {
// Meta response containing information about the API.
Meta *SensitiveDataScannerMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerReorderGroupsResponse() *SensitiveDataScannerReorderGroupsResponse
NewSensitiveDataScannerReorderGroupsResponse instantiates a new SensitiveDataScannerReorderGroupsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerReorderGroupsResponseWithDefaults() *SensitiveDataScannerReorderGroupsResponse
NewSensitiveDataScannerReorderGroupsResponseWithDefaults instantiates a new SensitiveDataScannerReorderGroupsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerReorderGroupsResponse) GetMeta() SensitiveDataScannerMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerReorderGroupsResponse) GetMetaOk() (*SensitiveDataScannerMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerReorderGroupsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerReorderGroupsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerReorderGroupsResponse) SetMeta(v SensitiveDataScannerMeta)
SetMeta gets a reference to the given SensitiveDataScannerMeta and assigns it to the Meta field.
func (o *SensitiveDataScannerReorderGroupsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRule Rule item included in the group.
type SensitiveDataScannerRule struct {
// ID of the rule.
Id *string `json:"id,omitempty"`
// Sensitive Data Scanner rule type.
Type *SensitiveDataScannerRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRule() *SensitiveDataScannerRule
NewSensitiveDataScannerRule instantiates a new SensitiveDataScannerRule object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleWithDefaults() *SensitiveDataScannerRule
NewSensitiveDataScannerRuleWithDefaults instantiates a new SensitiveDataScannerRule object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRule) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerRule) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRule) GetType() SensitiveDataScannerRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerRule) GetTypeOk() (*SensitiveDataScannerRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRule) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerRule) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerRule) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRule) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerRule) SetType(v SensitiveDataScannerRuleType)
SetType gets a reference to the given SensitiveDataScannerRuleType and assigns it to the Type field.
func (o *SensitiveDataScannerRule) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleAttributes Attributes of the Sensitive Data Scanner rule.
type SensitiveDataScannerRuleAttributes struct {
// Description of the rule.
Description *string `json:"description,omitempty"`
// Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
ExcludedNamespaces []string `json:"excluded_namespaces,omitempty"`
// Whether or not the rule is enabled.
IsEnabled *bool `json:"is_enabled,omitempty"`
// Name of the rule.
Name *string `json:"name,omitempty"`
// Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned.
// If both are missing the whole event is scanned.
Namespaces []string `json:"namespaces,omitempty"`
// Not included if there is a relationship to a standard pattern.
Pattern *string `json:"pattern,omitempty"`
// List of tags.
Tags []string `json:"tags,omitempty"`
// Object describing how the scanned event will be replaced.
TextReplacement *SensitiveDataScannerTextReplacement `json:"text_replacement,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleAttributes() *SensitiveDataScannerRuleAttributes
NewSensitiveDataScannerRuleAttributes instantiates a new SensitiveDataScannerRuleAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleAttributesWithDefaults() *SensitiveDataScannerRuleAttributes
NewSensitiveDataScannerRuleAttributesWithDefaults instantiates a new SensitiveDataScannerRuleAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleAttributes) GetExcludedNamespaces() []string
GetExcludedNamespaces returns the ExcludedNamespaces field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleAttributes) GetExcludedNamespacesOk() (*[]string, bool)
GetExcludedNamespacesOk returns a tuple with the ExcludedNamespaces field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleAttributes) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleAttributes) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleAttributes) GetNamespaces() []string
GetNamespaces returns the Namespaces field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleAttributes) GetNamespacesOk() (*[]string, bool)
GetNamespacesOk returns a tuple with the Namespaces field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleAttributes) GetPattern() string
GetPattern returns the Pattern field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleAttributes) GetPatternOk() (*string, bool)
GetPatternOk returns a tuple with the Pattern field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleAttributes) GetTextReplacement() SensitiveDataScannerTextReplacement
GetTextReplacement returns the TextReplacement field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleAttributes) GetTextReplacementOk() (*SensitiveDataScannerTextReplacement, bool)
GetTextReplacementOk returns a tuple with the TextReplacement field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleAttributes) HasExcludedNamespaces() bool
HasExcludedNamespaces returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleAttributes) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleAttributes) HasNamespaces() bool
HasNamespaces returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleAttributes) HasPattern() bool
HasPattern returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleAttributes) HasTextReplacement() bool
HasTextReplacement returns a boolean if a field has been set.
func (o SensitiveDataScannerRuleAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *SensitiveDataScannerRuleAttributes) SetExcludedNamespaces(v []string)
SetExcludedNamespaces gets a reference to the given []string and assigns it to the ExcludedNamespaces field.
func (o *SensitiveDataScannerRuleAttributes) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SensitiveDataScannerRuleAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SensitiveDataScannerRuleAttributes) SetNamespaces(v []string)
SetNamespaces gets a reference to the given []string and assigns it to the Namespaces field.
func (o *SensitiveDataScannerRuleAttributes) SetPattern(v string)
SetPattern gets a reference to the given string and assigns it to the Pattern field.
func (o *SensitiveDataScannerRuleAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SensitiveDataScannerRuleAttributes) SetTextReplacement(v SensitiveDataScannerTextReplacement)
SetTextReplacement gets a reference to the given SensitiveDataScannerTextReplacement and assigns it to the TextReplacement field.
func (o *SensitiveDataScannerRuleAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleCreate Data related to the creation of a rule.
type SensitiveDataScannerRuleCreate struct {
// Attributes of the Sensitive Data Scanner rule.
Attributes SensitiveDataScannerRuleAttributes `json:"attributes"`
// Relationships of a scanning rule.
Relationships SensitiveDataScannerRuleRelationships `json:"relationships"`
// Sensitive Data Scanner rule type.
Type SensitiveDataScannerRuleType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleCreate(attributes SensitiveDataScannerRuleAttributes, relationships SensitiveDataScannerRuleRelationships, typeVar SensitiveDataScannerRuleType) *SensitiveDataScannerRuleCreate
NewSensitiveDataScannerRuleCreate instantiates a new SensitiveDataScannerRuleCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleCreateWithDefaults() *SensitiveDataScannerRuleCreate
NewSensitiveDataScannerRuleCreateWithDefaults instantiates a new SensitiveDataScannerRuleCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleCreate) GetAttributes() SensitiveDataScannerRuleAttributes
GetAttributes returns the Attributes field value.
func (o *SensitiveDataScannerRuleCreate) GetAttributesOk() (*SensitiveDataScannerRuleAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleCreate) GetRelationships() SensitiveDataScannerRuleRelationships
GetRelationships returns the Relationships field value.
func (o *SensitiveDataScannerRuleCreate) GetRelationshipsOk() (*SensitiveDataScannerRuleRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleCreate) GetType() SensitiveDataScannerRuleType
GetType returns the Type field value.
func (o *SensitiveDataScannerRuleCreate) GetTypeOk() (*SensitiveDataScannerRuleType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o SensitiveDataScannerRuleCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleCreate) SetAttributes(v SensitiveDataScannerRuleAttributes)
SetAttributes sets field value.
func (o *SensitiveDataScannerRuleCreate) SetRelationships(v SensitiveDataScannerRuleRelationships)
SetRelationships sets field value.
func (o *SensitiveDataScannerRuleCreate) SetType(v SensitiveDataScannerRuleType)
SetType sets field value.
func (o *SensitiveDataScannerRuleCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleCreateRequest Create rule request.
type SensitiveDataScannerRuleCreateRequest struct {
// Data related to the creation of a rule.
Data SensitiveDataScannerRuleCreate `json:"data"`
// Meta payload containing information about the API.
Meta SensitiveDataScannerMetaVersionOnly `json:"meta"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleCreateRequest(data SensitiveDataScannerRuleCreate, meta SensitiveDataScannerMetaVersionOnly) *SensitiveDataScannerRuleCreateRequest
NewSensitiveDataScannerRuleCreateRequest instantiates a new SensitiveDataScannerRuleCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleCreateRequestWithDefaults() *SensitiveDataScannerRuleCreateRequest
NewSensitiveDataScannerRuleCreateRequestWithDefaults instantiates a new SensitiveDataScannerRuleCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleCreateRequest) GetData() SensitiveDataScannerRuleCreate
GetData returns the Data field value.
func (o *SensitiveDataScannerRuleCreateRequest) GetDataOk() (*SensitiveDataScannerRuleCreate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleCreateRequest) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value.
func (o *SensitiveDataScannerRuleCreateRequest) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value and a boolean to check if the value has been set.
func (o SensitiveDataScannerRuleCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleCreateRequest) SetData(v SensitiveDataScannerRuleCreate)
SetData sets field value.
func (o *SensitiveDataScannerRuleCreateRequest) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta sets field value.
func (o *SensitiveDataScannerRuleCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleData Rules included in the group.
type SensitiveDataScannerRuleData struct {
// Rules included in the group. The order is important.
Data []SensitiveDataScannerRule `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleData() *SensitiveDataScannerRuleData
NewSensitiveDataScannerRuleData instantiates a new SensitiveDataScannerRuleData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleDataWithDefaults() *SensitiveDataScannerRuleData
NewSensitiveDataScannerRuleDataWithDefaults instantiates a new SensitiveDataScannerRuleData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleData) GetData() []SensitiveDataScannerRule
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleData) GetDataOk() (*[]SensitiveDataScannerRule, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleData) HasData() bool
HasData returns a boolean if a field has been set.
func (o SensitiveDataScannerRuleData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleData) SetData(v []SensitiveDataScannerRule)
SetData gets a reference to the given []SensitiveDataScannerRule and assigns it to the Data field.
func (o *SensitiveDataScannerRuleData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleDeleteRequest Delete rule request.
type SensitiveDataScannerRuleDeleteRequest struct {
// Meta payload containing information about the API.
Meta SensitiveDataScannerMetaVersionOnly `json:"meta"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleDeleteRequest(meta SensitiveDataScannerMetaVersionOnly) *SensitiveDataScannerRuleDeleteRequest
NewSensitiveDataScannerRuleDeleteRequest instantiates a new SensitiveDataScannerRuleDeleteRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleDeleteRequestWithDefaults() *SensitiveDataScannerRuleDeleteRequest
NewSensitiveDataScannerRuleDeleteRequestWithDefaults instantiates a new SensitiveDataScannerRuleDeleteRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleDeleteRequest) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value.
func (o *SensitiveDataScannerRuleDeleteRequest) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value and a boolean to check if the value has been set.
func (o SensitiveDataScannerRuleDeleteRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleDeleteRequest) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta sets field value.
func (o *SensitiveDataScannerRuleDeleteRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleDeleteResponse Delete rule response.
type SensitiveDataScannerRuleDeleteResponse struct {
// Meta payload containing information about the API.
Meta *SensitiveDataScannerMetaVersionOnly `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleDeleteResponse() *SensitiveDataScannerRuleDeleteResponse
NewSensitiveDataScannerRuleDeleteResponse instantiates a new SensitiveDataScannerRuleDeleteResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleDeleteResponseWithDefaults() *SensitiveDataScannerRuleDeleteResponse
NewSensitiveDataScannerRuleDeleteResponseWithDefaults instantiates a new SensitiveDataScannerRuleDeleteResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleDeleteResponse) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleDeleteResponse) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleDeleteResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerRuleDeleteResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleDeleteResponse) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta gets a reference to the given SensitiveDataScannerMetaVersionOnly and assigns it to the Meta field.
func (o *SensitiveDataScannerRuleDeleteResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleIncludedItem A Scanning Rule included item.
type SensitiveDataScannerRuleIncludedItem struct {
// Attributes of the Sensitive Data Scanner rule.
Attributes *SensitiveDataScannerRuleAttributes `json:"attributes,omitempty"`
// ID of the rule.
Id *string `json:"id,omitempty"`
// Relationships of a scanning rule.
Relationships *SensitiveDataScannerRuleRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner rule type.
Type *SensitiveDataScannerRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleIncludedItem() *SensitiveDataScannerRuleIncludedItem
NewSensitiveDataScannerRuleIncludedItem instantiates a new SensitiveDataScannerRuleIncludedItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleIncludedItemWithDefaults() *SensitiveDataScannerRuleIncludedItem
NewSensitiveDataScannerRuleIncludedItemWithDefaults instantiates a new SensitiveDataScannerRuleIncludedItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleIncludedItem) GetAttributes() SensitiveDataScannerRuleAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleIncludedItem) GetAttributesOk() (*SensitiveDataScannerRuleAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleIncludedItem) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleIncludedItem) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleIncludedItem) GetRelationships() SensitiveDataScannerRuleRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleIncludedItem) GetRelationshipsOk() (*SensitiveDataScannerRuleRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleIncludedItem) GetType() SensitiveDataScannerRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleIncludedItem) GetTypeOk() (*SensitiveDataScannerRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleIncludedItem) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleIncludedItem) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleIncludedItem) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleIncludedItem) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerRuleIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleIncludedItem) SetAttributes(v SensitiveDataScannerRuleAttributes)
SetAttributes gets a reference to the given SensitiveDataScannerRuleAttributes and assigns it to the Attributes field.
func (o *SensitiveDataScannerRuleIncludedItem) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerRuleIncludedItem) SetRelationships(v SensitiveDataScannerRuleRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerRuleRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerRuleIncludedItem) SetType(v SensitiveDataScannerRuleType)
SetType gets a reference to the given SensitiveDataScannerRuleType and assigns it to the Type field.
func (o *SensitiveDataScannerRuleIncludedItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleRelationships Relationships of a scanning rule.
type SensitiveDataScannerRuleRelationships struct {
// A scanning group data.
Group *SensitiveDataScannerGroupData `json:"group,omitempty"`
// A standard pattern.
StandardPattern *SensitiveDataScannerStandardPatternData `json:"standard_pattern,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleRelationships() *SensitiveDataScannerRuleRelationships
NewSensitiveDataScannerRuleRelationships instantiates a new SensitiveDataScannerRuleRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleRelationshipsWithDefaults() *SensitiveDataScannerRuleRelationships
NewSensitiveDataScannerRuleRelationshipsWithDefaults instantiates a new SensitiveDataScannerRuleRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleRelationships) GetGroup() SensitiveDataScannerGroupData
GetGroup returns the Group field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleRelationships) GetGroupOk() (*SensitiveDataScannerGroupData, bool)
GetGroupOk returns a tuple with the Group field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleRelationships) GetStandardPattern() SensitiveDataScannerStandardPatternData
GetStandardPattern returns the StandardPattern field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleRelationships) GetStandardPatternOk() (*SensitiveDataScannerStandardPatternData, bool)
GetStandardPatternOk returns a tuple with the StandardPattern field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleRelationships) HasGroup() bool
HasGroup returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleRelationships) HasStandardPattern() bool
HasStandardPattern returns a boolean if a field has been set.
func (o SensitiveDataScannerRuleRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleRelationships) SetGroup(v SensitiveDataScannerGroupData)
SetGroup gets a reference to the given SensitiveDataScannerGroupData and assigns it to the Group field.
func (o *SensitiveDataScannerRuleRelationships) SetStandardPattern(v SensitiveDataScannerStandardPatternData)
SetStandardPattern gets a reference to the given SensitiveDataScannerStandardPatternData and assigns it to the StandardPattern field.
func (o *SensitiveDataScannerRuleRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleResponse Response data related to the creation of a rule.
type SensitiveDataScannerRuleResponse struct {
// Attributes of the Sensitive Data Scanner rule.
Attributes *SensitiveDataScannerRuleAttributes `json:"attributes,omitempty"`
// ID of the rule.
Id *string `json:"id,omitempty"`
// Relationships of a scanning rule.
Relationships *SensitiveDataScannerRuleRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner rule type.
Type *SensitiveDataScannerRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleResponse() *SensitiveDataScannerRuleResponse
NewSensitiveDataScannerRuleResponse instantiates a new SensitiveDataScannerRuleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleResponseWithDefaults() *SensitiveDataScannerRuleResponse
NewSensitiveDataScannerRuleResponseWithDefaults instantiates a new SensitiveDataScannerRuleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleResponse) GetAttributes() SensitiveDataScannerRuleAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleResponse) GetAttributesOk() (*SensitiveDataScannerRuleAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleResponse) GetRelationships() SensitiveDataScannerRuleRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleResponse) GetRelationshipsOk() (*SensitiveDataScannerRuleRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleResponse) GetType() SensitiveDataScannerRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleResponse) GetTypeOk() (*SensitiveDataScannerRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleResponse) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleResponse) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleResponse) SetAttributes(v SensitiveDataScannerRuleAttributes)
SetAttributes gets a reference to the given SensitiveDataScannerRuleAttributes and assigns it to the Attributes field.
func (o *SensitiveDataScannerRuleResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerRuleResponse) SetRelationships(v SensitiveDataScannerRuleRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerRuleRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerRuleResponse) SetType(v SensitiveDataScannerRuleType)
SetType gets a reference to the given SensitiveDataScannerRuleType and assigns it to the Type field.
func (o *SensitiveDataScannerRuleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleType Sensitive Data Scanner rule type.
type SensitiveDataScannerRuleType string
List of SensitiveDataScannerRuleType.
const (
SENSITIVEDATASCANNERRULETYPE_SENSITIVE_DATA_SCANNER_RULE SensitiveDataScannerRuleType = "sensitive_data_scanner_rule"
)
func NewSensitiveDataScannerRuleTypeFromValue(v string) (*SensitiveDataScannerRuleType, error)
NewSensitiveDataScannerRuleTypeFromValue returns a pointer to a valid SensitiveDataScannerRuleType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SensitiveDataScannerRuleType) GetAllowedValues() []SensitiveDataScannerRuleType
GetAllowedValues reeturns the list of possible values.
func (v SensitiveDataScannerRuleType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SensitiveDataScannerRuleType) Ptr() *SensitiveDataScannerRuleType
Ptr returns reference to SensitiveDataScannerRuleType value.
func (v *SensitiveDataScannerRuleType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleUpdate Data related to the update of a rule.
type SensitiveDataScannerRuleUpdate struct {
// Attributes of the Sensitive Data Scanner rule.
Attributes *SensitiveDataScannerRuleAttributes `json:"attributes,omitempty"`
// ID of the rule.
Id *string `json:"id,omitempty"`
// Relationships of a scanning rule.
Relationships *SensitiveDataScannerRuleRelationships `json:"relationships,omitempty"`
// Sensitive Data Scanner rule type.
Type *SensitiveDataScannerRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleUpdate() *SensitiveDataScannerRuleUpdate
NewSensitiveDataScannerRuleUpdate instantiates a new SensitiveDataScannerRuleUpdate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleUpdateWithDefaults() *SensitiveDataScannerRuleUpdate
NewSensitiveDataScannerRuleUpdateWithDefaults instantiates a new SensitiveDataScannerRuleUpdate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleUpdate) GetAttributes() SensitiveDataScannerRuleAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleUpdate) GetAttributesOk() (*SensitiveDataScannerRuleAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleUpdate) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleUpdate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleUpdate) GetRelationships() SensitiveDataScannerRuleRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleUpdate) GetRelationshipsOk() (*SensitiveDataScannerRuleRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleUpdate) GetType() SensitiveDataScannerRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleUpdate) GetTypeOk() (*SensitiveDataScannerRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleUpdate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleUpdate) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleUpdate) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *SensitiveDataScannerRuleUpdate) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerRuleUpdate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleUpdate) SetAttributes(v SensitiveDataScannerRuleAttributes)
SetAttributes gets a reference to the given SensitiveDataScannerRuleAttributes and assigns it to the Attributes field.
func (o *SensitiveDataScannerRuleUpdate) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerRuleUpdate) SetRelationships(v SensitiveDataScannerRuleRelationships)
SetRelationships gets a reference to the given SensitiveDataScannerRuleRelationships and assigns it to the Relationships field.
func (o *SensitiveDataScannerRuleUpdate) SetType(v SensitiveDataScannerRuleType)
SetType gets a reference to the given SensitiveDataScannerRuleType and assigns it to the Type field.
func (o *SensitiveDataScannerRuleUpdate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleUpdateRequest Update rule request.
type SensitiveDataScannerRuleUpdateRequest struct {
// Data related to the update of a rule.
Data SensitiveDataScannerRuleUpdate `json:"data"`
// Meta payload containing information about the API.
Meta SensitiveDataScannerMetaVersionOnly `json:"meta"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleUpdateRequest(data SensitiveDataScannerRuleUpdate, meta SensitiveDataScannerMetaVersionOnly) *SensitiveDataScannerRuleUpdateRequest
NewSensitiveDataScannerRuleUpdateRequest instantiates a new SensitiveDataScannerRuleUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleUpdateRequestWithDefaults() *SensitiveDataScannerRuleUpdateRequest
NewSensitiveDataScannerRuleUpdateRequestWithDefaults instantiates a new SensitiveDataScannerRuleUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleUpdateRequest) GetData() SensitiveDataScannerRuleUpdate
GetData returns the Data field value.
func (o *SensitiveDataScannerRuleUpdateRequest) GetDataOk() (*SensitiveDataScannerRuleUpdate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleUpdateRequest) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value.
func (o *SensitiveDataScannerRuleUpdateRequest) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value and a boolean to check if the value has been set.
func (o SensitiveDataScannerRuleUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleUpdateRequest) SetData(v SensitiveDataScannerRuleUpdate)
SetData sets field value.
func (o *SensitiveDataScannerRuleUpdateRequest) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta sets field value.
func (o *SensitiveDataScannerRuleUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerRuleUpdateResponse Update rule response.
type SensitiveDataScannerRuleUpdateResponse struct {
// Meta payload containing information about the API.
Meta *SensitiveDataScannerMetaVersionOnly `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerRuleUpdateResponse() *SensitiveDataScannerRuleUpdateResponse
NewSensitiveDataScannerRuleUpdateResponse instantiates a new SensitiveDataScannerRuleUpdateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerRuleUpdateResponseWithDefaults() *SensitiveDataScannerRuleUpdateResponse
NewSensitiveDataScannerRuleUpdateResponseWithDefaults instantiates a new SensitiveDataScannerRuleUpdateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerRuleUpdateResponse) GetMeta() SensitiveDataScannerMetaVersionOnly
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SensitiveDataScannerRuleUpdateResponse) GetMetaOk() (*SensitiveDataScannerMetaVersionOnly, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerRuleUpdateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SensitiveDataScannerRuleUpdateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerRuleUpdateResponse) SetMeta(v SensitiveDataScannerMetaVersionOnly)
SetMeta gets a reference to the given SensitiveDataScannerMetaVersionOnly and assigns it to the Meta field.
func (o *SensitiveDataScannerRuleUpdateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerStandardPattern Data containing the standard pattern id.
type SensitiveDataScannerStandardPattern struct {
// ID of the standard pattern.
Id *string `json:"id,omitempty"`
// Sensitive Data Scanner standard pattern type.
Type *SensitiveDataScannerStandardPatternType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerStandardPattern() *SensitiveDataScannerStandardPattern
NewSensitiveDataScannerStandardPattern instantiates a new SensitiveDataScannerStandardPattern object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerStandardPatternWithDefaults() *SensitiveDataScannerStandardPattern
NewSensitiveDataScannerStandardPatternWithDefaults instantiates a new SensitiveDataScannerStandardPattern object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerStandardPattern) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPattern) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPattern) GetType() SensitiveDataScannerStandardPatternType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPattern) GetTypeOk() (*SensitiveDataScannerStandardPatternType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPattern) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerStandardPattern) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerStandardPattern) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerStandardPattern) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerStandardPattern) SetType(v SensitiveDataScannerStandardPatternType)
SetType gets a reference to the given SensitiveDataScannerStandardPatternType and assigns it to the Type field.
func (o *SensitiveDataScannerStandardPattern) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerStandardPatternAttributes Attributes of the Sensitive Data Scanner standard pattern.
type SensitiveDataScannerStandardPatternAttributes struct {
// Description of the standard pattern.
Description *string `json:"description,omitempty"`
// Name of the standard pattern.
Name *string `json:"name,omitempty"`
// Regex to match.
Pattern *string `json:"pattern,omitempty"`
// List of tags.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerStandardPatternAttributes() *SensitiveDataScannerStandardPatternAttributes
NewSensitiveDataScannerStandardPatternAttributes instantiates a new SensitiveDataScannerStandardPatternAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerStandardPatternAttributesWithDefaults() *SensitiveDataScannerStandardPatternAttributes
NewSensitiveDataScannerStandardPatternAttributesWithDefaults instantiates a new SensitiveDataScannerStandardPatternAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerStandardPatternAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternAttributes) GetPattern() string
GetPattern returns the Pattern field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternAttributes) GetPatternOk() (*string, bool)
GetPatternOk returns a tuple with the Pattern field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *SensitiveDataScannerStandardPatternAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SensitiveDataScannerStandardPatternAttributes) HasPattern() bool
HasPattern returns a boolean if a field has been set.
func (o *SensitiveDataScannerStandardPatternAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o SensitiveDataScannerStandardPatternAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerStandardPatternAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *SensitiveDataScannerStandardPatternAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SensitiveDataScannerStandardPatternAttributes) SetPattern(v string)
SetPattern gets a reference to the given string and assigns it to the Pattern field.
func (o *SensitiveDataScannerStandardPatternAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SensitiveDataScannerStandardPatternAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerStandardPatternData A standard pattern.
type SensitiveDataScannerStandardPatternData struct {
// Data containing the standard pattern id.
Data *SensitiveDataScannerStandardPattern `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerStandardPatternData() *SensitiveDataScannerStandardPatternData
NewSensitiveDataScannerStandardPatternData instantiates a new SensitiveDataScannerStandardPatternData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerStandardPatternDataWithDefaults() *SensitiveDataScannerStandardPatternData
NewSensitiveDataScannerStandardPatternDataWithDefaults instantiates a new SensitiveDataScannerStandardPatternData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerStandardPatternData) GetData() SensitiveDataScannerStandardPattern
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternData) GetDataOk() (*SensitiveDataScannerStandardPattern, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternData) HasData() bool
HasData returns a boolean if a field has been set.
func (o SensitiveDataScannerStandardPatternData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerStandardPatternData) SetData(v SensitiveDataScannerStandardPattern)
SetData gets a reference to the given SensitiveDataScannerStandardPattern and assigns it to the Data field.
func (o *SensitiveDataScannerStandardPatternData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerStandardPatternType Sensitive Data Scanner standard pattern type.
type SensitiveDataScannerStandardPatternType string
List of SensitiveDataScannerStandardPatternType.
const (
SENSITIVEDATASCANNERSTANDARDPATTERNTYPE_SENSITIVE_DATA_SCANNER_STANDARD_PATTERN SensitiveDataScannerStandardPatternType = "sensitive_data_scanner_standard_pattern"
)
func NewSensitiveDataScannerStandardPatternTypeFromValue(v string) (*SensitiveDataScannerStandardPatternType, error)
NewSensitiveDataScannerStandardPatternTypeFromValue returns a pointer to a valid SensitiveDataScannerStandardPatternType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SensitiveDataScannerStandardPatternType) GetAllowedValues() []SensitiveDataScannerStandardPatternType
GetAllowedValues reeturns the list of possible values.
func (v SensitiveDataScannerStandardPatternType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SensitiveDataScannerStandardPatternType) Ptr() *SensitiveDataScannerStandardPatternType
Ptr returns reference to SensitiveDataScannerStandardPatternType value.
func (v *SensitiveDataScannerStandardPatternType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerStandardPatternsResponseData List Standard patterns response data.
type SensitiveDataScannerStandardPatternsResponseData struct {
// List Standard patterns response.
Data []SensitiveDataScannerStandardPatternsResponseItem `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerStandardPatternsResponseData() *SensitiveDataScannerStandardPatternsResponseData
NewSensitiveDataScannerStandardPatternsResponseData instantiates a new SensitiveDataScannerStandardPatternsResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerStandardPatternsResponseDataWithDefaults() *SensitiveDataScannerStandardPatternsResponseData
NewSensitiveDataScannerStandardPatternsResponseDataWithDefaults instantiates a new SensitiveDataScannerStandardPatternsResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerStandardPatternsResponseData) GetData() []SensitiveDataScannerStandardPatternsResponseItem
GetData returns the Data field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternsResponseData) GetDataOk() (*[]SensitiveDataScannerStandardPatternsResponseItem, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternsResponseData) HasData() bool
HasData returns a boolean if a field has been set.
func (o SensitiveDataScannerStandardPatternsResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerStandardPatternsResponseData) SetData(v []SensitiveDataScannerStandardPatternsResponseItem)
SetData gets a reference to the given []SensitiveDataScannerStandardPatternsResponseItem and assigns it to the Data field.
func (o *SensitiveDataScannerStandardPatternsResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerStandardPatternsResponseItem Standard pattern item.
type SensitiveDataScannerStandardPatternsResponseItem struct {
// Attributes of the Sensitive Data Scanner standard pattern.
Attributes *SensitiveDataScannerStandardPatternAttributes `json:"attributes,omitempty"`
// ID of the standard pattern.
Id *string `json:"id,omitempty"`
// Sensitive Data Scanner standard pattern type.
Type *SensitiveDataScannerStandardPatternType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerStandardPatternsResponseItem() *SensitiveDataScannerStandardPatternsResponseItem
NewSensitiveDataScannerStandardPatternsResponseItem instantiates a new SensitiveDataScannerStandardPatternsResponseItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerStandardPatternsResponseItemWithDefaults() *SensitiveDataScannerStandardPatternsResponseItem
NewSensitiveDataScannerStandardPatternsResponseItemWithDefaults instantiates a new SensitiveDataScannerStandardPatternsResponseItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerStandardPatternsResponseItem) GetAttributes() SensitiveDataScannerStandardPatternAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternsResponseItem) GetAttributesOk() (*SensitiveDataScannerStandardPatternAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternsResponseItem) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternsResponseItem) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternsResponseItem) GetType() SensitiveDataScannerStandardPatternType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerStandardPatternsResponseItem) GetTypeOk() (*SensitiveDataScannerStandardPatternType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerStandardPatternsResponseItem) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SensitiveDataScannerStandardPatternsResponseItem) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SensitiveDataScannerStandardPatternsResponseItem) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerStandardPatternsResponseItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerStandardPatternsResponseItem) SetAttributes(v SensitiveDataScannerStandardPatternAttributes)
SetAttributes gets a reference to the given SensitiveDataScannerStandardPatternAttributes and assigns it to the Attributes field.
func (o *SensitiveDataScannerStandardPatternsResponseItem) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SensitiveDataScannerStandardPatternsResponseItem) SetType(v SensitiveDataScannerStandardPatternType)
SetType gets a reference to the given SensitiveDataScannerStandardPatternType and assigns it to the Type field.
func (o *SensitiveDataScannerStandardPatternsResponseItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerTextReplacement Object describing how the scanned event will be replaced.
type SensitiveDataScannerTextReplacement struct {
// Required if type == 'partial_replacement_from_beginning'
// or 'partial_replacement_from_end'. It must be > 0.
NumberOfChars *int64 `json:"number_of_chars,omitempty"`
// Required if type == 'replacement_string'.
ReplacementString *string `json:"replacement_string,omitempty"`
// Type of the replacement text. None means no replacement.
// hash means the data will be stubbed. replacement_string means that
// one can chose a text to replace the data. partial_replacement_from_beginning
// allows a user to partially replace the data from the beginning, and
// partial_replacement_from_end on the other hand, allows to replace data from
// the end.
Type *SensitiveDataScannerTextReplacementType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSensitiveDataScannerTextReplacement() *SensitiveDataScannerTextReplacement
NewSensitiveDataScannerTextReplacement instantiates a new SensitiveDataScannerTextReplacement object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSensitiveDataScannerTextReplacementWithDefaults() *SensitiveDataScannerTextReplacement
NewSensitiveDataScannerTextReplacementWithDefaults instantiates a new SensitiveDataScannerTextReplacement object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SensitiveDataScannerTextReplacement) GetNumberOfChars() int64
GetNumberOfChars returns the NumberOfChars field value if set, zero value otherwise.
func (o *SensitiveDataScannerTextReplacement) GetNumberOfCharsOk() (*int64, bool)
GetNumberOfCharsOk returns a tuple with the NumberOfChars field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerTextReplacement) GetReplacementString() string
GetReplacementString returns the ReplacementString field value if set, zero value otherwise.
func (o *SensitiveDataScannerTextReplacement) GetReplacementStringOk() (*string, bool)
GetReplacementStringOk returns a tuple with the ReplacementString field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerTextReplacement) GetType() SensitiveDataScannerTextReplacementType
GetType returns the Type field value if set, zero value otherwise.
func (o *SensitiveDataScannerTextReplacement) GetTypeOk() (*SensitiveDataScannerTextReplacementType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SensitiveDataScannerTextReplacement) HasNumberOfChars() bool
HasNumberOfChars returns a boolean if a field has been set.
func (o *SensitiveDataScannerTextReplacement) HasReplacementString() bool
HasReplacementString returns a boolean if a field has been set.
func (o *SensitiveDataScannerTextReplacement) HasType() bool
HasType returns a boolean if a field has been set.
func (o SensitiveDataScannerTextReplacement) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SensitiveDataScannerTextReplacement) SetNumberOfChars(v int64)
SetNumberOfChars gets a reference to the given int64 and assigns it to the NumberOfChars field.
func (o *SensitiveDataScannerTextReplacement) SetReplacementString(v string)
SetReplacementString gets a reference to the given string and assigns it to the ReplacementString field.
func (o *SensitiveDataScannerTextReplacement) SetType(v SensitiveDataScannerTextReplacementType)
SetType gets a reference to the given SensitiveDataScannerTextReplacementType and assigns it to the Type field.
func (o *SensitiveDataScannerTextReplacement) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SensitiveDataScannerTextReplacementType Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacement_string means that one can chose a text to replace the data. partial_replacement_from_beginning allows a user to partially replace the data from the beginning, and partial_replacement_from_end on the other hand, allows to replace data from the end.
type SensitiveDataScannerTextReplacementType string
List of SensitiveDataScannerTextReplacementType.
const (
SENSITIVEDATASCANNERTEXTREPLACEMENTTYPE_NONE SensitiveDataScannerTextReplacementType = "none"
SENSITIVEDATASCANNERTEXTREPLACEMENTTYPE_HASH SensitiveDataScannerTextReplacementType = "hash"
SENSITIVEDATASCANNERTEXTREPLACEMENTTYPE_REPLACEMENT_STRING SensitiveDataScannerTextReplacementType = "replacement_string"
SENSITIVEDATASCANNERTEXTREPLACEMENTTYPE_PARTIAL_REPLACEMENT_FROM_BEGINNING SensitiveDataScannerTextReplacementType = "partial_replacement_from_beginning"
SENSITIVEDATASCANNERTEXTREPLACEMENTTYPE_PARTIAL_REPLACEMENT_FROM_END SensitiveDataScannerTextReplacementType = "partial_replacement_from_end"
)
func NewSensitiveDataScannerTextReplacementTypeFromValue(v string) (*SensitiveDataScannerTextReplacementType, error)
NewSensitiveDataScannerTextReplacementTypeFromValue returns a pointer to a valid SensitiveDataScannerTextReplacementType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SensitiveDataScannerTextReplacementType) GetAllowedValues() []SensitiveDataScannerTextReplacementType
GetAllowedValues reeturns the list of possible values.
func (v SensitiveDataScannerTextReplacementType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SensitiveDataScannerTextReplacementType) Ptr() *SensitiveDataScannerTextReplacementType
Ptr returns reference to SensitiveDataScannerTextReplacementType value.
func (v *SensitiveDataScannerTextReplacementType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceAccountCreateAttributes Attributes of the created user.
type ServiceAccountCreateAttributes struct {
// The email of the user.
Email string `json:"email"`
// The name of the user.
Name *string `json:"name,omitempty"`
// Whether the user is a service account. Must be true.
ServiceAccount bool `json:"service_account"`
// The title of the user.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceAccountCreateAttributes(email string, serviceAccount bool) *ServiceAccountCreateAttributes
NewServiceAccountCreateAttributes instantiates a new ServiceAccountCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceAccountCreateAttributesWithDefaults() *ServiceAccountCreateAttributes
NewServiceAccountCreateAttributesWithDefaults instantiates a new ServiceAccountCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceAccountCreateAttributes) GetEmail() string
GetEmail returns the Email field value.
func (o *ServiceAccountCreateAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.
func (o *ServiceAccountCreateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceAccountCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceAccountCreateAttributes) GetServiceAccount() bool
GetServiceAccount returns the ServiceAccount field value.
func (o *ServiceAccountCreateAttributes) GetServiceAccountOk() (*bool, bool)
GetServiceAccountOk returns a tuple with the ServiceAccount field value and a boolean to check if the value has been set.
func (o *ServiceAccountCreateAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *ServiceAccountCreateAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceAccountCreateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *ServiceAccountCreateAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o ServiceAccountCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceAccountCreateAttributes) SetEmail(v string)
SetEmail sets field value.
func (o *ServiceAccountCreateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceAccountCreateAttributes) SetServiceAccount(v bool)
SetServiceAccount sets field value.
func (o *ServiceAccountCreateAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *ServiceAccountCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceAccountCreateData Object to create a service account User.
type ServiceAccountCreateData struct {
// Attributes of the created user.
Attributes ServiceAccountCreateAttributes `json:"attributes"`
// Relationships of the user object.
Relationships *UserRelationships `json:"relationships,omitempty"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceAccountCreateData(attributes ServiceAccountCreateAttributes, typeVar UsersType) *ServiceAccountCreateData
NewServiceAccountCreateData instantiates a new ServiceAccountCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceAccountCreateDataWithDefaults() *ServiceAccountCreateData
NewServiceAccountCreateDataWithDefaults instantiates a new ServiceAccountCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceAccountCreateData) GetAttributes() ServiceAccountCreateAttributes
GetAttributes returns the Attributes field value.
func (o *ServiceAccountCreateData) GetAttributesOk() (*ServiceAccountCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ServiceAccountCreateData) GetRelationships() UserRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *ServiceAccountCreateData) GetRelationshipsOk() (*UserRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceAccountCreateData) GetType() UsersType
GetType returns the Type field value.
func (o *ServiceAccountCreateData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceAccountCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o ServiceAccountCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceAccountCreateData) SetAttributes(v ServiceAccountCreateAttributes)
SetAttributes sets field value.
func (o *ServiceAccountCreateData) SetRelationships(v UserRelationships)
SetRelationships gets a reference to the given UserRelationships and assigns it to the Relationships field.
func (o *ServiceAccountCreateData) SetType(v UsersType)
SetType sets field value.
func (o *ServiceAccountCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceAccountCreateRequest Create a service account.
type ServiceAccountCreateRequest struct {
// Object to create a service account User.
Data ServiceAccountCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceAccountCreateRequest(data ServiceAccountCreateData) *ServiceAccountCreateRequest
NewServiceAccountCreateRequest instantiates a new ServiceAccountCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceAccountCreateRequestWithDefaults() *ServiceAccountCreateRequest
NewServiceAccountCreateRequestWithDefaults instantiates a new ServiceAccountCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceAccountCreateRequest) GetData() ServiceAccountCreateData
GetData returns the Data field value.
func (o *ServiceAccountCreateRequest) GetDataOk() (*ServiceAccountCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ServiceAccountCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceAccountCreateRequest) SetData(v ServiceAccountCreateData)
SetData sets field value.
func (o *ServiceAccountCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceAccountsApi service type
type ServiceAccountsApi datadog.Service
func NewServiceAccountsApi(client *datadog.APIClient) *ServiceAccountsApi
NewServiceAccountsApi Returns NewServiceAccountsApi.
func (a *ServiceAccountsApi) CreateServiceAccount(ctx _context.Context, body ServiceAccountCreateRequest) (UserResponse, *_nethttp.Response, error)
CreateServiceAccount Create a service account. Create a service account for your organization.
func (a *ServiceAccountsApi) CreateServiceAccountApplicationKey(ctx _context.Context, serviceAccountId string, body ApplicationKeyCreateRequest) (ApplicationKeyResponse, *_nethttp.Response, error)
CreateServiceAccountApplicationKey Create an application key for this service account. Create an application key for this service account.
func (a *ServiceAccountsApi) DeleteServiceAccountApplicationKey(ctx _context.Context, serviceAccountId string, appKeyId string) (*_nethttp.Response, error)
DeleteServiceAccountApplicationKey Delete an application key for this service account. Delete an application key owned by this service account.
func (a *ServiceAccountsApi) GetServiceAccountApplicationKey(ctx _context.Context, serviceAccountId string, appKeyId string) (PartialApplicationKeyResponse, *_nethttp.Response, error)
GetServiceAccountApplicationKey Get one application key for this service account. Get an application key owned by this service account.
func (a *ServiceAccountsApi) ListServiceAccountApplicationKeys(ctx _context.Context, serviceAccountId string, o ...ListServiceAccountApplicationKeysOptionalParameters) (ListApplicationKeysResponse, *_nethttp.Response, error)
ListServiceAccountApplicationKeys List application keys for this service account. List all application keys available for this service account.
func (a *ServiceAccountsApi) UpdateServiceAccountApplicationKey(ctx _context.Context, serviceAccountId string, appKeyId string, body ApplicationKeyUpdateRequest) (PartialApplicationKeyResponse, *_nethttp.Response, error)
UpdateServiceAccountApplicationKey Edit an application key for this service account. Edit an application key owned by this service account.
ServiceDefinitionApi service type
type ServiceDefinitionApi datadog.Service
func NewServiceDefinitionApi(client *datadog.APIClient) *ServiceDefinitionApi
NewServiceDefinitionApi Returns NewServiceDefinitionApi.
func (a *ServiceDefinitionApi) CreateOrUpdateServiceDefinitions(ctx _context.Context, body ServiceDefinitionsCreateRequest) (ServiceDefinitionCreateResponse, *_nethttp.Response, error)
CreateOrUpdateServiceDefinitions Create or update service definition. Create or update service definition in the Datadog Service Catalog.
func (a *ServiceDefinitionApi) DeleteServiceDefinition(ctx _context.Context, serviceName string) (*_nethttp.Response, error)
DeleteServiceDefinition Delete a single service definition. Delete a single service definition in the Datadog Service Catalog.
func (a *ServiceDefinitionApi) GetServiceDefinition(ctx _context.Context, serviceName string, o ...GetServiceDefinitionOptionalParameters) (ServiceDefinitionGetResponse, *_nethttp.Response, error)
GetServiceDefinition Get a single service definition. Get a single service definition from the Datadog Service Catalog.
func (a *ServiceDefinitionApi) ListServiceDefinitions(ctx _context.Context, o ...ListServiceDefinitionsOptionalParameters) (ServiceDefinitionsListResponse, *_nethttp.Response, error)
ListServiceDefinitions Get all service definitions. Get a list of all service definitions from the Datadog Service Catalog.
func (a *ServiceDefinitionApi) ListServiceDefinitionsWithPagination(ctx _context.Context, o ...ListServiceDefinitionsOptionalParameters) (<-chan datadog.PaginationResult[ServiceDefinitionData], func())
ListServiceDefinitionsWithPagination provides a paginated version of ListServiceDefinitions returning a channel with all items.
ServiceDefinitionCreateResponse Create service definitions response.
type ServiceDefinitionCreateResponse struct {
// Create service definitions response payload.
Data []ServiceDefinitionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionCreateResponse() *ServiceDefinitionCreateResponse
NewServiceDefinitionCreateResponse instantiates a new ServiceDefinitionCreateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionCreateResponseWithDefaults() *ServiceDefinitionCreateResponse
NewServiceDefinitionCreateResponseWithDefaults instantiates a new ServiceDefinitionCreateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionCreateResponse) GetData() []ServiceDefinitionData
GetData returns the Data field value if set, zero value otherwise.
func (o *ServiceDefinitionCreateResponse) GetDataOk() (*[]ServiceDefinitionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionCreateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ServiceDefinitionCreateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionCreateResponse) SetData(v []ServiceDefinitionData)
SetData gets a reference to the given []ServiceDefinitionData and assigns it to the Data field.
func (o *ServiceDefinitionCreateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionData Service definition data.
type ServiceDefinitionData struct {
// Service definition attributes.
Attributes *ServiceDefinitionDataAttributes `json:"attributes,omitempty"`
// Service definition id.
Id *string `json:"id,omitempty"`
// Service definition type.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionData() *ServiceDefinitionData
NewServiceDefinitionData instantiates a new ServiceDefinitionData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionDataWithDefaults() *ServiceDefinitionData
NewServiceDefinitionDataWithDefaults instantiates a new ServiceDefinitionData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionData) GetAttributes() ServiceDefinitionDataAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *ServiceDefinitionData) GetAttributesOk() (*ServiceDefinitionDataAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *ServiceDefinitionData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionData) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *ServiceDefinitionData) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *ServiceDefinitionData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ServiceDefinitionData) HasType() bool
HasType returns a boolean if a field has been set.
func (o ServiceDefinitionData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionData) SetAttributes(v ServiceDefinitionDataAttributes)
SetAttributes gets a reference to the given ServiceDefinitionDataAttributes and assigns it to the Attributes field.
func (o *ServiceDefinitionData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *ServiceDefinitionData) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *ServiceDefinitionData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionDataAttributes Service definition attributes.
type ServiceDefinitionDataAttributes struct {
// Metadata about a service definition.
Meta *ServiceDefinitionMeta `json:"meta,omitempty"`
// Service definition schema.
Schema *ServiceDefinitionSchema `json:"schema,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionDataAttributes() *ServiceDefinitionDataAttributes
NewServiceDefinitionDataAttributes instantiates a new ServiceDefinitionDataAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionDataAttributesWithDefaults() *ServiceDefinitionDataAttributes
NewServiceDefinitionDataAttributesWithDefaults instantiates a new ServiceDefinitionDataAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionDataAttributes) GetMeta() ServiceDefinitionMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *ServiceDefinitionDataAttributes) GetMetaOk() (*ServiceDefinitionMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionDataAttributes) GetSchema() ServiceDefinitionSchema
GetSchema returns the Schema field value if set, zero value otherwise.
func (o *ServiceDefinitionDataAttributes) GetSchemaOk() (*ServiceDefinitionSchema, bool)
GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionDataAttributes) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o *ServiceDefinitionDataAttributes) HasSchema() bool
HasSchema returns a boolean if a field has been set.
func (o ServiceDefinitionDataAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionDataAttributes) SetMeta(v ServiceDefinitionMeta)
SetMeta gets a reference to the given ServiceDefinitionMeta and assigns it to the Meta field.
func (o *ServiceDefinitionDataAttributes) SetSchema(v ServiceDefinitionSchema)
SetSchema gets a reference to the given ServiceDefinitionSchema and assigns it to the Schema field.
func (o *ServiceDefinitionDataAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionGetResponse Get service definition response.
type ServiceDefinitionGetResponse struct {
// Service definition data.
Data *ServiceDefinitionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionGetResponse() *ServiceDefinitionGetResponse
NewServiceDefinitionGetResponse instantiates a new ServiceDefinitionGetResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionGetResponseWithDefaults() *ServiceDefinitionGetResponse
NewServiceDefinitionGetResponseWithDefaults instantiates a new ServiceDefinitionGetResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionGetResponse) GetData() ServiceDefinitionData
GetData returns the Data field value if set, zero value otherwise.
func (o *ServiceDefinitionGetResponse) GetDataOk() (*ServiceDefinitionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionGetResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ServiceDefinitionGetResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionGetResponse) SetData(v ServiceDefinitionData)
SetData gets a reference to the given ServiceDefinitionData and assigns it to the Data field.
func (o *ServiceDefinitionGetResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionMeta Metadata about a service definition.
type ServiceDefinitionMeta struct {
// GitHub HTML URL.
GithubHtmlUrl *string `json:"github-html-url,omitempty"`
// Ingestion schema version.
IngestedSchemaVersion *string `json:"ingested-schema-version,omitempty"`
// Ingestion source of the service definition.
IngestionSource *string `json:"ingestion-source,omitempty"`
// Last modified time of the service definition.
LastModifiedTime *string `json:"last-modified-time,omitempty"`
// User defined origin of the service definition.
Origin *string `json:"origin,omitempty"`
// User defined origin's detail of the service definition.
OriginDetail *string `json:"origin-detail,omitempty"`
// A list of schema validation warnings.
Warnings []ServiceDefinitionMetaWarnings `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionMeta() *ServiceDefinitionMeta
NewServiceDefinitionMeta instantiates a new ServiceDefinitionMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionMetaWithDefaults() *ServiceDefinitionMeta
NewServiceDefinitionMetaWithDefaults instantiates a new ServiceDefinitionMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionMeta) GetGithubHtmlUrl() string
GetGithubHtmlUrl returns the GithubHtmlUrl field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetGithubHtmlUrlOk() (*string, bool)
GetGithubHtmlUrlOk returns a tuple with the GithubHtmlUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetIngestedSchemaVersion() string
GetIngestedSchemaVersion returns the IngestedSchemaVersion field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetIngestedSchemaVersionOk() (*string, bool)
GetIngestedSchemaVersionOk returns a tuple with the IngestedSchemaVersion field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetIngestionSource() string
GetIngestionSource returns the IngestionSource field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetIngestionSourceOk() (*string, bool)
GetIngestionSourceOk returns a tuple with the IngestionSource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetLastModifiedTime() string
GetLastModifiedTime returns the LastModifiedTime field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetLastModifiedTimeOk() (*string, bool)
GetLastModifiedTimeOk returns a tuple with the LastModifiedTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetOrigin() string
GetOrigin returns the Origin field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetOriginDetail() string
GetOriginDetail returns the OriginDetail field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetOriginDetailOk() (*string, bool)
GetOriginDetailOk returns a tuple with the OriginDetail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetOriginOk() (*string, bool)
GetOriginOk returns a tuple with the Origin field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetWarnings() []ServiceDefinitionMetaWarnings
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetWarningsOk() (*[]ServiceDefinitionMetaWarnings, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) HasGithubHtmlUrl() bool
HasGithubHtmlUrl returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasIngestedSchemaVersion() bool
HasIngestedSchemaVersion returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasIngestionSource() bool
HasIngestionSource returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasLastModifiedTime() bool
HasLastModifiedTime returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasOrigin() bool
HasOrigin returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasOriginDetail() bool
HasOriginDetail returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o ServiceDefinitionMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionMeta) SetGithubHtmlUrl(v string)
SetGithubHtmlUrl gets a reference to the given string and assigns it to the GithubHtmlUrl field.
func (o *ServiceDefinitionMeta) SetIngestedSchemaVersion(v string)
SetIngestedSchemaVersion gets a reference to the given string and assigns it to the IngestedSchemaVersion field.
func (o *ServiceDefinitionMeta) SetIngestionSource(v string)
SetIngestionSource gets a reference to the given string and assigns it to the IngestionSource field.
func (o *ServiceDefinitionMeta) SetLastModifiedTime(v string)
SetLastModifiedTime gets a reference to the given string and assigns it to the LastModifiedTime field.
func (o *ServiceDefinitionMeta) SetOrigin(v string)
SetOrigin gets a reference to the given string and assigns it to the Origin field.
func (o *ServiceDefinitionMeta) SetOriginDetail(v string)
SetOriginDetail gets a reference to the given string and assigns it to the OriginDetail field.
func (o *ServiceDefinitionMeta) SetWarnings(v []ServiceDefinitionMetaWarnings)
SetWarnings gets a reference to the given []ServiceDefinitionMetaWarnings and assigns it to the Warnings field.
func (o *ServiceDefinitionMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionMetaWarnings Schema validation warnings.
type ServiceDefinitionMetaWarnings struct {
// The warning instance location.
InstanceLocation *string `json:"instance-location,omitempty"`
// The warning keyword location.
KeywordLocation *string `json:"keyword-location,omitempty"`
// The warning message.
Message *string `json:"message,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionMetaWarnings() *ServiceDefinitionMetaWarnings
NewServiceDefinitionMetaWarnings instantiates a new ServiceDefinitionMetaWarnings object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionMetaWarningsWithDefaults() *ServiceDefinitionMetaWarnings
NewServiceDefinitionMetaWarningsWithDefaults instantiates a new ServiceDefinitionMetaWarnings object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionMetaWarnings) GetInstanceLocation() string
GetInstanceLocation returns the InstanceLocation field value if set, zero value otherwise.
func (o *ServiceDefinitionMetaWarnings) GetInstanceLocationOk() (*string, bool)
GetInstanceLocationOk returns a tuple with the InstanceLocation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMetaWarnings) GetKeywordLocation() string
GetKeywordLocation returns the KeywordLocation field value if set, zero value otherwise.
func (o *ServiceDefinitionMetaWarnings) GetKeywordLocationOk() (*string, bool)
GetKeywordLocationOk returns a tuple with the KeywordLocation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMetaWarnings) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *ServiceDefinitionMetaWarnings) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMetaWarnings) HasInstanceLocation() bool
HasInstanceLocation returns a boolean if a field has been set.
func (o *ServiceDefinitionMetaWarnings) HasKeywordLocation() bool
HasKeywordLocation returns a boolean if a field has been set.
func (o *ServiceDefinitionMetaWarnings) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o ServiceDefinitionMetaWarnings) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionMetaWarnings) SetInstanceLocation(v string)
SetInstanceLocation gets a reference to the given string and assigns it to the InstanceLocation field.
func (o *ServiceDefinitionMetaWarnings) SetKeywordLocation(v string)
SetKeywordLocation gets a reference to the given string and assigns it to the KeywordLocation field.
func (o *ServiceDefinitionMetaWarnings) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *ServiceDefinitionMetaWarnings) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionSchema - Service definition schema.
type ServiceDefinitionSchema struct {
ServiceDefinitionV1 *ServiceDefinitionV1
ServiceDefinitionV2 *ServiceDefinitionV2
ServiceDefinitionV2Dot1 *ServiceDefinitionV2Dot1
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func ServiceDefinitionV1AsServiceDefinitionSchema(v *ServiceDefinitionV1) ServiceDefinitionSchema
ServiceDefinitionV1AsServiceDefinitionSchema is a convenience function that returns ServiceDefinitionV1 wrapped in ServiceDefinitionSchema.
func ServiceDefinitionV2AsServiceDefinitionSchema(v *ServiceDefinitionV2) ServiceDefinitionSchema
ServiceDefinitionV2AsServiceDefinitionSchema is a convenience function that returns ServiceDefinitionV2 wrapped in ServiceDefinitionSchema.
func ServiceDefinitionV2Dot1AsServiceDefinitionSchema(v *ServiceDefinitionV2Dot1) ServiceDefinitionSchema
ServiceDefinitionV2Dot1AsServiceDefinitionSchema is a convenience function that returns ServiceDefinitionV2Dot1 wrapped in ServiceDefinitionSchema.
func (obj *ServiceDefinitionSchema) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ServiceDefinitionSchema) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ServiceDefinitionSchema) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ServiceDefinitionSchemaVersions Schema versions
type ServiceDefinitionSchemaVersions string
List of ServiceDefinitionSchemaVersions.
const (
SERVICEDEFINITIONSCHEMAVERSIONS_V1 ServiceDefinitionSchemaVersions = "v1"
SERVICEDEFINITIONSCHEMAVERSIONS_V2 ServiceDefinitionSchemaVersions = "v2"
SERVICEDEFINITIONSCHEMAVERSIONS_V2_1 ServiceDefinitionSchemaVersions = "v2.1"
)
func NewServiceDefinitionSchemaVersionsFromValue(v string) (*ServiceDefinitionSchemaVersions, error)
NewServiceDefinitionSchemaVersionsFromValue returns a pointer to a valid ServiceDefinitionSchemaVersions for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionSchemaVersions) GetAllowedValues() []ServiceDefinitionSchemaVersions
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionSchemaVersions) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionSchemaVersions) Ptr() *ServiceDefinitionSchemaVersions
Ptr returns reference to ServiceDefinitionSchemaVersions value.
func (v *ServiceDefinitionSchemaVersions) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1 Deprecated - Service definition V1 for providing additional service metadata and integrations.
Deprecated: This model is deprecated.
type ServiceDefinitionV1 struct {
// Contact information about the service.
Contact *ServiceDefinitionV1Contact `json:"contact,omitempty"`
// Extensions to V1 schema.
Extensions map[string]interface{} `json:"extensions,omitempty"`
// A list of external links related to the services.
ExternalResources []ServiceDefinitionV1Resource `json:"external-resources,omitempty"`
// Basic information about a service.
Info ServiceDefinitionV1Info `json:"info"`
// Third party integrations that Datadog supports.
Integrations *ServiceDefinitionV1Integrations `json:"integrations,omitempty"`
// Org related information about the service.
Org *ServiceDefinitionV1Org `json:"org,omitempty"`
// Schema version being used.
SchemaVersion ServiceDefinitionV1Version `json:"schema-version"`
// A set of custom tags.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1(info ServiceDefinitionV1Info, schemaVersion ServiceDefinitionV1Version) *ServiceDefinitionV1
NewServiceDefinitionV1 instantiates a new ServiceDefinitionV1 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1WithDefaults() *ServiceDefinitionV1
NewServiceDefinitionV1WithDefaults instantiates a new ServiceDefinitionV1 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1) GetContact() ServiceDefinitionV1Contact
GetContact returns the Contact field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetContactOk() (*ServiceDefinitionV1Contact, bool)
GetContactOk returns a tuple with the Contact field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetExtensions() map[string]interface{}
GetExtensions returns the Extensions field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetExtensionsOk() (*map[string]interface{}, bool)
GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetExternalResources() []ServiceDefinitionV1Resource
GetExternalResources returns the ExternalResources field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetExternalResourcesOk() (*[]ServiceDefinitionV1Resource, bool)
GetExternalResourcesOk returns a tuple with the ExternalResources field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetInfo() ServiceDefinitionV1Info
GetInfo returns the Info field value.
func (o *ServiceDefinitionV1) GetInfoOk() (*ServiceDefinitionV1Info, bool)
GetInfoOk returns a tuple with the Info field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetIntegrations() ServiceDefinitionV1Integrations
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetIntegrationsOk() (*ServiceDefinitionV1Integrations, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetOrg() ServiceDefinitionV1Org
GetOrg returns the Org field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetOrgOk() (*ServiceDefinitionV1Org, bool)
GetOrgOk returns a tuple with the Org field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetSchemaVersion() ServiceDefinitionV1Version
GetSchemaVersion returns the SchemaVersion field value.
func (o *ServiceDefinitionV1) GetSchemaVersionOk() (*ServiceDefinitionV1Version, bool)
GetSchemaVersionOk returns a tuple with the SchemaVersion field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) HasContact() bool
HasContact returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasExtensions() bool
HasExtensions returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasExternalResources() bool
HasExternalResources returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasOrg() bool
HasOrg returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ServiceDefinitionV1) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1) SetContact(v ServiceDefinitionV1Contact)
SetContact gets a reference to the given ServiceDefinitionV1Contact and assigns it to the Contact field.
func (o *ServiceDefinitionV1) SetExtensions(v map[string]interface{})
SetExtensions gets a reference to the given map[string]interface{} and assigns it to the Extensions field.
func (o *ServiceDefinitionV1) SetExternalResources(v []ServiceDefinitionV1Resource)
SetExternalResources gets a reference to the given []ServiceDefinitionV1Resource and assigns it to the ExternalResources field.
func (o *ServiceDefinitionV1) SetInfo(v ServiceDefinitionV1Info)
SetInfo sets field value.
func (o *ServiceDefinitionV1) SetIntegrations(v ServiceDefinitionV1Integrations)
SetIntegrations gets a reference to the given ServiceDefinitionV1Integrations and assigns it to the Integrations field.
func (o *ServiceDefinitionV1) SetOrg(v ServiceDefinitionV1Org)
SetOrg gets a reference to the given ServiceDefinitionV1Org and assigns it to the Org field.
func (o *ServiceDefinitionV1) SetSchemaVersion(v ServiceDefinitionV1Version)
SetSchemaVersion sets field value.
func (o *ServiceDefinitionV1) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ServiceDefinitionV1) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Contact Contact information about the service.
type ServiceDefinitionV1Contact struct {
// Service owner’s email.
Email *string `json:"email,omitempty"`
// Service owner’s Slack channel.
Slack *string `json:"slack,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Contact() *ServiceDefinitionV1Contact
NewServiceDefinitionV1Contact instantiates a new ServiceDefinitionV1Contact object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1ContactWithDefaults() *ServiceDefinitionV1Contact
NewServiceDefinitionV1ContactWithDefaults instantiates a new ServiceDefinitionV1Contact object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Contact) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Contact) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Contact) GetSlack() string
GetSlack returns the Slack field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Contact) GetSlackOk() (*string, bool)
GetSlackOk returns a tuple with the Slack field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Contact) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *ServiceDefinitionV1Contact) HasSlack() bool
HasSlack returns a boolean if a field has been set.
func (o ServiceDefinitionV1Contact) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Contact) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *ServiceDefinitionV1Contact) SetSlack(v string)
SetSlack gets a reference to the given string and assigns it to the Slack field.
func (o *ServiceDefinitionV1Contact) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Info Basic information about a service.
type ServiceDefinitionV1Info struct {
// Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog.
DdService string `json:"dd-service"`
// A short description of the service.
Description *string `json:"description,omitempty"`
// A friendly name of the service.
DisplayName *string `json:"display-name,omitempty"`
// Service tier.
ServiceTier *string `json:"service-tier,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Info(ddService string) *ServiceDefinitionV1Info
NewServiceDefinitionV1Info instantiates a new ServiceDefinitionV1Info object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1InfoWithDefaults() *ServiceDefinitionV1Info
NewServiceDefinitionV1InfoWithDefaults instantiates a new ServiceDefinitionV1Info object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Info) GetDdService() string
GetDdService returns the DdService field value.
func (o *ServiceDefinitionV1Info) GetDdServiceOk() (*string, bool)
GetDdServiceOk returns a tuple with the DdService field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Info) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Info) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Info) GetDisplayName() string
GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Info) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Info) GetServiceTier() string
GetServiceTier returns the ServiceTier field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Info) GetServiceTierOk() (*string, bool)
GetServiceTierOk returns a tuple with the ServiceTier field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Info) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *ServiceDefinitionV1Info) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (o *ServiceDefinitionV1Info) HasServiceTier() bool
HasServiceTier returns a boolean if a field has been set.
func (o ServiceDefinitionV1Info) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Info) SetDdService(v string)
SetDdService sets field value.
func (o *ServiceDefinitionV1Info) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *ServiceDefinitionV1Info) SetDisplayName(v string)
SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *ServiceDefinitionV1Info) SetServiceTier(v string)
SetServiceTier gets a reference to the given string and assigns it to the ServiceTier field.
func (o *ServiceDefinitionV1Info) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Integrations Third party integrations that Datadog supports.
type ServiceDefinitionV1Integrations struct {
// PagerDuty service URL for the service.
Pagerduty *string `json:"pagerduty,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Integrations() *ServiceDefinitionV1Integrations
NewServiceDefinitionV1Integrations instantiates a new ServiceDefinitionV1Integrations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1IntegrationsWithDefaults() *ServiceDefinitionV1Integrations
NewServiceDefinitionV1IntegrationsWithDefaults instantiates a new ServiceDefinitionV1Integrations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Integrations) GetPagerduty() string
GetPagerduty returns the Pagerduty field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Integrations) GetPagerdutyOk() (*string, bool)
GetPagerdutyOk returns a tuple with the Pagerduty field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Integrations) HasPagerduty() bool
HasPagerduty returns a boolean if a field has been set.
func (o ServiceDefinitionV1Integrations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Integrations) SetPagerduty(v string)
SetPagerduty gets a reference to the given string and assigns it to the Pagerduty field.
func (o *ServiceDefinitionV1Integrations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Org Org related information about the service.
type ServiceDefinitionV1Org struct {
// App feature this service supports.
Application *string `json:"application,omitempty"`
// Team that owns the service.
Team *string `json:"team,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Org() *ServiceDefinitionV1Org
NewServiceDefinitionV1Org instantiates a new ServiceDefinitionV1Org object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1OrgWithDefaults() *ServiceDefinitionV1Org
NewServiceDefinitionV1OrgWithDefaults instantiates a new ServiceDefinitionV1Org object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Org) GetApplication() string
GetApplication returns the Application field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Org) GetApplicationOk() (*string, bool)
GetApplicationOk returns a tuple with the Application field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Org) GetTeam() string
GetTeam returns the Team field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Org) GetTeamOk() (*string, bool)
GetTeamOk returns a tuple with the Team field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Org) HasApplication() bool
HasApplication returns a boolean if a field has been set.
func (o *ServiceDefinitionV1Org) HasTeam() bool
HasTeam returns a boolean if a field has been set.
func (o ServiceDefinitionV1Org) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Org) SetApplication(v string)
SetApplication gets a reference to the given string and assigns it to the Application field.
func (o *ServiceDefinitionV1Org) SetTeam(v string)
SetTeam gets a reference to the given string and assigns it to the Team field.
func (o *ServiceDefinitionV1Org) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Resource Service's external links.
type ServiceDefinitionV1Resource struct {
// Link name.
Name string `json:"name"`
// Link type.
Type ServiceDefinitionV1ResourceType `json:"type"`
// Link URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Resource(name string, typeVar ServiceDefinitionV1ResourceType, url string) *ServiceDefinitionV1Resource
NewServiceDefinitionV1Resource instantiates a new ServiceDefinitionV1Resource object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1ResourceWithDefaults() *ServiceDefinitionV1Resource
NewServiceDefinitionV1ResourceWithDefaults instantiates a new ServiceDefinitionV1Resource object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Resource) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV1Resource) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Resource) GetType() ServiceDefinitionV1ResourceType
GetType returns the Type field value.
func (o *ServiceDefinitionV1Resource) GetTypeOk() (*ServiceDefinitionV1ResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Resource) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV1Resource) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o ServiceDefinitionV1Resource) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Resource) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV1Resource) SetType(v ServiceDefinitionV1ResourceType)
SetType sets field value.
func (o *ServiceDefinitionV1Resource) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV1Resource) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1ResourceType Link type.
type ServiceDefinitionV1ResourceType string
List of ServiceDefinitionV1ResourceType.
const (
SERVICEDEFINITIONV1RESOURCETYPE_DOC ServiceDefinitionV1ResourceType = "doc"
SERVICEDEFINITIONV1RESOURCETYPE_WIKI ServiceDefinitionV1ResourceType = "wiki"
SERVICEDEFINITIONV1RESOURCETYPE_RUNBOOK ServiceDefinitionV1ResourceType = "runbook"
SERVICEDEFINITIONV1RESOURCETYPE_URL ServiceDefinitionV1ResourceType = "url"
SERVICEDEFINITIONV1RESOURCETYPE_REPO ServiceDefinitionV1ResourceType = "repo"
SERVICEDEFINITIONV1RESOURCETYPE_DASHBOARD ServiceDefinitionV1ResourceType = "dashboard"
SERVICEDEFINITIONV1RESOURCETYPE_ONCALL ServiceDefinitionV1ResourceType = "oncall"
SERVICEDEFINITIONV1RESOURCETYPE_CODE ServiceDefinitionV1ResourceType = "code"
SERVICEDEFINITIONV1RESOURCETYPE_LINK ServiceDefinitionV1ResourceType = "link"
)
func NewServiceDefinitionV1ResourceTypeFromValue(v string) (*ServiceDefinitionV1ResourceType, error)
NewServiceDefinitionV1ResourceTypeFromValue returns a pointer to a valid ServiceDefinitionV1ResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV1ResourceType) GetAllowedValues() []ServiceDefinitionV1ResourceType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV1ResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV1ResourceType) Ptr() *ServiceDefinitionV1ResourceType
Ptr returns reference to ServiceDefinitionV1ResourceType value.
func (v *ServiceDefinitionV1ResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Version Schema version being used.
type ServiceDefinitionV1Version string
List of ServiceDefinitionV1Version.
const (
SERVICEDEFINITIONV1VERSION_V1 ServiceDefinitionV1Version = "v1"
)
func NewServiceDefinitionV1VersionFromValue(v string) (*ServiceDefinitionV1Version, error)
NewServiceDefinitionV1VersionFromValue returns a pointer to a valid ServiceDefinitionV1Version for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV1Version) GetAllowedValues() []ServiceDefinitionV1Version
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV1Version) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV1Version) Ptr() *ServiceDefinitionV1Version
Ptr returns reference to ServiceDefinitionV1Version value.
func (v *ServiceDefinitionV1Version) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2 Service definition V2 for providing service metadata and integrations.
type ServiceDefinitionV2 struct {
// A list of contacts related to the services.
Contacts []ServiceDefinitionV2Contact `json:"contacts,omitempty"`
// Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog.
DdService string `json:"dd-service"`
// Experimental feature. A Team handle that matches a Team in the Datadog Teams product.
DdTeam *string `json:"dd-team,omitempty"`
// A list of documentation related to the services.
Docs []ServiceDefinitionV2Doc `json:"docs,omitempty"`
// Extensions to V2 schema.
Extensions map[string]interface{} `json:"extensions,omitempty"`
// Third party integrations that Datadog supports.
Integrations *ServiceDefinitionV2Integrations `json:"integrations,omitempty"`
// A list of links related to the services.
Links []ServiceDefinitionV2Link `json:"links,omitempty"`
// A list of code repositories related to the services.
Repos []ServiceDefinitionV2Repo `json:"repos,omitempty"`
// Schema version being used.
SchemaVersion ServiceDefinitionV2Version `json:"schema-version"`
// A set of custom tags.
Tags []string `json:"tags,omitempty"`
// Team that owns the service.
Team *string `json:"team,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2(ddService string, schemaVersion ServiceDefinitionV2Version) *ServiceDefinitionV2
NewServiceDefinitionV2 instantiates a new ServiceDefinitionV2 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2WithDefaults() *ServiceDefinitionV2
NewServiceDefinitionV2WithDefaults instantiates a new ServiceDefinitionV2 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2) GetContacts() []ServiceDefinitionV2Contact
GetContacts returns the Contacts field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetContactsOk() (*[]ServiceDefinitionV2Contact, bool)
GetContactsOk returns a tuple with the Contacts field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetDdService() string
GetDdService returns the DdService field value.
func (o *ServiceDefinitionV2) GetDdServiceOk() (*string, bool)
GetDdServiceOk returns a tuple with the DdService field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetDdTeam() string
GetDdTeam returns the DdTeam field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetDdTeamOk() (*string, bool)
GetDdTeamOk returns a tuple with the DdTeam field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetDocs() []ServiceDefinitionV2Doc
GetDocs returns the Docs field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetDocsOk() (*[]ServiceDefinitionV2Doc, bool)
GetDocsOk returns a tuple with the Docs field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetExtensions() map[string]interface{}
GetExtensions returns the Extensions field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetExtensionsOk() (*map[string]interface{}, bool)
GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetIntegrations() ServiceDefinitionV2Integrations
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetIntegrationsOk() (*ServiceDefinitionV2Integrations, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetLinks() []ServiceDefinitionV2Link
GetLinks returns the Links field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetLinksOk() (*[]ServiceDefinitionV2Link, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetRepos() []ServiceDefinitionV2Repo
GetRepos returns the Repos field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetReposOk() (*[]ServiceDefinitionV2Repo, bool)
GetReposOk returns a tuple with the Repos field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetSchemaVersion() ServiceDefinitionV2Version
GetSchemaVersion returns the SchemaVersion field value.
func (o *ServiceDefinitionV2) GetSchemaVersionOk() (*ServiceDefinitionV2Version, bool)
GetSchemaVersionOk returns a tuple with the SchemaVersion field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetTeam() string
GetTeam returns the Team field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetTeamOk() (*string, bool)
GetTeamOk returns a tuple with the Team field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) HasContacts() bool
HasContacts returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasDdTeam() bool
HasDdTeam returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasDocs() bool
HasDocs returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasExtensions() bool
HasExtensions returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasRepos() bool
HasRepos returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasTeam() bool
HasTeam returns a boolean if a field has been set.
func (o ServiceDefinitionV2) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2) SetContacts(v []ServiceDefinitionV2Contact)
SetContacts gets a reference to the given []ServiceDefinitionV2Contact and assigns it to the Contacts field.
func (o *ServiceDefinitionV2) SetDdService(v string)
SetDdService sets field value.
func (o *ServiceDefinitionV2) SetDdTeam(v string)
SetDdTeam gets a reference to the given string and assigns it to the DdTeam field.
func (o *ServiceDefinitionV2) SetDocs(v []ServiceDefinitionV2Doc)
SetDocs gets a reference to the given []ServiceDefinitionV2Doc and assigns it to the Docs field.
func (o *ServiceDefinitionV2) SetExtensions(v map[string]interface{})
SetExtensions gets a reference to the given map[string]interface{} and assigns it to the Extensions field.
func (o *ServiceDefinitionV2) SetIntegrations(v ServiceDefinitionV2Integrations)
SetIntegrations gets a reference to the given ServiceDefinitionV2Integrations and assigns it to the Integrations field.
func (o *ServiceDefinitionV2) SetLinks(v []ServiceDefinitionV2Link)
SetLinks gets a reference to the given []ServiceDefinitionV2Link and assigns it to the Links field.
func (o *ServiceDefinitionV2) SetRepos(v []ServiceDefinitionV2Repo)
SetRepos gets a reference to the given []ServiceDefinitionV2Repo and assigns it to the Repos field.
func (o *ServiceDefinitionV2) SetSchemaVersion(v ServiceDefinitionV2Version)
SetSchemaVersion sets field value.
func (o *ServiceDefinitionV2) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ServiceDefinitionV2) SetTeam(v string)
SetTeam gets a reference to the given string and assigns it to the Team field.
func (o *ServiceDefinitionV2) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Contact - Service owner's contacts information.
type ServiceDefinitionV2Contact struct {
ServiceDefinitionV2Email *ServiceDefinitionV2Email
ServiceDefinitionV2Slack *ServiceDefinitionV2Slack
ServiceDefinitionV2MSTeams *ServiceDefinitionV2MSTeams
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func ServiceDefinitionV2EmailAsServiceDefinitionV2Contact(v *ServiceDefinitionV2Email) ServiceDefinitionV2Contact
ServiceDefinitionV2EmailAsServiceDefinitionV2Contact is a convenience function that returns ServiceDefinitionV2Email wrapped in ServiceDefinitionV2Contact.
func ServiceDefinitionV2MSTeamsAsServiceDefinitionV2Contact(v *ServiceDefinitionV2MSTeams) ServiceDefinitionV2Contact
ServiceDefinitionV2MSTeamsAsServiceDefinitionV2Contact is a convenience function that returns ServiceDefinitionV2MSTeams wrapped in ServiceDefinitionV2Contact.
func ServiceDefinitionV2SlackAsServiceDefinitionV2Contact(v *ServiceDefinitionV2Slack) ServiceDefinitionV2Contact
ServiceDefinitionV2SlackAsServiceDefinitionV2Contact is a convenience function that returns ServiceDefinitionV2Slack wrapped in ServiceDefinitionV2Contact.
func (obj *ServiceDefinitionV2Contact) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ServiceDefinitionV2Contact) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ServiceDefinitionV2Contact) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ServiceDefinitionV2Doc Service documents.
type ServiceDefinitionV2Doc struct {
// Document name.
Name string `json:"name"`
// Document provider.
Provider *string `json:"provider,omitempty"`
// Document URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Doc(name string, url string) *ServiceDefinitionV2Doc
NewServiceDefinitionV2Doc instantiates a new ServiceDefinitionV2Doc object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2DocWithDefaults() *ServiceDefinitionV2Doc
NewServiceDefinitionV2DocWithDefaults instantiates a new ServiceDefinitionV2Doc object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Doc) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV2Doc) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Doc) GetProvider() string
GetProvider returns the Provider field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Doc) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Doc) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV2Doc) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Doc) HasProvider() bool
HasProvider returns a boolean if a field has been set.
func (o ServiceDefinitionV2Doc) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Doc) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV2Doc) SetProvider(v string)
SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *ServiceDefinitionV2Doc) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV2Doc) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1 Service definition v2.1 for providing service metadata and integrations.
type ServiceDefinitionV2Dot1 struct {
// Identifier for a group of related services serving a product feature, which the service is a part of.
Application *string `json:"application,omitempty"`
// A list of contacts related to the services.
Contacts []ServiceDefinitionV2Dot1Contact `json:"contacts,omitempty"`
// Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog.
DdService string `json:"dd-service"`
// A short description of the service.
Description *string `json:"description,omitempty"`
// Extensions to v2.1 schema.
Extensions map[string]interface{} `json:"extensions,omitempty"`
// Third party integrations that Datadog supports.
Integrations *ServiceDefinitionV2Dot1Integrations `json:"integrations,omitempty"`
// The current life cycle phase of the service.
Lifecycle *string `json:"lifecycle,omitempty"`
// A list of links related to the services.
Links []ServiceDefinitionV2Dot1Link `json:"links,omitempty"`
// Schema version being used.
SchemaVersion ServiceDefinitionV2Dot1Version `json:"schema-version"`
// A set of custom tags.
Tags []string `json:"tags,omitempty"`
// Team that owns the service. It is used to locate a team defined in Datadog Teams if it exists.
Team *string `json:"team,omitempty"`
// Importance of the service.
Tier *string `json:"tier,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Dot1(ddService string, schemaVersion ServiceDefinitionV2Dot1Version) *ServiceDefinitionV2Dot1
NewServiceDefinitionV2Dot1 instantiates a new ServiceDefinitionV2Dot1 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2Dot1WithDefaults() *ServiceDefinitionV2Dot1
NewServiceDefinitionV2Dot1WithDefaults instantiates a new ServiceDefinitionV2Dot1 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Dot1) GetApplication() string
GetApplication returns the Application field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetApplicationOk() (*string, bool)
GetApplicationOk returns a tuple with the Application field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetContacts() []ServiceDefinitionV2Dot1Contact
GetContacts returns the Contacts field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetContactsOk() (*[]ServiceDefinitionV2Dot1Contact, bool)
GetContactsOk returns a tuple with the Contacts field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetDdService() string
GetDdService returns the DdService field value.
func (o *ServiceDefinitionV2Dot1) GetDdServiceOk() (*string, bool)
GetDdServiceOk returns a tuple with the DdService field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetExtensions() map[string]interface{}
GetExtensions returns the Extensions field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetExtensionsOk() (*map[string]interface{}, bool)
GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetIntegrations() ServiceDefinitionV2Dot1Integrations
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetIntegrationsOk() (*ServiceDefinitionV2Dot1Integrations, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetLifecycle() string
GetLifecycle returns the Lifecycle field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetLifecycleOk() (*string, bool)
GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetLinks() []ServiceDefinitionV2Dot1Link
GetLinks returns the Links field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetLinksOk() (*[]ServiceDefinitionV2Dot1Link, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetSchemaVersion() ServiceDefinitionV2Dot1Version
GetSchemaVersion returns the SchemaVersion field value.
func (o *ServiceDefinitionV2Dot1) GetSchemaVersionOk() (*ServiceDefinitionV2Dot1Version, bool)
GetSchemaVersionOk returns a tuple with the SchemaVersion field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetTeam() string
GetTeam returns the Team field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetTeamOk() (*string, bool)
GetTeamOk returns a tuple with the Team field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) GetTier() string
GetTier returns the Tier field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1) GetTierOk() (*string, bool)
GetTierOk returns a tuple with the Tier field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1) HasApplication() bool
HasApplication returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasContacts() bool
HasContacts returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasExtensions() bool
HasExtensions returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasLifecycle() bool
HasLifecycle returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasTeam() bool
HasTeam returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1) HasTier() bool
HasTier returns a boolean if a field has been set.
func (o ServiceDefinitionV2Dot1) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Dot1) SetApplication(v string)
SetApplication gets a reference to the given string and assigns it to the Application field.
func (o *ServiceDefinitionV2Dot1) SetContacts(v []ServiceDefinitionV2Dot1Contact)
SetContacts gets a reference to the given []ServiceDefinitionV2Dot1Contact and assigns it to the Contacts field.
func (o *ServiceDefinitionV2Dot1) SetDdService(v string)
SetDdService sets field value.
func (o *ServiceDefinitionV2Dot1) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *ServiceDefinitionV2Dot1) SetExtensions(v map[string]interface{})
SetExtensions gets a reference to the given map[string]interface{} and assigns it to the Extensions field.
func (o *ServiceDefinitionV2Dot1) SetIntegrations(v ServiceDefinitionV2Dot1Integrations)
SetIntegrations gets a reference to the given ServiceDefinitionV2Dot1Integrations and assigns it to the Integrations field.
func (o *ServiceDefinitionV2Dot1) SetLifecycle(v string)
SetLifecycle gets a reference to the given string and assigns it to the Lifecycle field.
func (o *ServiceDefinitionV2Dot1) SetLinks(v []ServiceDefinitionV2Dot1Link)
SetLinks gets a reference to the given []ServiceDefinitionV2Dot1Link and assigns it to the Links field.
func (o *ServiceDefinitionV2Dot1) SetSchemaVersion(v ServiceDefinitionV2Dot1Version)
SetSchemaVersion sets field value.
func (o *ServiceDefinitionV2Dot1) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ServiceDefinitionV2Dot1) SetTeam(v string)
SetTeam gets a reference to the given string and assigns it to the Team field.
func (o *ServiceDefinitionV2Dot1) SetTier(v string)
SetTier gets a reference to the given string and assigns it to the Tier field.
func (o *ServiceDefinitionV2Dot1) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1Contact - Service owner's contacts information.
type ServiceDefinitionV2Dot1Contact struct {
ServiceDefinitionV2Dot1Email *ServiceDefinitionV2Dot1Email
ServiceDefinitionV2Dot1Slack *ServiceDefinitionV2Dot1Slack
ServiceDefinitionV2Dot1MSTeams *ServiceDefinitionV2Dot1MSTeams
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func ServiceDefinitionV2Dot1EmailAsServiceDefinitionV2Dot1Contact(v *ServiceDefinitionV2Dot1Email) ServiceDefinitionV2Dot1Contact
ServiceDefinitionV2Dot1EmailAsServiceDefinitionV2Dot1Contact is a convenience function that returns ServiceDefinitionV2Dot1Email wrapped in ServiceDefinitionV2Dot1Contact.
func ServiceDefinitionV2Dot1MSTeamsAsServiceDefinitionV2Dot1Contact(v *ServiceDefinitionV2Dot1MSTeams) ServiceDefinitionV2Dot1Contact
ServiceDefinitionV2Dot1MSTeamsAsServiceDefinitionV2Dot1Contact is a convenience function that returns ServiceDefinitionV2Dot1MSTeams wrapped in ServiceDefinitionV2Dot1Contact.
func ServiceDefinitionV2Dot1SlackAsServiceDefinitionV2Dot1Contact(v *ServiceDefinitionV2Dot1Slack) ServiceDefinitionV2Dot1Contact
ServiceDefinitionV2Dot1SlackAsServiceDefinitionV2Dot1Contact is a convenience function that returns ServiceDefinitionV2Dot1Slack wrapped in ServiceDefinitionV2Dot1Contact.
func (obj *ServiceDefinitionV2Dot1Contact) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ServiceDefinitionV2Dot1Contact) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ServiceDefinitionV2Dot1Contact) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ServiceDefinitionV2Dot1Email Service owner's email.
type ServiceDefinitionV2Dot1Email struct {
// Contact value.
Contact string `json:"contact"`
// Contact email.
Name *string `json:"name,omitempty"`
// Contact type.
Type ServiceDefinitionV2Dot1EmailType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Dot1Email(contact string, typeVar ServiceDefinitionV2Dot1EmailType) *ServiceDefinitionV2Dot1Email
NewServiceDefinitionV2Dot1Email instantiates a new ServiceDefinitionV2Dot1Email object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2Dot1EmailWithDefaults() *ServiceDefinitionV2Dot1Email
NewServiceDefinitionV2Dot1EmailWithDefaults instantiates a new ServiceDefinitionV2Dot1Email object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Dot1Email) GetContact() string
GetContact returns the Contact field value.
func (o *ServiceDefinitionV2Dot1Email) GetContactOk() (*string, bool)
GetContactOk returns a tuple with the Contact field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Email) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1Email) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Email) GetType() ServiceDefinitionV2Dot1EmailType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Dot1Email) GetTypeOk() (*ServiceDefinitionV2Dot1EmailType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Email) HasName() bool
HasName returns a boolean if a field has been set.
func (o ServiceDefinitionV2Dot1Email) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Dot1Email) SetContact(v string)
SetContact sets field value.
func (o *ServiceDefinitionV2Dot1Email) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceDefinitionV2Dot1Email) SetType(v ServiceDefinitionV2Dot1EmailType)
SetType sets field value.
func (o *ServiceDefinitionV2Dot1Email) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1EmailType Contact type.
type ServiceDefinitionV2Dot1EmailType string
List of ServiceDefinitionV2Dot1EmailType.
const (
SERVICEDEFINITIONV2DOT1EMAILTYPE_EMAIL ServiceDefinitionV2Dot1EmailType = "email"
)
func NewServiceDefinitionV2Dot1EmailTypeFromValue(v string) (*ServiceDefinitionV2Dot1EmailType, error)
NewServiceDefinitionV2Dot1EmailTypeFromValue returns a pointer to a valid ServiceDefinitionV2Dot1EmailType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2Dot1EmailType) GetAllowedValues() []ServiceDefinitionV2Dot1EmailType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2Dot1EmailType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2Dot1EmailType) Ptr() *ServiceDefinitionV2Dot1EmailType
Ptr returns reference to ServiceDefinitionV2Dot1EmailType value.
func (v *ServiceDefinitionV2Dot1EmailType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1Integrations Third party integrations that Datadog supports.
type ServiceDefinitionV2Dot1Integrations struct {
// Opsgenie integration for the service.
Opsgenie *ServiceDefinitionV2Dot1Opsgenie `json:"opsgenie,omitempty"`
// PagerDuty integration for the service.
Pagerduty *ServiceDefinitionV2Dot1Pagerduty `json:"pagerduty,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Dot1Integrations() *ServiceDefinitionV2Dot1Integrations
NewServiceDefinitionV2Dot1Integrations instantiates a new ServiceDefinitionV2Dot1Integrations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2Dot1IntegrationsWithDefaults() *ServiceDefinitionV2Dot1Integrations
NewServiceDefinitionV2Dot1IntegrationsWithDefaults instantiates a new ServiceDefinitionV2Dot1Integrations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Dot1Integrations) GetOpsgenie() ServiceDefinitionV2Dot1Opsgenie
GetOpsgenie returns the Opsgenie field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1Integrations) GetOpsgenieOk() (*ServiceDefinitionV2Dot1Opsgenie, bool)
GetOpsgenieOk returns a tuple with the Opsgenie field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Integrations) GetPagerduty() ServiceDefinitionV2Dot1Pagerduty
GetPagerduty returns the Pagerduty field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1Integrations) GetPagerdutyOk() (*ServiceDefinitionV2Dot1Pagerduty, bool)
GetPagerdutyOk returns a tuple with the Pagerduty field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Integrations) HasOpsgenie() bool
HasOpsgenie returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Dot1Integrations) HasPagerduty() bool
HasPagerduty returns a boolean if a field has been set.
func (o ServiceDefinitionV2Dot1Integrations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Dot1Integrations) SetOpsgenie(v ServiceDefinitionV2Dot1Opsgenie)
SetOpsgenie gets a reference to the given ServiceDefinitionV2Dot1Opsgenie and assigns it to the Opsgenie field.
func (o *ServiceDefinitionV2Dot1Integrations) SetPagerduty(v ServiceDefinitionV2Dot1Pagerduty)
SetPagerduty gets a reference to the given ServiceDefinitionV2Dot1Pagerduty and assigns it to the Pagerduty field.
func (o *ServiceDefinitionV2Dot1Integrations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1Link Service's external links.
type ServiceDefinitionV2Dot1Link struct {
// Link name.
Name string `json:"name"`
// Link provider.
Provider *string `json:"provider,omitempty"`
// Link type.
Type ServiceDefinitionV2Dot1LinkType `json:"type"`
// Link URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Dot1Link(name string, typeVar ServiceDefinitionV2Dot1LinkType, url string) *ServiceDefinitionV2Dot1Link
NewServiceDefinitionV2Dot1Link instantiates a new ServiceDefinitionV2Dot1Link object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2Dot1LinkWithDefaults() *ServiceDefinitionV2Dot1Link
NewServiceDefinitionV2Dot1LinkWithDefaults instantiates a new ServiceDefinitionV2Dot1Link object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Dot1Link) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV2Dot1Link) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Link) GetProvider() string
GetProvider returns the Provider field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1Link) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Link) GetType() ServiceDefinitionV2Dot1LinkType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Dot1Link) GetTypeOk() (*ServiceDefinitionV2Dot1LinkType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Link) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV2Dot1Link) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Link) HasProvider() bool
HasProvider returns a boolean if a field has been set.
func (o ServiceDefinitionV2Dot1Link) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Dot1Link) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV2Dot1Link) SetProvider(v string)
SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *ServiceDefinitionV2Dot1Link) SetType(v ServiceDefinitionV2Dot1LinkType)
SetType sets field value.
func (o *ServiceDefinitionV2Dot1Link) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV2Dot1Link) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1LinkType Link type.
type ServiceDefinitionV2Dot1LinkType string
List of ServiceDefinitionV2Dot1LinkType.
const (
SERVICEDEFINITIONV2DOT1LINKTYPE_DOC ServiceDefinitionV2Dot1LinkType = "doc"
SERVICEDEFINITIONV2DOT1LINKTYPE_REPO ServiceDefinitionV2Dot1LinkType = "repo"
SERVICEDEFINITIONV2DOT1LINKTYPE_RUNBOOK ServiceDefinitionV2Dot1LinkType = "runbook"
SERVICEDEFINITIONV2DOT1LINKTYPE_DASHBOARD ServiceDefinitionV2Dot1LinkType = "dashboard"
SERVICEDEFINITIONV2DOT1LINKTYPE_OTHER ServiceDefinitionV2Dot1LinkType = "other"
)
func NewServiceDefinitionV2Dot1LinkTypeFromValue(v string) (*ServiceDefinitionV2Dot1LinkType, error)
NewServiceDefinitionV2Dot1LinkTypeFromValue returns a pointer to a valid ServiceDefinitionV2Dot1LinkType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2Dot1LinkType) GetAllowedValues() []ServiceDefinitionV2Dot1LinkType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2Dot1LinkType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2Dot1LinkType) Ptr() *ServiceDefinitionV2Dot1LinkType
Ptr returns reference to ServiceDefinitionV2Dot1LinkType value.
func (v *ServiceDefinitionV2Dot1LinkType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1MSTeams Service owner's Microsoft Teams.
type ServiceDefinitionV2Dot1MSTeams struct {
// Contact value.
Contact string `json:"contact"`
// Contact Microsoft Teams.
Name *string `json:"name,omitempty"`
// Contact type.
Type ServiceDefinitionV2Dot1MSTeamsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Dot1MSTeams(contact string, typeVar ServiceDefinitionV2Dot1MSTeamsType) *ServiceDefinitionV2Dot1MSTeams
NewServiceDefinitionV2Dot1MSTeams instantiates a new ServiceDefinitionV2Dot1MSTeams object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2Dot1MSTeamsWithDefaults() *ServiceDefinitionV2Dot1MSTeams
NewServiceDefinitionV2Dot1MSTeamsWithDefaults instantiates a new ServiceDefinitionV2Dot1MSTeams object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Dot1MSTeams) GetContact() string
GetContact returns the Contact field value.
func (o *ServiceDefinitionV2Dot1MSTeams) GetContactOk() (*string, bool)
GetContactOk returns a tuple with the Contact field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1MSTeams) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1MSTeams) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1MSTeams) GetType() ServiceDefinitionV2Dot1MSTeamsType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Dot1MSTeams) GetTypeOk() (*ServiceDefinitionV2Dot1MSTeamsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1MSTeams) HasName() bool
HasName returns a boolean if a field has been set.
func (o ServiceDefinitionV2Dot1MSTeams) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Dot1MSTeams) SetContact(v string)
SetContact sets field value.
func (o *ServiceDefinitionV2Dot1MSTeams) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceDefinitionV2Dot1MSTeams) SetType(v ServiceDefinitionV2Dot1MSTeamsType)
SetType sets field value.
func (o *ServiceDefinitionV2Dot1MSTeams) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1MSTeamsType Contact type.
type ServiceDefinitionV2Dot1MSTeamsType string
List of ServiceDefinitionV2Dot1MSTeamsType.
const (
SERVICEDEFINITIONV2DOT1MSTEAMSTYPE_MICROSOFT_TEAMS ServiceDefinitionV2Dot1MSTeamsType = "microsoft-teams"
)
func NewServiceDefinitionV2Dot1MSTeamsTypeFromValue(v string) (*ServiceDefinitionV2Dot1MSTeamsType, error)
NewServiceDefinitionV2Dot1MSTeamsTypeFromValue returns a pointer to a valid ServiceDefinitionV2Dot1MSTeamsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2Dot1MSTeamsType) GetAllowedValues() []ServiceDefinitionV2Dot1MSTeamsType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2Dot1MSTeamsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2Dot1MSTeamsType) Ptr() *ServiceDefinitionV2Dot1MSTeamsType
Ptr returns reference to ServiceDefinitionV2Dot1MSTeamsType value.
func (v *ServiceDefinitionV2Dot1MSTeamsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1Opsgenie Opsgenie integration for the service.
type ServiceDefinitionV2Dot1Opsgenie struct {
// Opsgenie instance region.
Region *ServiceDefinitionV2Dot1OpsgenieRegion `json:"region,omitempty"`
// Opsgenie service url.
ServiceUrl string `json:"service-url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Dot1Opsgenie(serviceUrl string) *ServiceDefinitionV2Dot1Opsgenie
NewServiceDefinitionV2Dot1Opsgenie instantiates a new ServiceDefinitionV2Dot1Opsgenie object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2Dot1OpsgenieWithDefaults() *ServiceDefinitionV2Dot1Opsgenie
NewServiceDefinitionV2Dot1OpsgenieWithDefaults instantiates a new ServiceDefinitionV2Dot1Opsgenie object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Dot1Opsgenie) GetRegion() ServiceDefinitionV2Dot1OpsgenieRegion
GetRegion returns the Region field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1Opsgenie) GetRegionOk() (*ServiceDefinitionV2Dot1OpsgenieRegion, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Opsgenie) GetServiceUrl() string
GetServiceUrl returns the ServiceUrl field value.
func (o *ServiceDefinitionV2Dot1Opsgenie) GetServiceUrlOk() (*string, bool)
GetServiceUrlOk returns a tuple with the ServiceUrl field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Opsgenie) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o ServiceDefinitionV2Dot1Opsgenie) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Dot1Opsgenie) SetRegion(v ServiceDefinitionV2Dot1OpsgenieRegion)
SetRegion gets a reference to the given ServiceDefinitionV2Dot1OpsgenieRegion and assigns it to the Region field.
func (o *ServiceDefinitionV2Dot1Opsgenie) SetServiceUrl(v string)
SetServiceUrl sets field value.
func (o *ServiceDefinitionV2Dot1Opsgenie) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1OpsgenieRegion Opsgenie instance region.
type ServiceDefinitionV2Dot1OpsgenieRegion string
List of ServiceDefinitionV2Dot1OpsgenieRegion.
const (
SERVICEDEFINITIONV2DOT1OPSGENIEREGION_US ServiceDefinitionV2Dot1OpsgenieRegion = "US"
SERVICEDEFINITIONV2DOT1OPSGENIEREGION_EU ServiceDefinitionV2Dot1OpsgenieRegion = "EU"
)
func NewServiceDefinitionV2Dot1OpsgenieRegionFromValue(v string) (*ServiceDefinitionV2Dot1OpsgenieRegion, error)
NewServiceDefinitionV2Dot1OpsgenieRegionFromValue returns a pointer to a valid ServiceDefinitionV2Dot1OpsgenieRegion for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2Dot1OpsgenieRegion) GetAllowedValues() []ServiceDefinitionV2Dot1OpsgenieRegion
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2Dot1OpsgenieRegion) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2Dot1OpsgenieRegion) Ptr() *ServiceDefinitionV2Dot1OpsgenieRegion
Ptr returns reference to ServiceDefinitionV2Dot1OpsgenieRegion value.
func (v *ServiceDefinitionV2Dot1OpsgenieRegion) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1Pagerduty PagerDuty integration for the service.
type ServiceDefinitionV2Dot1Pagerduty struct {
// PagerDuty service url.
ServiceUrl *string `json:"service-url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Dot1Pagerduty() *ServiceDefinitionV2Dot1Pagerduty
NewServiceDefinitionV2Dot1Pagerduty instantiates a new ServiceDefinitionV2Dot1Pagerduty object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2Dot1PagerdutyWithDefaults() *ServiceDefinitionV2Dot1Pagerduty
NewServiceDefinitionV2Dot1PagerdutyWithDefaults instantiates a new ServiceDefinitionV2Dot1Pagerduty object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Dot1Pagerduty) GetServiceUrl() string
GetServiceUrl returns the ServiceUrl field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1Pagerduty) GetServiceUrlOk() (*string, bool)
GetServiceUrlOk returns a tuple with the ServiceUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Pagerduty) HasServiceUrl() bool
HasServiceUrl returns a boolean if a field has been set.
func (o ServiceDefinitionV2Dot1Pagerduty) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Dot1Pagerduty) SetServiceUrl(v string)
SetServiceUrl gets a reference to the given string and assigns it to the ServiceUrl field.
func (o *ServiceDefinitionV2Dot1Pagerduty) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1Slack Service owner's Slack channel.
type ServiceDefinitionV2Dot1Slack struct {
// Slack Channel.
Contact string `json:"contact"`
// Contact Slack.
Name *string `json:"name,omitempty"`
// Contact type.
Type ServiceDefinitionV2Dot1SlackType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Dot1Slack(contact string, typeVar ServiceDefinitionV2Dot1SlackType) *ServiceDefinitionV2Dot1Slack
NewServiceDefinitionV2Dot1Slack instantiates a new ServiceDefinitionV2Dot1Slack object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2Dot1SlackWithDefaults() *ServiceDefinitionV2Dot1Slack
NewServiceDefinitionV2Dot1SlackWithDefaults instantiates a new ServiceDefinitionV2Dot1Slack object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Dot1Slack) GetContact() string
GetContact returns the Contact field value.
func (o *ServiceDefinitionV2Dot1Slack) GetContactOk() (*string, bool)
GetContactOk returns a tuple with the Contact field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Slack) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Dot1Slack) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Slack) GetType() ServiceDefinitionV2Dot1SlackType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Dot1Slack) GetTypeOk() (*ServiceDefinitionV2Dot1SlackType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Dot1Slack) HasName() bool
HasName returns a boolean if a field has been set.
func (o ServiceDefinitionV2Dot1Slack) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Dot1Slack) SetContact(v string)
SetContact sets field value.
func (o *ServiceDefinitionV2Dot1Slack) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceDefinitionV2Dot1Slack) SetType(v ServiceDefinitionV2Dot1SlackType)
SetType sets field value.
func (o *ServiceDefinitionV2Dot1Slack) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1SlackType Contact type.
type ServiceDefinitionV2Dot1SlackType string
List of ServiceDefinitionV2Dot1SlackType.
const (
SERVICEDEFINITIONV2DOT1SLACKTYPE_SLACK ServiceDefinitionV2Dot1SlackType = "slack"
)
func NewServiceDefinitionV2Dot1SlackTypeFromValue(v string) (*ServiceDefinitionV2Dot1SlackType, error)
NewServiceDefinitionV2Dot1SlackTypeFromValue returns a pointer to a valid ServiceDefinitionV2Dot1SlackType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2Dot1SlackType) GetAllowedValues() []ServiceDefinitionV2Dot1SlackType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2Dot1SlackType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2Dot1SlackType) Ptr() *ServiceDefinitionV2Dot1SlackType
Ptr returns reference to ServiceDefinitionV2Dot1SlackType value.
func (v *ServiceDefinitionV2Dot1SlackType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Dot1Version Schema version being used.
type ServiceDefinitionV2Dot1Version string
List of ServiceDefinitionV2Dot1Version.
const (
SERVICEDEFINITIONV2DOT1VERSION_V2_1 ServiceDefinitionV2Dot1Version = "v2.1"
)
func NewServiceDefinitionV2Dot1VersionFromValue(v string) (*ServiceDefinitionV2Dot1Version, error)
NewServiceDefinitionV2Dot1VersionFromValue returns a pointer to a valid ServiceDefinitionV2Dot1Version for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2Dot1Version) GetAllowedValues() []ServiceDefinitionV2Dot1Version
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2Dot1Version) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2Dot1Version) Ptr() *ServiceDefinitionV2Dot1Version
Ptr returns reference to ServiceDefinitionV2Dot1Version value.
func (v *ServiceDefinitionV2Dot1Version) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Email Service owner's email.
type ServiceDefinitionV2Email struct {
// Contact value.
Contact string `json:"contact"`
// Contact email.
Name *string `json:"name,omitempty"`
// Contact type.
Type ServiceDefinitionV2EmailType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Email(contact string, typeVar ServiceDefinitionV2EmailType) *ServiceDefinitionV2Email
NewServiceDefinitionV2Email instantiates a new ServiceDefinitionV2Email object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2EmailWithDefaults() *ServiceDefinitionV2Email
NewServiceDefinitionV2EmailWithDefaults instantiates a new ServiceDefinitionV2Email object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Email) GetContact() string
GetContact returns the Contact field value.
func (o *ServiceDefinitionV2Email) GetContactOk() (*string, bool)
GetContactOk returns a tuple with the Contact field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Email) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Email) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Email) GetType() ServiceDefinitionV2EmailType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Email) GetTypeOk() (*ServiceDefinitionV2EmailType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Email) HasName() bool
HasName returns a boolean if a field has been set.
func (o ServiceDefinitionV2Email) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Email) SetContact(v string)
SetContact sets field value.
func (o *ServiceDefinitionV2Email) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceDefinitionV2Email) SetType(v ServiceDefinitionV2EmailType)
SetType sets field value.
func (o *ServiceDefinitionV2Email) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2EmailType Contact type.
type ServiceDefinitionV2EmailType string
List of ServiceDefinitionV2EmailType.
const (
SERVICEDEFINITIONV2EMAILTYPE_EMAIL ServiceDefinitionV2EmailType = "email"
)
func NewServiceDefinitionV2EmailTypeFromValue(v string) (*ServiceDefinitionV2EmailType, error)
NewServiceDefinitionV2EmailTypeFromValue returns a pointer to a valid ServiceDefinitionV2EmailType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2EmailType) GetAllowedValues() []ServiceDefinitionV2EmailType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2EmailType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2EmailType) Ptr() *ServiceDefinitionV2EmailType
Ptr returns reference to ServiceDefinitionV2EmailType value.
func (v *ServiceDefinitionV2EmailType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Integrations Third party integrations that Datadog supports.
type ServiceDefinitionV2Integrations struct {
// Opsgenie integration for the service.
Opsgenie *ServiceDefinitionV2Opsgenie `json:"opsgenie,omitempty"`
// PagerDuty service URL for the service.
Pagerduty *string `json:"pagerduty,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Integrations() *ServiceDefinitionV2Integrations
NewServiceDefinitionV2Integrations instantiates a new ServiceDefinitionV2Integrations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2IntegrationsWithDefaults() *ServiceDefinitionV2Integrations
NewServiceDefinitionV2IntegrationsWithDefaults instantiates a new ServiceDefinitionV2Integrations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Integrations) GetOpsgenie() ServiceDefinitionV2Opsgenie
GetOpsgenie returns the Opsgenie field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Integrations) GetOpsgenieOk() (*ServiceDefinitionV2Opsgenie, bool)
GetOpsgenieOk returns a tuple with the Opsgenie field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Integrations) GetPagerduty() string
GetPagerduty returns the Pagerduty field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Integrations) GetPagerdutyOk() (*string, bool)
GetPagerdutyOk returns a tuple with the Pagerduty field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Integrations) HasOpsgenie() bool
HasOpsgenie returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Integrations) HasPagerduty() bool
HasPagerduty returns a boolean if a field has been set.
func (o ServiceDefinitionV2Integrations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Integrations) SetOpsgenie(v ServiceDefinitionV2Opsgenie)
SetOpsgenie gets a reference to the given ServiceDefinitionV2Opsgenie and assigns it to the Opsgenie field.
func (o *ServiceDefinitionV2Integrations) SetPagerduty(v string)
SetPagerduty gets a reference to the given string and assigns it to the Pagerduty field.
func (o *ServiceDefinitionV2Integrations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Link Service's external links.
type ServiceDefinitionV2Link struct {
// Link name.
Name string `json:"name"`
// Link type.
Type ServiceDefinitionV2LinkType `json:"type"`
// Link URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Link(name string, typeVar ServiceDefinitionV2LinkType, url string) *ServiceDefinitionV2Link
NewServiceDefinitionV2Link instantiates a new ServiceDefinitionV2Link object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2LinkWithDefaults() *ServiceDefinitionV2Link
NewServiceDefinitionV2LinkWithDefaults instantiates a new ServiceDefinitionV2Link object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Link) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV2Link) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Link) GetType() ServiceDefinitionV2LinkType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Link) GetTypeOk() (*ServiceDefinitionV2LinkType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Link) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV2Link) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o ServiceDefinitionV2Link) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Link) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV2Link) SetType(v ServiceDefinitionV2LinkType)
SetType sets field value.
func (o *ServiceDefinitionV2Link) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV2Link) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2LinkType Link type.
type ServiceDefinitionV2LinkType string
List of ServiceDefinitionV2LinkType.
const (
SERVICEDEFINITIONV2LINKTYPE_DOC ServiceDefinitionV2LinkType = "doc"
SERVICEDEFINITIONV2LINKTYPE_WIKI ServiceDefinitionV2LinkType = "wiki"
SERVICEDEFINITIONV2LINKTYPE_RUNBOOK ServiceDefinitionV2LinkType = "runbook"
SERVICEDEFINITIONV2LINKTYPE_URL ServiceDefinitionV2LinkType = "url"
SERVICEDEFINITIONV2LINKTYPE_REPO ServiceDefinitionV2LinkType = "repo"
SERVICEDEFINITIONV2LINKTYPE_DASHBOARD ServiceDefinitionV2LinkType = "dashboard"
SERVICEDEFINITIONV2LINKTYPE_ONCALL ServiceDefinitionV2LinkType = "oncall"
SERVICEDEFINITIONV2LINKTYPE_CODE ServiceDefinitionV2LinkType = "code"
SERVICEDEFINITIONV2LINKTYPE_LINK ServiceDefinitionV2LinkType = "link"
)
func NewServiceDefinitionV2LinkTypeFromValue(v string) (*ServiceDefinitionV2LinkType, error)
NewServiceDefinitionV2LinkTypeFromValue returns a pointer to a valid ServiceDefinitionV2LinkType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2LinkType) GetAllowedValues() []ServiceDefinitionV2LinkType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2LinkType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2LinkType) Ptr() *ServiceDefinitionV2LinkType
Ptr returns reference to ServiceDefinitionV2LinkType value.
func (v *ServiceDefinitionV2LinkType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2MSTeams Service owner's Microsoft Teams.
type ServiceDefinitionV2MSTeams struct {
// Contact value.
Contact string `json:"contact"`
// Contact Microsoft Teams.
Name *string `json:"name,omitempty"`
// Contact type.
Type ServiceDefinitionV2MSTeamsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2MSTeams(contact string, typeVar ServiceDefinitionV2MSTeamsType) *ServiceDefinitionV2MSTeams
NewServiceDefinitionV2MSTeams instantiates a new ServiceDefinitionV2MSTeams object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2MSTeamsWithDefaults() *ServiceDefinitionV2MSTeams
NewServiceDefinitionV2MSTeamsWithDefaults instantiates a new ServiceDefinitionV2MSTeams object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2MSTeams) GetContact() string
GetContact returns the Contact field value.
func (o *ServiceDefinitionV2MSTeams) GetContactOk() (*string, bool)
GetContactOk returns a tuple with the Contact field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2MSTeams) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceDefinitionV2MSTeams) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2MSTeams) GetType() ServiceDefinitionV2MSTeamsType
GetType returns the Type field value.
func (o *ServiceDefinitionV2MSTeams) GetTypeOk() (*ServiceDefinitionV2MSTeamsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2MSTeams) HasName() bool
HasName returns a boolean if a field has been set.
func (o ServiceDefinitionV2MSTeams) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2MSTeams) SetContact(v string)
SetContact sets field value.
func (o *ServiceDefinitionV2MSTeams) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceDefinitionV2MSTeams) SetType(v ServiceDefinitionV2MSTeamsType)
SetType sets field value.
func (o *ServiceDefinitionV2MSTeams) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2MSTeamsType Contact type.
type ServiceDefinitionV2MSTeamsType string
List of ServiceDefinitionV2MSTeamsType.
const (
SERVICEDEFINITIONV2MSTEAMSTYPE_MICROSOFT_TEAMS ServiceDefinitionV2MSTeamsType = "microsoft-teams"
)
func NewServiceDefinitionV2MSTeamsTypeFromValue(v string) (*ServiceDefinitionV2MSTeamsType, error)
NewServiceDefinitionV2MSTeamsTypeFromValue returns a pointer to a valid ServiceDefinitionV2MSTeamsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2MSTeamsType) GetAllowedValues() []ServiceDefinitionV2MSTeamsType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2MSTeamsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2MSTeamsType) Ptr() *ServiceDefinitionV2MSTeamsType
Ptr returns reference to ServiceDefinitionV2MSTeamsType value.
func (v *ServiceDefinitionV2MSTeamsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Opsgenie Opsgenie integration for the service.
type ServiceDefinitionV2Opsgenie struct {
// Opsgenie instance region.
Region *ServiceDefinitionV2OpsgenieRegion `json:"region,omitempty"`
// Opsgenie service url.
ServiceUrl string `json:"service-url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Opsgenie(serviceUrl string) *ServiceDefinitionV2Opsgenie
NewServiceDefinitionV2Opsgenie instantiates a new ServiceDefinitionV2Opsgenie object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2OpsgenieWithDefaults() *ServiceDefinitionV2Opsgenie
NewServiceDefinitionV2OpsgenieWithDefaults instantiates a new ServiceDefinitionV2Opsgenie object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Opsgenie) GetRegion() ServiceDefinitionV2OpsgenieRegion
GetRegion returns the Region field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Opsgenie) GetRegionOk() (*ServiceDefinitionV2OpsgenieRegion, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Opsgenie) GetServiceUrl() string
GetServiceUrl returns the ServiceUrl field value.
func (o *ServiceDefinitionV2Opsgenie) GetServiceUrlOk() (*string, bool)
GetServiceUrlOk returns a tuple with the ServiceUrl field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Opsgenie) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o ServiceDefinitionV2Opsgenie) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Opsgenie) SetRegion(v ServiceDefinitionV2OpsgenieRegion)
SetRegion gets a reference to the given ServiceDefinitionV2OpsgenieRegion and assigns it to the Region field.
func (o *ServiceDefinitionV2Opsgenie) SetServiceUrl(v string)
SetServiceUrl sets field value.
func (o *ServiceDefinitionV2Opsgenie) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2OpsgenieRegion Opsgenie instance region.
type ServiceDefinitionV2OpsgenieRegion string
List of ServiceDefinitionV2OpsgenieRegion.
const (
SERVICEDEFINITIONV2OPSGENIEREGION_US ServiceDefinitionV2OpsgenieRegion = "US"
SERVICEDEFINITIONV2OPSGENIEREGION_EU ServiceDefinitionV2OpsgenieRegion = "EU"
)
func NewServiceDefinitionV2OpsgenieRegionFromValue(v string) (*ServiceDefinitionV2OpsgenieRegion, error)
NewServiceDefinitionV2OpsgenieRegionFromValue returns a pointer to a valid ServiceDefinitionV2OpsgenieRegion for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2OpsgenieRegion) GetAllowedValues() []ServiceDefinitionV2OpsgenieRegion
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2OpsgenieRegion) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2OpsgenieRegion) Ptr() *ServiceDefinitionV2OpsgenieRegion
Ptr returns reference to ServiceDefinitionV2OpsgenieRegion value.
func (v *ServiceDefinitionV2OpsgenieRegion) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Repo Service code repositories.
type ServiceDefinitionV2Repo struct {
// Repository name.
Name string `json:"name"`
// Repository provider.
Provider *string `json:"provider,omitempty"`
// Repository URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Repo(name string, url string) *ServiceDefinitionV2Repo
NewServiceDefinitionV2Repo instantiates a new ServiceDefinitionV2Repo object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2RepoWithDefaults() *ServiceDefinitionV2Repo
NewServiceDefinitionV2RepoWithDefaults instantiates a new ServiceDefinitionV2Repo object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Repo) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV2Repo) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Repo) GetProvider() string
GetProvider returns the Provider field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Repo) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Repo) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV2Repo) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Repo) HasProvider() bool
HasProvider returns a boolean if a field has been set.
func (o ServiceDefinitionV2Repo) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Repo) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV2Repo) SetProvider(v string)
SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *ServiceDefinitionV2Repo) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV2Repo) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Slack Service owner's Slack channel.
type ServiceDefinitionV2Slack struct {
// Slack Channel.
Contact string `json:"contact"`
// Contact Slack.
Name *string `json:"name,omitempty"`
// Contact type.
Type ServiceDefinitionV2SlackType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Slack(contact string, typeVar ServiceDefinitionV2SlackType) *ServiceDefinitionV2Slack
NewServiceDefinitionV2Slack instantiates a new ServiceDefinitionV2Slack object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2SlackWithDefaults() *ServiceDefinitionV2Slack
NewServiceDefinitionV2SlackWithDefaults instantiates a new ServiceDefinitionV2Slack object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Slack) GetContact() string
GetContact returns the Contact field value.
func (o *ServiceDefinitionV2Slack) GetContactOk() (*string, bool)
GetContactOk returns a tuple with the Contact field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Slack) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Slack) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Slack) GetType() ServiceDefinitionV2SlackType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Slack) GetTypeOk() (*ServiceDefinitionV2SlackType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Slack) HasName() bool
HasName returns a boolean if a field has been set.
func (o ServiceDefinitionV2Slack) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Slack) SetContact(v string)
SetContact sets field value.
func (o *ServiceDefinitionV2Slack) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceDefinitionV2Slack) SetType(v ServiceDefinitionV2SlackType)
SetType sets field value.
func (o *ServiceDefinitionV2Slack) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2SlackType Contact type.
type ServiceDefinitionV2SlackType string
List of ServiceDefinitionV2SlackType.
const (
SERVICEDEFINITIONV2SLACKTYPE_SLACK ServiceDefinitionV2SlackType = "slack"
)
func NewServiceDefinitionV2SlackTypeFromValue(v string) (*ServiceDefinitionV2SlackType, error)
NewServiceDefinitionV2SlackTypeFromValue returns a pointer to a valid ServiceDefinitionV2SlackType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2SlackType) GetAllowedValues() []ServiceDefinitionV2SlackType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2SlackType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2SlackType) Ptr() *ServiceDefinitionV2SlackType
Ptr returns reference to ServiceDefinitionV2SlackType value.
func (v *ServiceDefinitionV2SlackType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Version Schema version being used.
type ServiceDefinitionV2Version string
List of ServiceDefinitionV2Version.
const (
SERVICEDEFINITIONV2VERSION_V2 ServiceDefinitionV2Version = "v2"
)
func NewServiceDefinitionV2VersionFromValue(v string) (*ServiceDefinitionV2Version, error)
NewServiceDefinitionV2VersionFromValue returns a pointer to a valid ServiceDefinitionV2Version for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2Version) GetAllowedValues() []ServiceDefinitionV2Version
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2Version) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2Version) Ptr() *ServiceDefinitionV2Version
Ptr returns reference to ServiceDefinitionV2Version value.
func (v *ServiceDefinitionV2Version) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionsCreateRequest - Create service definitions request.
type ServiceDefinitionsCreateRequest struct {
ServiceDefinitionV2Dot1 *ServiceDefinitionV2Dot1
ServiceDefinitionV2 *ServiceDefinitionV2
ServiceDefinitionRaw *string
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func ServiceDefinitionRawAsServiceDefinitionsCreateRequest(v *string) ServiceDefinitionsCreateRequest
ServiceDefinitionRawAsServiceDefinitionsCreateRequest is a convenience function that returns string wrapped in ServiceDefinitionsCreateRequest.
func ServiceDefinitionV2AsServiceDefinitionsCreateRequest(v *ServiceDefinitionV2) ServiceDefinitionsCreateRequest
ServiceDefinitionV2AsServiceDefinitionsCreateRequest is a convenience function that returns ServiceDefinitionV2 wrapped in ServiceDefinitionsCreateRequest.
func ServiceDefinitionV2Dot1AsServiceDefinitionsCreateRequest(v *ServiceDefinitionV2Dot1) ServiceDefinitionsCreateRequest
ServiceDefinitionV2Dot1AsServiceDefinitionsCreateRequest is a convenience function that returns ServiceDefinitionV2Dot1 wrapped in ServiceDefinitionsCreateRequest.
func (obj *ServiceDefinitionsCreateRequest) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ServiceDefinitionsCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ServiceDefinitionsCreateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ServiceDefinitionsListResponse Create service definitions response.
type ServiceDefinitionsListResponse struct {
// Data representing service definitions.
Data []ServiceDefinitionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionsListResponse() *ServiceDefinitionsListResponse
NewServiceDefinitionsListResponse instantiates a new ServiceDefinitionsListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionsListResponseWithDefaults() *ServiceDefinitionsListResponse
NewServiceDefinitionsListResponseWithDefaults instantiates a new ServiceDefinitionsListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionsListResponse) GetData() []ServiceDefinitionData
GetData returns the Data field value if set, zero value otherwise.
func (o *ServiceDefinitionsListResponse) GetDataOk() (*[]ServiceDefinitionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionsListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ServiceDefinitionsListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionsListResponse) SetData(v []ServiceDefinitionData)
SetData gets a reference to the given []ServiceDefinitionData and assigns it to the Data field.
func (o *ServiceDefinitionsListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SlackIntegrationMetadata Incident integration metadata for the Slack integration.
type SlackIntegrationMetadata struct {
// Array of Slack channels in this integration metadata.
Channels []SlackIntegrationMetadataChannelItem `json:"channels"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSlackIntegrationMetadata(channels []SlackIntegrationMetadataChannelItem) *SlackIntegrationMetadata
NewSlackIntegrationMetadata instantiates a new SlackIntegrationMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSlackIntegrationMetadataWithDefaults() *SlackIntegrationMetadata
NewSlackIntegrationMetadataWithDefaults instantiates a new SlackIntegrationMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SlackIntegrationMetadata) GetChannels() []SlackIntegrationMetadataChannelItem
GetChannels returns the Channels field value.
func (o *SlackIntegrationMetadata) GetChannelsOk() (*[]SlackIntegrationMetadataChannelItem, bool)
GetChannelsOk returns a tuple with the Channels field value and a boolean to check if the value has been set.
func (o SlackIntegrationMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SlackIntegrationMetadata) SetChannels(v []SlackIntegrationMetadataChannelItem)
SetChannels sets field value.
func (o *SlackIntegrationMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SlackIntegrationMetadataChannelItem Item in the Slack integration metadata channel array.
type SlackIntegrationMetadataChannelItem struct {
// Slack channel ID.
ChannelId string `json:"channel_id"`
// Name of the Slack channel.
ChannelName string `json:"channel_name"`
// URL redirecting to the Slack channel.
RedirectUrl string `json:"redirect_url"`
// Slack team ID.
TeamId *string `json:"team_id,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSlackIntegrationMetadataChannelItem(channelId string, channelName string, redirectUrl string) *SlackIntegrationMetadataChannelItem
NewSlackIntegrationMetadataChannelItem instantiates a new SlackIntegrationMetadataChannelItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSlackIntegrationMetadataChannelItemWithDefaults() *SlackIntegrationMetadataChannelItem
NewSlackIntegrationMetadataChannelItemWithDefaults instantiates a new SlackIntegrationMetadataChannelItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SlackIntegrationMetadataChannelItem) GetChannelId() string
GetChannelId returns the ChannelId field value.
func (o *SlackIntegrationMetadataChannelItem) GetChannelIdOk() (*string, bool)
GetChannelIdOk returns a tuple with the ChannelId field value and a boolean to check if the value has been set.
func (o *SlackIntegrationMetadataChannelItem) GetChannelName() string
GetChannelName returns the ChannelName field value.
func (o *SlackIntegrationMetadataChannelItem) GetChannelNameOk() (*string, bool)
GetChannelNameOk returns a tuple with the ChannelName field value and a boolean to check if the value has been set.
func (o *SlackIntegrationMetadataChannelItem) GetRedirectUrl() string
GetRedirectUrl returns the RedirectUrl field value.
func (o *SlackIntegrationMetadataChannelItem) GetRedirectUrlOk() (*string, bool)
GetRedirectUrlOk returns a tuple with the RedirectUrl field value and a boolean to check if the value has been set.
func (o *SlackIntegrationMetadataChannelItem) GetTeamId() string
GetTeamId returns the TeamId field value if set, zero value otherwise.
func (o *SlackIntegrationMetadataChannelItem) GetTeamIdOk() (*string, bool)
GetTeamIdOk returns a tuple with the TeamId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SlackIntegrationMetadataChannelItem) HasTeamId() bool
HasTeamId returns a boolean if a field has been set.
func (o SlackIntegrationMetadataChannelItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SlackIntegrationMetadataChannelItem) SetChannelId(v string)
SetChannelId sets field value.
func (o *SlackIntegrationMetadataChannelItem) SetChannelName(v string)
SetChannelName sets field value.
func (o *SlackIntegrationMetadataChannelItem) SetRedirectUrl(v string)
SetRedirectUrl sets field value.
func (o *SlackIntegrationMetadataChannelItem) SetTeamId(v string)
SetTeamId gets a reference to the given string and assigns it to the TeamId field.
func (o *SlackIntegrationMetadataChannelItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Span Object description of a spans after being processed and stored by Datadog.
type Span struct {
// JSON object containing all span attributes and their associated values.
Attributes *SpansAttributes `json:"attributes,omitempty"`
// Unique ID of the Span.
Id *string `json:"id,omitempty"`
// Type of the span.
Type *SpansType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpan() *Span
NewSpan instantiates a new Span object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpanWithDefaults() *Span
NewSpanWithDefaults instantiates a new Span object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Span) GetAttributes() SpansAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Span) GetAttributesOk() (*SpansAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Span) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Span) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Span) GetType() SpansType
GetType returns the Type field value if set, zero value otherwise.
func (o *Span) GetTypeOk() (*SpansType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Span) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Span) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Span) HasType() bool
HasType returns a boolean if a field has been set.
func (o Span) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Span) SetAttributes(v SpansAttributes)
SetAttributes gets a reference to the given SpansAttributes and assigns it to the Attributes field.
func (o *Span) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Span) SetType(v SpansType)
SetType gets a reference to the given SpansType and assigns it to the Type field.
func (o *Span) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateBucket Spans aggregate.
type SpansAggregateBucket struct {
// A bucket values.
Attributes *SpansAggregateBucketAttributes `json:"attributes,omitempty"`
// ID of the spans aggregate.
Id *string `json:"id,omitempty"`
// The spans aggregate bucket type.
Type *SpansAggregateBucketType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateBucket() *SpansAggregateBucket
NewSpansAggregateBucket instantiates a new SpansAggregateBucket object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateBucketWithDefaults() *SpansAggregateBucket
NewSpansAggregateBucketWithDefaults instantiates a new SpansAggregateBucket object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateBucket) GetAttributes() SpansAggregateBucketAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SpansAggregateBucket) GetAttributesOk() (*SpansAggregateBucketAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateBucket) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SpansAggregateBucket) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateBucket) GetType() SpansAggregateBucketType
GetType returns the Type field value if set, zero value otherwise.
func (o *SpansAggregateBucket) GetTypeOk() (*SpansAggregateBucketType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateBucket) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SpansAggregateBucket) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SpansAggregateBucket) HasType() bool
HasType returns a boolean if a field has been set.
func (o SpansAggregateBucket) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateBucket) SetAttributes(v SpansAggregateBucketAttributes)
SetAttributes gets a reference to the given SpansAggregateBucketAttributes and assigns it to the Attributes field.
func (o *SpansAggregateBucket) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SpansAggregateBucket) SetType(v SpansAggregateBucketType)
SetType gets a reference to the given SpansAggregateBucketType and assigns it to the Type field.
func (o *SpansAggregateBucket) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateBucketAttributes A bucket values.
type SpansAggregateBucketAttributes struct {
// The key, value pairs for each group by.
By map[string]interface{} `json:"by,omitempty"`
// The compute data.
Compute interface{} `json:"compute,omitempty"`
// A map of the metric name -> value for regular compute or list of values for a timeseries.
Computes map[string]SpansAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateBucketAttributes() *SpansAggregateBucketAttributes
NewSpansAggregateBucketAttributes instantiates a new SpansAggregateBucketAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateBucketAttributesWithDefaults() *SpansAggregateBucketAttributes
NewSpansAggregateBucketAttributesWithDefaults instantiates a new SpansAggregateBucketAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateBucketAttributes) GetBy() map[string]interface{}
GetBy returns the By field value if set, zero value otherwise.
func (o *SpansAggregateBucketAttributes) GetByOk() (*map[string]interface{}, bool)
GetByOk returns a tuple with the By field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateBucketAttributes) GetCompute() interface{}
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *SpansAggregateBucketAttributes) GetComputeOk() (*interface{}, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateBucketAttributes) GetComputes() map[string]SpansAggregateBucketValue
GetComputes returns the Computes field value if set, zero value otherwise.
func (o *SpansAggregateBucketAttributes) GetComputesOk() (*map[string]SpansAggregateBucketValue, bool)
GetComputesOk returns a tuple with the Computes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateBucketAttributes) HasBy() bool
HasBy returns a boolean if a field has been set.
func (o *SpansAggregateBucketAttributes) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *SpansAggregateBucketAttributes) HasComputes() bool
HasComputes returns a boolean if a field has been set.
func (o SpansAggregateBucketAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateBucketAttributes) SetBy(v map[string]interface{})
SetBy gets a reference to the given map[string]interface{} and assigns it to the By field.
func (o *SpansAggregateBucketAttributes) SetCompute(v interface{})
SetCompute gets a reference to the given interface{} and assigns it to the Compute field.
func (o *SpansAggregateBucketAttributes) SetComputes(v map[string]SpansAggregateBucketValue)
SetComputes gets a reference to the given map[string]SpansAggregateBucketValue and assigns it to the Computes field.
func (o *SpansAggregateBucketAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateBucketType The spans aggregate bucket type.
type SpansAggregateBucketType string
List of SpansAggregateBucketType.
const (
SPANSAGGREGATEBUCKETTYPE_BUCKET SpansAggregateBucketType = "bucket"
)
func NewSpansAggregateBucketTypeFromValue(v string) (*SpansAggregateBucketType, error)
NewSpansAggregateBucketTypeFromValue returns a pointer to a valid SpansAggregateBucketType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansAggregateBucketType) GetAllowedValues() []SpansAggregateBucketType
GetAllowedValues reeturns the list of possible values.
func (v SpansAggregateBucketType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansAggregateBucketType) Ptr() *SpansAggregateBucketType
Ptr returns reference to SpansAggregateBucketType value.
func (v *SpansAggregateBucketType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansAggregateBucketValue - A bucket value, can be either a timeseries or a single value.
type SpansAggregateBucketValue struct {
SpansAggregateBucketValueSingleString *string
SpansAggregateBucketValueSingleNumber *float64
SpansAggregateBucketValueTimeseries *SpansAggregateBucketValueTimeseries
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SpansAggregateBucketValueSingleNumberAsSpansAggregateBucketValue(v *float64) SpansAggregateBucketValue
SpansAggregateBucketValueSingleNumberAsSpansAggregateBucketValue is a convenience function that returns float64 wrapped in SpansAggregateBucketValue.
func SpansAggregateBucketValueSingleStringAsSpansAggregateBucketValue(v *string) SpansAggregateBucketValue
SpansAggregateBucketValueSingleStringAsSpansAggregateBucketValue is a convenience function that returns string wrapped in SpansAggregateBucketValue.
func SpansAggregateBucketValueTimeseriesAsSpansAggregateBucketValue(v *SpansAggregateBucketValueTimeseries) SpansAggregateBucketValue
SpansAggregateBucketValueTimeseriesAsSpansAggregateBucketValue is a convenience function that returns SpansAggregateBucketValueTimeseries wrapped in SpansAggregateBucketValue.
func (obj *SpansAggregateBucketValue) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SpansAggregateBucketValue) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SpansAggregateBucketValue) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SpansAggregateBucketValueTimeseries A timeseries array.
type SpansAggregateBucketValueTimeseries struct {
Items []SpansAggregateBucketValueTimeseriesPoint
// UnparsedObject contains the raw value of the array if there was an error when deserializing into the struct
UnparsedObject []interface{} `json:"-"`
}
func NewSpansAggregateBucketValueTimeseries() *SpansAggregateBucketValueTimeseries
NewSpansAggregateBucketValueTimeseries instantiates a new SpansAggregateBucketValueTimeseries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateBucketValueTimeseriesWithDefaults() *SpansAggregateBucketValueTimeseries
NewSpansAggregateBucketValueTimeseriesWithDefaults instantiates a new SpansAggregateBucketValueTimeseries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o SpansAggregateBucketValueTimeseries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateBucketValueTimeseries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateBucketValueTimeseriesPoint A timeseries point.
type SpansAggregateBucketValueTimeseriesPoint struct {
// The time value for this point.
Time *string `json:"time,omitempty"`
// The value for this point.
Value *float64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateBucketValueTimeseriesPoint() *SpansAggregateBucketValueTimeseriesPoint
NewSpansAggregateBucketValueTimeseriesPoint instantiates a new SpansAggregateBucketValueTimeseriesPoint object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateBucketValueTimeseriesPointWithDefaults() *SpansAggregateBucketValueTimeseriesPoint
NewSpansAggregateBucketValueTimeseriesPointWithDefaults instantiates a new SpansAggregateBucketValueTimeseriesPoint object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateBucketValueTimeseriesPoint) GetTime() string
GetTime returns the Time field value if set, zero value otherwise.
func (o *SpansAggregateBucketValueTimeseriesPoint) GetTimeOk() (*string, bool)
GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateBucketValueTimeseriesPoint) GetValue() float64
GetValue returns the Value field value if set, zero value otherwise.
func (o *SpansAggregateBucketValueTimeseriesPoint) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateBucketValueTimeseriesPoint) HasTime() bool
HasTime returns a boolean if a field has been set.
func (o *SpansAggregateBucketValueTimeseriesPoint) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o SpansAggregateBucketValueTimeseriesPoint) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateBucketValueTimeseriesPoint) SetTime(v string)
SetTime gets a reference to the given string and assigns it to the Time field.
func (o *SpansAggregateBucketValueTimeseriesPoint) SetValue(v float64)
SetValue gets a reference to the given float64 and assigns it to the Value field.
func (o *SpansAggregateBucketValueTimeseriesPoint) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateData The object containing the query content.
type SpansAggregateData struct {
// The object containing all the query parameters.
Attributes *SpansAggregateRequestAttributes `json:"attributes,omitempty"`
// The type of resource. The value should always be aggregate_request.
Type *SpansAggregateRequestType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateData() *SpansAggregateData
NewSpansAggregateData instantiates a new SpansAggregateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateDataWithDefaults() *SpansAggregateData
NewSpansAggregateDataWithDefaults instantiates a new SpansAggregateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateData) GetAttributes() SpansAggregateRequestAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SpansAggregateData) GetAttributesOk() (*SpansAggregateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateData) GetType() SpansAggregateRequestType
GetType returns the Type field value if set, zero value otherwise.
func (o *SpansAggregateData) GetTypeOk() (*SpansAggregateRequestType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SpansAggregateData) HasType() bool
HasType returns a boolean if a field has been set.
func (o SpansAggregateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateData) SetAttributes(v SpansAggregateRequestAttributes)
SetAttributes gets a reference to the given SpansAggregateRequestAttributes and assigns it to the Attributes field.
func (o *SpansAggregateData) SetType(v SpansAggregateRequestType)
SetType gets a reference to the given SpansAggregateRequestType and assigns it to the Type field.
func (o *SpansAggregateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateRequest The object sent with the request to retrieve a list of aggregated spans from your organization.
type SpansAggregateRequest struct {
// The object containing the query content.
Data *SpansAggregateData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateRequest() *SpansAggregateRequest
NewSpansAggregateRequest instantiates a new SpansAggregateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateRequestWithDefaults() *SpansAggregateRequest
NewSpansAggregateRequestWithDefaults instantiates a new SpansAggregateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateRequest) GetData() SpansAggregateData
GetData returns the Data field value if set, zero value otherwise.
func (o *SpansAggregateRequest) GetDataOk() (*SpansAggregateData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateRequest) HasData() bool
HasData returns a boolean if a field has been set.
func (o SpansAggregateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateRequest) SetData(v SpansAggregateData)
SetData gets a reference to the given SpansAggregateData and assigns it to the Data field.
func (o *SpansAggregateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateRequestAttributes The object containing all the query parameters.
type SpansAggregateRequestAttributes struct {
// The list of metrics or timeseries to compute for the retrieved buckets.
Compute []SpansCompute `json:"compute,omitempty"`
// The search and filter query settings.
Filter *SpansQueryFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []SpansGroupBy `json:"group_by,omitempty"`
// Global query options that are used during the query.
// Note: You should only supply timezone or time offset but not both otherwise the query will fail.
Options *SpansQueryOptions `json:"options,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateRequestAttributes() *SpansAggregateRequestAttributes
NewSpansAggregateRequestAttributes instantiates a new SpansAggregateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateRequestAttributesWithDefaults() *SpansAggregateRequestAttributes
NewSpansAggregateRequestAttributesWithDefaults instantiates a new SpansAggregateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateRequestAttributes) GetCompute() []SpansCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *SpansAggregateRequestAttributes) GetComputeOk() (*[]SpansCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateRequestAttributes) GetFilter() SpansQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *SpansAggregateRequestAttributes) GetFilterOk() (*SpansQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateRequestAttributes) GetGroupBy() []SpansGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *SpansAggregateRequestAttributes) GetGroupByOk() (*[]SpansGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateRequestAttributes) GetOptions() SpansQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *SpansAggregateRequestAttributes) GetOptionsOk() (*SpansQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateRequestAttributes) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *SpansAggregateRequestAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *SpansAggregateRequestAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *SpansAggregateRequestAttributes) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o SpansAggregateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateRequestAttributes) SetCompute(v []SpansCompute)
SetCompute gets a reference to the given []SpansCompute and assigns it to the Compute field.
func (o *SpansAggregateRequestAttributes) SetFilter(v SpansQueryFilter)
SetFilter gets a reference to the given SpansQueryFilter and assigns it to the Filter field.
func (o *SpansAggregateRequestAttributes) SetGroupBy(v []SpansGroupBy)
SetGroupBy gets a reference to the given []SpansGroupBy and assigns it to the GroupBy field.
func (o *SpansAggregateRequestAttributes) SetOptions(v SpansQueryOptions)
SetOptions gets a reference to the given SpansQueryOptions and assigns it to the Options field.
func (o *SpansAggregateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateRequestType The type of resource. The value should always be aggregate_request.
type SpansAggregateRequestType string
List of SpansAggregateRequestType.
const (
SPANSAGGREGATEREQUESTTYPE_AGGREGATE_REQUEST SpansAggregateRequestType = "aggregate_request"
)
func NewSpansAggregateRequestTypeFromValue(v string) (*SpansAggregateRequestType, error)
NewSpansAggregateRequestTypeFromValue returns a pointer to a valid SpansAggregateRequestType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansAggregateRequestType) GetAllowedValues() []SpansAggregateRequestType
GetAllowedValues reeturns the list of possible values.
func (v SpansAggregateRequestType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansAggregateRequestType) Ptr() *SpansAggregateRequestType
Ptr returns reference to SpansAggregateRequestType value.
func (v *SpansAggregateRequestType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansAggregateResponse The response object for the spans aggregate API endpoint.
type SpansAggregateResponse struct {
// The list of matching buckets, one item per bucket.
Data []SpansAggregateBucket `json:"data,omitempty"`
// The metadata associated with a request.
Meta *SpansAggregateResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateResponse() *SpansAggregateResponse
NewSpansAggregateResponse instantiates a new SpansAggregateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateResponseWithDefaults() *SpansAggregateResponse
NewSpansAggregateResponseWithDefaults instantiates a new SpansAggregateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateResponse) GetData() []SpansAggregateBucket
GetData returns the Data field value if set, zero value otherwise.
func (o *SpansAggregateResponse) GetDataOk() (*[]SpansAggregateBucket, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateResponse) GetMeta() SpansAggregateResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SpansAggregateResponse) GetMetaOk() (*SpansAggregateResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SpansAggregateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SpansAggregateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateResponse) SetData(v []SpansAggregateBucket)
SetData gets a reference to the given []SpansAggregateBucket and assigns it to the Data field.
func (o *SpansAggregateResponse) SetMeta(v SpansAggregateResponseMetadata)
SetMeta gets a reference to the given SpansAggregateResponseMetadata and assigns it to the Meta field.
func (o *SpansAggregateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateResponseMetadata The metadata associated with a request.
type SpansAggregateResponseMetadata struct {
// The time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The status of the response.
Status *SpansAggregateResponseStatus `json:"status,omitempty"`
// A list of warnings (non fatal errors) encountered, partial results might be returned if
// warnings are present in the response.
Warnings []SpansWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateResponseMetadata() *SpansAggregateResponseMetadata
NewSpansAggregateResponseMetadata instantiates a new SpansAggregateResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateResponseMetadataWithDefaults() *SpansAggregateResponseMetadata
NewSpansAggregateResponseMetadataWithDefaults instantiates a new SpansAggregateResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *SpansAggregateResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *SpansAggregateResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateResponseMetadata) GetStatus() SpansAggregateResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *SpansAggregateResponseMetadata) GetStatusOk() (*SpansAggregateResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateResponseMetadata) GetWarnings() []SpansWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *SpansAggregateResponseMetadata) GetWarningsOk() (*[]SpansWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *SpansAggregateResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *SpansAggregateResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *SpansAggregateResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o SpansAggregateResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *SpansAggregateResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *SpansAggregateResponseMetadata) SetStatus(v SpansAggregateResponseStatus)
SetStatus gets a reference to the given SpansAggregateResponseStatus and assigns it to the Status field.
func (o *SpansAggregateResponseMetadata) SetWarnings(v []SpansWarning)
SetWarnings gets a reference to the given []SpansWarning and assigns it to the Warnings field.
func (o *SpansAggregateResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateResponseStatus The status of the response.
type SpansAggregateResponseStatus string
List of SpansAggregateResponseStatus.
const (
SPANSAGGREGATERESPONSESTATUS_DONE SpansAggregateResponseStatus = "done"
SPANSAGGREGATERESPONSESTATUS_TIMEOUT SpansAggregateResponseStatus = "timeout"
)
func NewSpansAggregateResponseStatusFromValue(v string) (*SpansAggregateResponseStatus, error)
NewSpansAggregateResponseStatusFromValue returns a pointer to a valid SpansAggregateResponseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansAggregateResponseStatus) GetAllowedValues() []SpansAggregateResponseStatus
GetAllowedValues reeturns the list of possible values.
func (v SpansAggregateResponseStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansAggregateResponseStatus) Ptr() *SpansAggregateResponseStatus
Ptr returns reference to SpansAggregateResponseStatus value.
func (v *SpansAggregateResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansAggregateSort A sort rule.
type SpansAggregateSort struct {
// An aggregation function.
Aggregation *SpansAggregationFunction `json:"aggregation,omitempty"`
// The metric to sort by (only used for `type=measure`).
Metric *string `json:"metric,omitempty"`
// The order to use, ascending or descending.
Order *SpansSortOrder `json:"order,omitempty"`
// The type of sorting algorithm.
Type *SpansAggregateSortType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAggregateSort() *SpansAggregateSort
NewSpansAggregateSort instantiates a new SpansAggregateSort object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAggregateSortWithDefaults() *SpansAggregateSort
NewSpansAggregateSortWithDefaults instantiates a new SpansAggregateSort object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAggregateSort) GetAggregation() SpansAggregationFunction
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *SpansAggregateSort) GetAggregationOk() (*SpansAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateSort) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *SpansAggregateSort) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateSort) GetOrder() SpansSortOrder
GetOrder returns the Order field value if set, zero value otherwise.
func (o *SpansAggregateSort) GetOrderOk() (*SpansSortOrder, bool)
GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateSort) GetType() SpansAggregateSortType
GetType returns the Type field value if set, zero value otherwise.
func (o *SpansAggregateSort) GetTypeOk() (*SpansAggregateSortType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAggregateSort) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *SpansAggregateSort) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *SpansAggregateSort) HasOrder() bool
HasOrder returns a boolean if a field has been set.
func (o *SpansAggregateSort) HasType() bool
HasType returns a boolean if a field has been set.
func (o SpansAggregateSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAggregateSort) SetAggregation(v SpansAggregationFunction)
SetAggregation gets a reference to the given SpansAggregationFunction and assigns it to the Aggregation field.
func (o *SpansAggregateSort) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *SpansAggregateSort) SetOrder(v SpansSortOrder)
SetOrder gets a reference to the given SpansSortOrder and assigns it to the Order field.
func (o *SpansAggregateSort) SetType(v SpansAggregateSortType)
SetType gets a reference to the given SpansAggregateSortType and assigns it to the Type field.
func (o *SpansAggregateSort) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansAggregateSortType The type of sorting algorithm.
type SpansAggregateSortType string
List of SpansAggregateSortType.
const (
SPANSAGGREGATESORTTYPE_ALPHABETICAL SpansAggregateSortType = "alphabetical"
SPANSAGGREGATESORTTYPE_MEASURE SpansAggregateSortType = "measure"
)
func NewSpansAggregateSortTypeFromValue(v string) (*SpansAggregateSortType, error)
NewSpansAggregateSortTypeFromValue returns a pointer to a valid SpansAggregateSortType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansAggregateSortType) GetAllowedValues() []SpansAggregateSortType
GetAllowedValues reeturns the list of possible values.
func (v SpansAggregateSortType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansAggregateSortType) Ptr() *SpansAggregateSortType
Ptr returns reference to SpansAggregateSortType value.
func (v *SpansAggregateSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansAggregationFunction An aggregation function.
type SpansAggregationFunction string
List of SpansAggregationFunction.
const (
SPANSAGGREGATIONFUNCTION_COUNT SpansAggregationFunction = "count"
SPANSAGGREGATIONFUNCTION_CARDINALITY SpansAggregationFunction = "cardinality"
SPANSAGGREGATIONFUNCTION_PERCENTILE_75 SpansAggregationFunction = "pc75"
SPANSAGGREGATIONFUNCTION_PERCENTILE_90 SpansAggregationFunction = "pc90"
SPANSAGGREGATIONFUNCTION_PERCENTILE_95 SpansAggregationFunction = "pc95"
SPANSAGGREGATIONFUNCTION_PERCENTILE_98 SpansAggregationFunction = "pc98"
SPANSAGGREGATIONFUNCTION_PERCENTILE_99 SpansAggregationFunction = "pc99"
SPANSAGGREGATIONFUNCTION_SUM SpansAggregationFunction = "sum"
SPANSAGGREGATIONFUNCTION_MIN SpansAggregationFunction = "min"
SPANSAGGREGATIONFUNCTION_MAX SpansAggregationFunction = "max"
SPANSAGGREGATIONFUNCTION_AVG SpansAggregationFunction = "avg"
SPANSAGGREGATIONFUNCTION_MEDIAN SpansAggregationFunction = "median"
)
func NewSpansAggregationFunctionFromValue(v string) (*SpansAggregationFunction, error)
NewSpansAggregationFunctionFromValue returns a pointer to a valid SpansAggregationFunction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansAggregationFunction) GetAllowedValues() []SpansAggregationFunction
GetAllowedValues reeturns the list of possible values.
func (v SpansAggregationFunction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansAggregationFunction) Ptr() *SpansAggregationFunction
Ptr returns reference to SpansAggregationFunction value.
func (v *SpansAggregationFunction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansApi service type
type SpansApi datadog.Service
func NewSpansApi(client *datadog.APIClient) *SpansApi
NewSpansApi Returns NewSpansApi.
func (a *SpansApi) AggregateSpans(ctx _context.Context, body SpansAggregateRequest) (SpansAggregateResponse, *_nethttp.Response, error)
AggregateSpans Aggregate spans. The API endpoint to aggregate spans into buckets and compute metrics and timeseries. This endpoint is rate limited to `300` requests per hour.
func (a *SpansApi) ListSpans(ctx _context.Context, body SpansListRequest) (SpansListResponse, *_nethttp.Response, error)
ListSpans Search spans. List endpoint returns spans that match a span search query. [Results are paginated][1].
Use this endpoint to build complex spans filtering and search. This endpoint is rate limited to `300` requests per hour.
[1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api
func (a *SpansApi) ListSpansGet(ctx _context.Context, o ...ListSpansGetOptionalParameters) (SpansListResponse, *_nethttp.Response, error)
ListSpansGet Get a list of spans. List endpoint returns spans that match a span search query. [Results are paginated][1].
Use this endpoint to see your latest spans. This endpoint is rate limited to `300` requests per hour.
[1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api
func (a *SpansApi) ListSpansGetWithPagination(ctx _context.Context, o ...ListSpansGetOptionalParameters) (<-chan datadog.PaginationResult[Span], func())
ListSpansGetWithPagination provides a paginated version of ListSpansGet returning a channel with all items.
func (a *SpansApi) ListSpansWithPagination(ctx _context.Context, body SpansListRequest) (<-chan datadog.PaginationResult[Span], func())
ListSpansWithPagination provides a paginated version of ListSpans returning a channel with all items.
SpansAttributes JSON object containing all span attributes and their associated values.
type SpansAttributes struct {
// JSON object of attributes from your span.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// JSON object of custom spans data.
Custom map[string]interface{} `json:"custom,omitempty"`
// End timestamp of your span.
EndTimestamp *time.Time `json:"end_timestamp,omitempty"`
// Name of the environment from where the spans are being sent.
Env *string `json:"env,omitempty"`
// Name of the machine from where the spans are being sent.
Host *string `json:"host,omitempty"`
// The reason why the span was ingested.
IngestionReason *string `json:"ingestion_reason,omitempty"`
// Id of the span that's parent of this span.
ParentId *string `json:"parent_id,omitempty"`
// Unique identifier of the resource.
ResourceHash *string `json:"resource_hash,omitempty"`
// The name of the resource.
ResourceName *string `json:"resource_name,omitempty"`
// The reason why the span was indexed.
RetainedBy *string `json:"retained_by,omitempty"`
// The name of the application or service generating the span events.
// It is used to switch from APM to Logs, so make sure you define the same
// value when you use both products.
Service *string `json:"service,omitempty"`
// Whether or not the span was collected as a stand-alone span. Always associated to "single_span" ingestion_reason if true.
SingleSpan *bool `json:"single_span,omitempty"`
// Id of the span.
SpanId *string `json:"span_id,omitempty"`
// Start timestamp of your span.
StartTimestamp *time.Time `json:"start_timestamp,omitempty"`
// Array of tags associated with your span.
Tags []string `json:"tags,omitempty"`
// Id of the trace to which the span belongs.
TraceId *string `json:"trace_id,omitempty"`
// The type of the span.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansAttributes() *SpansAttributes
NewSpansAttributes instantiates a new SpansAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansAttributesWithDefaults() *SpansAttributes
NewSpansAttributesWithDefaults instantiates a new SpansAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SpansAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetCustom() map[string]interface{}
GetCustom returns the Custom field value if set, zero value otherwise.
func (o *SpansAttributes) GetCustomOk() (*map[string]interface{}, bool)
GetCustomOk returns a tuple with the Custom field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetEndTimestamp() time.Time
GetEndTimestamp returns the EndTimestamp field value if set, zero value otherwise.
func (o *SpansAttributes) GetEndTimestampOk() (*time.Time, bool)
GetEndTimestampOk returns a tuple with the EndTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetEnv() string
GetEnv returns the Env field value if set, zero value otherwise.
func (o *SpansAttributes) GetEnvOk() (*string, bool)
GetEnvOk returns a tuple with the Env field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetHost() string
GetHost returns the Host field value if set, zero value otherwise.
func (o *SpansAttributes) GetHostOk() (*string, bool)
GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetIngestionReason() string
GetIngestionReason returns the IngestionReason field value if set, zero value otherwise.
func (o *SpansAttributes) GetIngestionReasonOk() (*string, bool)
GetIngestionReasonOk returns a tuple with the IngestionReason field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetParentId() string
GetParentId returns the ParentId field value if set, zero value otherwise.
func (o *SpansAttributes) GetParentIdOk() (*string, bool)
GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetResourceHash() string
GetResourceHash returns the ResourceHash field value if set, zero value otherwise.
func (o *SpansAttributes) GetResourceHashOk() (*string, bool)
GetResourceHashOk returns a tuple with the ResourceHash field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetResourceName() string
GetResourceName returns the ResourceName field value if set, zero value otherwise.
func (o *SpansAttributes) GetResourceNameOk() (*string, bool)
GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetRetainedBy() string
GetRetainedBy returns the RetainedBy field value if set, zero value otherwise.
func (o *SpansAttributes) GetRetainedByOk() (*string, bool)
GetRetainedByOk returns a tuple with the RetainedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *SpansAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetSingleSpan() bool
GetSingleSpan returns the SingleSpan field value if set, zero value otherwise.
func (o *SpansAttributes) GetSingleSpanOk() (*bool, bool)
GetSingleSpanOk returns a tuple with the SingleSpan field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetSpanId() string
GetSpanId returns the SpanId field value if set, zero value otherwise.
func (o *SpansAttributes) GetSpanIdOk() (*string, bool)
GetSpanIdOk returns a tuple with the SpanId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetStartTimestamp() time.Time
GetStartTimestamp returns the StartTimestamp field value if set, zero value otherwise.
func (o *SpansAttributes) GetStartTimestampOk() (*time.Time, bool)
GetStartTimestampOk returns a tuple with the StartTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SpansAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetTraceId() string
GetTraceId returns the TraceId field value if set, zero value otherwise.
func (o *SpansAttributes) GetTraceIdOk() (*string, bool)
GetTraceIdOk returns a tuple with the TraceId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *SpansAttributes) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SpansAttributes) HasCustom() bool
HasCustom returns a boolean if a field has been set.
func (o *SpansAttributes) HasEndTimestamp() bool
HasEndTimestamp returns a boolean if a field has been set.
func (o *SpansAttributes) HasEnv() bool
HasEnv returns a boolean if a field has been set.
func (o *SpansAttributes) HasHost() bool
HasHost returns a boolean if a field has been set.
func (o *SpansAttributes) HasIngestionReason() bool
HasIngestionReason returns a boolean if a field has been set.
func (o *SpansAttributes) HasParentId() bool
HasParentId returns a boolean if a field has been set.
func (o *SpansAttributes) HasResourceHash() bool
HasResourceHash returns a boolean if a field has been set.
func (o *SpansAttributes) HasResourceName() bool
HasResourceName returns a boolean if a field has been set.
func (o *SpansAttributes) HasRetainedBy() bool
HasRetainedBy returns a boolean if a field has been set.
func (o *SpansAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *SpansAttributes) HasSingleSpan() bool
HasSingleSpan returns a boolean if a field has been set.
func (o *SpansAttributes) HasSpanId() bool
HasSpanId returns a boolean if a field has been set.
func (o *SpansAttributes) HasStartTimestamp() bool
HasStartTimestamp returns a boolean if a field has been set.
func (o *SpansAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SpansAttributes) HasTraceId() bool
HasTraceId returns a boolean if a field has been set.
func (o *SpansAttributes) HasType() bool
HasType returns a boolean if a field has been set.
func (o SpansAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *SpansAttributes) SetCustom(v map[string]interface{})
SetCustom gets a reference to the given map[string]interface{} and assigns it to the Custom field.
func (o *SpansAttributes) SetEndTimestamp(v time.Time)
SetEndTimestamp gets a reference to the given time.Time and assigns it to the EndTimestamp field.
func (o *SpansAttributes) SetEnv(v string)
SetEnv gets a reference to the given string and assigns it to the Env field.
func (o *SpansAttributes) SetHost(v string)
SetHost gets a reference to the given string and assigns it to the Host field.
func (o *SpansAttributes) SetIngestionReason(v string)
SetIngestionReason gets a reference to the given string and assigns it to the IngestionReason field.
func (o *SpansAttributes) SetParentId(v string)
SetParentId gets a reference to the given string and assigns it to the ParentId field.
func (o *SpansAttributes) SetResourceHash(v string)
SetResourceHash gets a reference to the given string and assigns it to the ResourceHash field.
func (o *SpansAttributes) SetResourceName(v string)
SetResourceName gets a reference to the given string and assigns it to the ResourceName field.
func (o *SpansAttributes) SetRetainedBy(v string)
SetRetainedBy gets a reference to the given string and assigns it to the RetainedBy field.
func (o *SpansAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *SpansAttributes) SetSingleSpan(v bool)
SetSingleSpan gets a reference to the given bool and assigns it to the SingleSpan field.
func (o *SpansAttributes) SetSpanId(v string)
SetSpanId gets a reference to the given string and assigns it to the SpanId field.
func (o *SpansAttributes) SetStartTimestamp(v time.Time)
SetStartTimestamp gets a reference to the given time.Time and assigns it to the StartTimestamp field.
func (o *SpansAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SpansAttributes) SetTraceId(v string)
SetTraceId gets a reference to the given string and assigns it to the TraceId field.
func (o *SpansAttributes) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *SpansAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansCompute A compute rule to compute metrics or timeseries.
type SpansCompute struct {
// An aggregation function.
Aggregation SpansAggregationFunction `json:"aggregation"`
// The time buckets' size (only used for type=timeseries)
// Defaults to a resolution of 150 points.
Interval *string `json:"interval,omitempty"`
// The metric to use.
Metric *string `json:"metric,omitempty"`
// The type of compute.
Type *SpansComputeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansCompute(aggregation SpansAggregationFunction) *SpansCompute
NewSpansCompute instantiates a new SpansCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansComputeWithDefaults() *SpansCompute
NewSpansComputeWithDefaults instantiates a new SpansCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansCompute) GetAggregation() SpansAggregationFunction
GetAggregation returns the Aggregation field value.
func (o *SpansCompute) GetAggregationOk() (*SpansAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value and a boolean to check if the value has been set.
func (o *SpansCompute) GetInterval() string
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *SpansCompute) GetIntervalOk() (*string, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansCompute) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *SpansCompute) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansCompute) GetType() SpansComputeType
GetType returns the Type field value if set, zero value otherwise.
func (o *SpansCompute) GetTypeOk() (*SpansComputeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansCompute) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *SpansCompute) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *SpansCompute) HasType() bool
HasType returns a boolean if a field has been set.
func (o SpansCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansCompute) SetAggregation(v SpansAggregationFunction)
SetAggregation sets field value.
func (o *SpansCompute) SetInterval(v string)
SetInterval gets a reference to the given string and assigns it to the Interval field.
func (o *SpansCompute) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *SpansCompute) SetType(v SpansComputeType)
SetType gets a reference to the given SpansComputeType and assigns it to the Type field.
func (o *SpansCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansComputeType The type of compute.
type SpansComputeType string
List of SpansComputeType.
const (
SPANSCOMPUTETYPE_TIMESERIES SpansComputeType = "timeseries"
SPANSCOMPUTETYPE_TOTAL SpansComputeType = "total"
)
func NewSpansComputeTypeFromValue(v string) (*SpansComputeType, error)
NewSpansComputeTypeFromValue returns a pointer to a valid SpansComputeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansComputeType) GetAllowedValues() []SpansComputeType
GetAllowedValues reeturns the list of possible values.
func (v SpansComputeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansComputeType) Ptr() *SpansComputeType
Ptr returns reference to SpansComputeType value.
func (v *SpansComputeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansGroupBy A group by rule.
type SpansGroupBy struct {
// The name of the facet to use (required).
Facet string `json:"facet"`
// Used to perform a histogram computation (only for measure facets).
// Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
Histogram *SpansGroupByHistogram `json:"histogram,omitempty"`
// The maximum buckets to return for this group by.
Limit *int64 `json:"limit,omitempty"`
// The value to use for spans that don't have the facet used to group by.
Missing *SpansGroupByMissing `json:"missing,omitempty"`
// A sort rule.
Sort *SpansAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *SpansGroupByTotal `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansGroupBy(facet string) *SpansGroupBy
NewSpansGroupBy instantiates a new SpansGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansGroupByWithDefaults() *SpansGroupBy
NewSpansGroupByWithDefaults instantiates a new SpansGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansGroupBy) GetFacet() string
GetFacet returns the Facet field value.
func (o *SpansGroupBy) GetFacetOk() (*string, bool)
GetFacetOk returns a tuple with the Facet field value and a boolean to check if the value has been set.
func (o *SpansGroupBy) GetHistogram() SpansGroupByHistogram
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (o *SpansGroupBy) GetHistogramOk() (*SpansGroupByHistogram, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansGroupBy) GetLimit() int64
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *SpansGroupBy) GetLimitOk() (*int64, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansGroupBy) GetMissing() SpansGroupByMissing
GetMissing returns the Missing field value if set, zero value otherwise.
func (o *SpansGroupBy) GetMissingOk() (*SpansGroupByMissing, bool)
GetMissingOk returns a tuple with the Missing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansGroupBy) GetSort() SpansAggregateSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *SpansGroupBy) GetSortOk() (*SpansAggregateSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansGroupBy) GetTotal() SpansGroupByTotal
GetTotal returns the Total field value if set, zero value otherwise.
func (o *SpansGroupBy) GetTotalOk() (*SpansGroupByTotal, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansGroupBy) HasHistogram() bool
HasHistogram returns a boolean if a field has been set.
func (o *SpansGroupBy) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *SpansGroupBy) HasMissing() bool
HasMissing returns a boolean if a field has been set.
func (o *SpansGroupBy) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o *SpansGroupBy) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o SpansGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansGroupBy) SetFacet(v string)
SetFacet sets field value.
func (o *SpansGroupBy) SetHistogram(v SpansGroupByHistogram)
SetHistogram gets a reference to the given SpansGroupByHistogram and assigns it to the Histogram field.
func (o *SpansGroupBy) SetLimit(v int64)
SetLimit gets a reference to the given int64 and assigns it to the Limit field.
func (o *SpansGroupBy) SetMissing(v SpansGroupByMissing)
SetMissing gets a reference to the given SpansGroupByMissing and assigns it to the Missing field.
func (o *SpansGroupBy) SetSort(v SpansAggregateSort)
SetSort gets a reference to the given SpansAggregateSort and assigns it to the Sort field.
func (o *SpansGroupBy) SetTotal(v SpansGroupByTotal)
SetTotal gets a reference to the given SpansGroupByTotal and assigns it to the Total field.
func (o *SpansGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansGroupByHistogram Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
type SpansGroupByHistogram struct {
// The bin size of the histogram buckets.
Interval float64 `json:"interval"`
// The maximum value for the measure used in the histogram
// (values greater than this one are filtered out).
Max float64 `json:"max"`
// The minimum value for the measure used in the histogram
// (values smaller than this one are filtered out).
Min float64 `json:"min"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansGroupByHistogram(interval float64, max float64, min float64) *SpansGroupByHistogram
NewSpansGroupByHistogram instantiates a new SpansGroupByHistogram object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansGroupByHistogramWithDefaults() *SpansGroupByHistogram
NewSpansGroupByHistogramWithDefaults instantiates a new SpansGroupByHistogram object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansGroupByHistogram) GetInterval() float64
GetInterval returns the Interval field value.
func (o *SpansGroupByHistogram) GetIntervalOk() (*float64, bool)
GetIntervalOk returns a tuple with the Interval field value and a boolean to check if the value has been set.
func (o *SpansGroupByHistogram) GetMax() float64
GetMax returns the Max field value.
func (o *SpansGroupByHistogram) GetMaxOk() (*float64, bool)
GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.
func (o *SpansGroupByHistogram) GetMin() float64
GetMin returns the Min field value.
func (o *SpansGroupByHistogram) GetMinOk() (*float64, bool)
GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.
func (o SpansGroupByHistogram) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansGroupByHistogram) SetInterval(v float64)
SetInterval sets field value.
func (o *SpansGroupByHistogram) SetMax(v float64)
SetMax sets field value.
func (o *SpansGroupByHistogram) SetMin(v float64)
SetMin sets field value.
func (o *SpansGroupByHistogram) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansGroupByMissing - The value to use for spans that don't have the facet used to group by.
type SpansGroupByMissing struct {
SpansGroupByMissingString *string
SpansGroupByMissingNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SpansGroupByMissingNumberAsSpansGroupByMissing(v *float64) SpansGroupByMissing
SpansGroupByMissingNumberAsSpansGroupByMissing is a convenience function that returns float64 wrapped in SpansGroupByMissing.
func SpansGroupByMissingStringAsSpansGroupByMissing(v *string) SpansGroupByMissing
SpansGroupByMissingStringAsSpansGroupByMissing is a convenience function that returns string wrapped in SpansGroupByMissing.
func (obj *SpansGroupByMissing) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SpansGroupByMissing) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SpansGroupByMissing) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SpansGroupByTotal - A resulting object to put the given computes in over all the matching records.
type SpansGroupByTotal struct {
SpansGroupByTotalBoolean *bool
SpansGroupByTotalString *string
SpansGroupByTotalNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SpansGroupByTotalBooleanAsSpansGroupByTotal(v *bool) SpansGroupByTotal
SpansGroupByTotalBooleanAsSpansGroupByTotal is a convenience function that returns bool wrapped in SpansGroupByTotal.
func SpansGroupByTotalNumberAsSpansGroupByTotal(v *float64) SpansGroupByTotal
SpansGroupByTotalNumberAsSpansGroupByTotal is a convenience function that returns float64 wrapped in SpansGroupByTotal.
func SpansGroupByTotalStringAsSpansGroupByTotal(v *string) SpansGroupByTotal
SpansGroupByTotalStringAsSpansGroupByTotal is a convenience function that returns string wrapped in SpansGroupByTotal.
func (obj *SpansGroupByTotal) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SpansGroupByTotal) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SpansGroupByTotal) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SpansListRequest The request for a spans list.
type SpansListRequest struct {
// The object containing the query content.
Data *SpansListRequestData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansListRequest() *SpansListRequest
NewSpansListRequest instantiates a new SpansListRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansListRequestWithDefaults() *SpansListRequest
NewSpansListRequestWithDefaults instantiates a new SpansListRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansListRequest) GetData() SpansListRequestData
GetData returns the Data field value if set, zero value otherwise.
func (o *SpansListRequest) GetDataOk() (*SpansListRequestData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequest) HasData() bool
HasData returns a boolean if a field has been set.
func (o SpansListRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansListRequest) SetData(v SpansListRequestData)
SetData gets a reference to the given SpansListRequestData and assigns it to the Data field.
func (o *SpansListRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansListRequestAttributes The object containing all the query parameters.
type SpansListRequestAttributes struct {
// The search and filter query settings.
Filter *SpansQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Note: You should only supply timezone or time offset but not both otherwise the query will fail.
Options *SpansQueryOptions `json:"options,omitempty"`
// Paging attributes for listing spans.
Page *SpansListRequestPage `json:"page,omitempty"`
// Sort parameters when querying spans.
Sort *SpansSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansListRequestAttributes() *SpansListRequestAttributes
NewSpansListRequestAttributes instantiates a new SpansListRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansListRequestAttributesWithDefaults() *SpansListRequestAttributes
NewSpansListRequestAttributesWithDefaults instantiates a new SpansListRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansListRequestAttributes) GetFilter() SpansQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *SpansListRequestAttributes) GetFilterOk() (*SpansQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequestAttributes) GetOptions() SpansQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *SpansListRequestAttributes) GetOptionsOk() (*SpansQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequestAttributes) GetPage() SpansListRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *SpansListRequestAttributes) GetPageOk() (*SpansListRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequestAttributes) GetSort() SpansSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *SpansListRequestAttributes) GetSortOk() (*SpansSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequestAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *SpansListRequestAttributes) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *SpansListRequestAttributes) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *SpansListRequestAttributes) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o SpansListRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansListRequestAttributes) SetFilter(v SpansQueryFilter)
SetFilter gets a reference to the given SpansQueryFilter and assigns it to the Filter field.
func (o *SpansListRequestAttributes) SetOptions(v SpansQueryOptions)
SetOptions gets a reference to the given SpansQueryOptions and assigns it to the Options field.
func (o *SpansListRequestAttributes) SetPage(v SpansListRequestPage)
SetPage gets a reference to the given SpansListRequestPage and assigns it to the Page field.
func (o *SpansListRequestAttributes) SetSort(v SpansSort)
SetSort gets a reference to the given SpansSort and assigns it to the Sort field.
func (o *SpansListRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansListRequestData The object containing the query content.
type SpansListRequestData struct {
// The object containing all the query parameters.
Attributes *SpansListRequestAttributes `json:"attributes,omitempty"`
// The type of resource. The value should always be search_request.
Type *SpansListRequestType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansListRequestData() *SpansListRequestData
NewSpansListRequestData instantiates a new SpansListRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansListRequestDataWithDefaults() *SpansListRequestData
NewSpansListRequestDataWithDefaults instantiates a new SpansListRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansListRequestData) GetAttributes() SpansListRequestAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SpansListRequestData) GetAttributesOk() (*SpansListRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequestData) GetType() SpansListRequestType
GetType returns the Type field value if set, zero value otherwise.
func (o *SpansListRequestData) GetTypeOk() (*SpansListRequestType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequestData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SpansListRequestData) HasType() bool
HasType returns a boolean if a field has been set.
func (o SpansListRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansListRequestData) SetAttributes(v SpansListRequestAttributes)
SetAttributes gets a reference to the given SpansListRequestAttributes and assigns it to the Attributes field.
func (o *SpansListRequestData) SetType(v SpansListRequestType)
SetType gets a reference to the given SpansListRequestType and assigns it to the Type field.
func (o *SpansListRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansListRequestPage Paging attributes for listing spans.
type SpansListRequestPage struct {
// List following results with a cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// Maximum number of spans in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansListRequestPage() *SpansListRequestPage
NewSpansListRequestPage instantiates a new SpansListRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansListRequestPageWithDefaults() *SpansListRequestPage
NewSpansListRequestPageWithDefaults instantiates a new SpansListRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansListRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *SpansListRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequestPage) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *SpansListRequestPage) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *SpansListRequestPage) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o SpansListRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansListRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *SpansListRequestPage) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *SpansListRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansListRequestType The type of resource. The value should always be search_request.
type SpansListRequestType string
List of SpansListRequestType.
const (
SPANSLISTREQUESTTYPE_SEARCH_REQUEST SpansListRequestType = "search_request"
)
func NewSpansListRequestTypeFromValue(v string) (*SpansListRequestType, error)
NewSpansListRequestTypeFromValue returns a pointer to a valid SpansListRequestType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansListRequestType) GetAllowedValues() []SpansListRequestType
GetAllowedValues reeturns the list of possible values.
func (v SpansListRequestType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansListRequestType) Ptr() *SpansListRequestType
Ptr returns reference to SpansListRequestType value.
func (v *SpansListRequestType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansListResponse Response object with all spans matching the request and pagination information.
type SpansListResponse struct {
// Array of spans matching the request.
Data []Span `json:"data,omitempty"`
// Links attributes.
Links *SpansListResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *SpansListResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansListResponse() *SpansListResponse
NewSpansListResponse instantiates a new SpansListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansListResponseWithDefaults() *SpansListResponse
NewSpansListResponseWithDefaults instantiates a new SpansListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansListResponse) GetData() []Span
GetData returns the Data field value if set, zero value otherwise.
func (o *SpansListResponse) GetDataOk() (*[]Span, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponse) GetLinks() SpansListResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *SpansListResponse) GetLinksOk() (*SpansListResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponse) GetMeta() SpansListResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SpansListResponse) GetMetaOk() (*SpansListResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SpansListResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *SpansListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SpansListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansListResponse) SetData(v []Span)
SetData gets a reference to the given []Span and assigns it to the Data field.
func (o *SpansListResponse) SetLinks(v SpansListResponseLinks)
SetLinks gets a reference to the given SpansListResponseLinks and assigns it to the Links field.
func (o *SpansListResponse) SetMeta(v SpansListResponseMetadata)
SetMeta gets a reference to the given SpansListResponseMetadata and assigns it to the Meta field.
func (o *SpansListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansListResponseLinks Links attributes.
type SpansListResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansListResponseLinks() *SpansListResponseLinks
NewSpansListResponseLinks instantiates a new SpansListResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansListResponseLinksWithDefaults() *SpansListResponseLinks
NewSpansListResponseLinksWithDefaults instantiates a new SpansListResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansListResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *SpansListResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o SpansListResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansListResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *SpansListResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansListResponseMetadata The metadata associated with a request.
type SpansListResponseMetadata struct {
// The time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// Paging attributes.
Page *SpansResponseMetadataPage `json:"page,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The status of the response.
Status *SpansAggregateResponseStatus `json:"status,omitempty"`
// A list of warnings (non fatal errors) encountered, partial results might be returned if
// warnings are present in the response.
Warnings []SpansWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansListResponseMetadata() *SpansListResponseMetadata
NewSpansListResponseMetadata instantiates a new SpansListResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansListResponseMetadataWithDefaults() *SpansListResponseMetadata
NewSpansListResponseMetadataWithDefaults instantiates a new SpansListResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansListResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *SpansListResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponseMetadata) GetPage() SpansResponseMetadataPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *SpansListResponseMetadata) GetPageOk() (*SpansResponseMetadataPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *SpansListResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponseMetadata) GetStatus() SpansAggregateResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *SpansListResponseMetadata) GetStatusOk() (*SpansAggregateResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponseMetadata) GetWarnings() []SpansWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *SpansListResponseMetadata) GetWarningsOk() (*[]SpansWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansListResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *SpansListResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *SpansListResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *SpansListResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *SpansListResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o SpansListResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansListResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *SpansListResponseMetadata) SetPage(v SpansResponseMetadataPage)
SetPage gets a reference to the given SpansResponseMetadataPage and assigns it to the Page field.
func (o *SpansListResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *SpansListResponseMetadata) SetStatus(v SpansAggregateResponseStatus)
SetStatus gets a reference to the given SpansAggregateResponseStatus and assigns it to the Status field.
func (o *SpansListResponseMetadata) SetWarnings(v []SpansWarning)
SetWarnings gets a reference to the given []SpansWarning and assigns it to the Warnings field.
func (o *SpansListResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricCompute The compute rule to compute the span-based metric.
type SpansMetricCompute struct {
// The type of aggregation to use.
AggregationType SpansMetricComputeAggregationType `json:"aggregation_type"`
// Toggle to include or exclude percentile aggregations for distribution metrics.
// Only present when the `aggregation_type` is `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// The path to the value the span-based metric will aggregate on (only used if the aggregation type is a "distribution").
Path *string `json:"path,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricCompute(aggregationType SpansMetricComputeAggregationType) *SpansMetricCompute
NewSpansMetricCompute instantiates a new SpansMetricCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricComputeWithDefaults() *SpansMetricCompute
NewSpansMetricComputeWithDefaults instantiates a new SpansMetricCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricCompute) GetAggregationType() SpansMetricComputeAggregationType
GetAggregationType returns the AggregationType field value.
func (o *SpansMetricCompute) GetAggregationTypeOk() (*SpansMetricComputeAggregationType, bool)
GetAggregationTypeOk returns a tuple with the AggregationType field value and a boolean to check if the value has been set.
func (o *SpansMetricCompute) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *SpansMetricCompute) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricCompute) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *SpansMetricCompute) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricCompute) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o *SpansMetricCompute) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o SpansMetricCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricCompute) SetAggregationType(v SpansMetricComputeAggregationType)
SetAggregationType sets field value.
func (o *SpansMetricCompute) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *SpansMetricCompute) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *SpansMetricCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricComputeAggregationType The type of aggregation to use.
type SpansMetricComputeAggregationType string
List of SpansMetricComputeAggregationType.
const (
SPANSMETRICCOMPUTEAGGREGATIONTYPE_COUNT SpansMetricComputeAggregationType = "count"
SPANSMETRICCOMPUTEAGGREGATIONTYPE_DISTRIBUTION SpansMetricComputeAggregationType = "distribution"
)
func NewSpansMetricComputeAggregationTypeFromValue(v string) (*SpansMetricComputeAggregationType, error)
NewSpansMetricComputeAggregationTypeFromValue returns a pointer to a valid SpansMetricComputeAggregationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansMetricComputeAggregationType) GetAllowedValues() []SpansMetricComputeAggregationType
GetAllowedValues reeturns the list of possible values.
func (v SpansMetricComputeAggregationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansMetricComputeAggregationType) Ptr() *SpansMetricComputeAggregationType
Ptr returns reference to SpansMetricComputeAggregationType value.
func (v *SpansMetricComputeAggregationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansMetricCreateAttributes The object describing the Datadog span-based metric to create.
type SpansMetricCreateAttributes struct {
// The compute rule to compute the span-based metric.
Compute SpansMetricCompute `json:"compute"`
// The span-based metric filter. Spans matching this filter will be aggregated in this metric.
Filter *SpansMetricFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []SpansMetricGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricCreateAttributes(compute SpansMetricCompute) *SpansMetricCreateAttributes
NewSpansMetricCreateAttributes instantiates a new SpansMetricCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricCreateAttributesWithDefaults() *SpansMetricCreateAttributes
NewSpansMetricCreateAttributesWithDefaults instantiates a new SpansMetricCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricCreateAttributes) GetCompute() SpansMetricCompute
GetCompute returns the Compute field value.
func (o *SpansMetricCreateAttributes) GetComputeOk() (*SpansMetricCompute, bool)
GetComputeOk returns a tuple with the Compute field value and a boolean to check if the value has been set.
func (o *SpansMetricCreateAttributes) GetFilter() SpansMetricFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *SpansMetricCreateAttributes) GetFilterOk() (*SpansMetricFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricCreateAttributes) GetGroupBy() []SpansMetricGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *SpansMetricCreateAttributes) GetGroupByOk() (*[]SpansMetricGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricCreateAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *SpansMetricCreateAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o SpansMetricCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricCreateAttributes) SetCompute(v SpansMetricCompute)
SetCompute sets field value.
func (o *SpansMetricCreateAttributes) SetFilter(v SpansMetricFilter)
SetFilter gets a reference to the given SpansMetricFilter and assigns it to the Filter field.
func (o *SpansMetricCreateAttributes) SetGroupBy(v []SpansMetricGroupBy)
SetGroupBy gets a reference to the given []SpansMetricGroupBy and assigns it to the GroupBy field.
func (o *SpansMetricCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricCreateData The new span-based metric properties.
type SpansMetricCreateData struct {
// The object describing the Datadog span-based metric to create.
Attributes SpansMetricCreateAttributes `json:"attributes"`
// The name of the span-based metric.
Id string `json:"id"`
// The type of resource. The value should always be spans_metrics.
Type SpansMetricType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricCreateData(attributes SpansMetricCreateAttributes, id string, typeVar SpansMetricType) *SpansMetricCreateData
NewSpansMetricCreateData instantiates a new SpansMetricCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricCreateDataWithDefaults() *SpansMetricCreateData
NewSpansMetricCreateDataWithDefaults instantiates a new SpansMetricCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricCreateData) GetAttributes() SpansMetricCreateAttributes
GetAttributes returns the Attributes field value.
func (o *SpansMetricCreateData) GetAttributesOk() (*SpansMetricCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *SpansMetricCreateData) GetId() string
GetId returns the Id field value.
func (o *SpansMetricCreateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *SpansMetricCreateData) GetType() SpansMetricType
GetType returns the Type field value.
func (o *SpansMetricCreateData) GetTypeOk() (*SpansMetricType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o SpansMetricCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricCreateData) SetAttributes(v SpansMetricCreateAttributes)
SetAttributes sets field value.
func (o *SpansMetricCreateData) SetId(v string)
SetId sets field value.
func (o *SpansMetricCreateData) SetType(v SpansMetricType)
SetType sets field value.
func (o *SpansMetricCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricCreateRequest The new span-based metric body.
type SpansMetricCreateRequest struct {
// The new span-based metric properties.
Data SpansMetricCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricCreateRequest(data SpansMetricCreateData) *SpansMetricCreateRequest
NewSpansMetricCreateRequest instantiates a new SpansMetricCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricCreateRequestWithDefaults() *SpansMetricCreateRequest
NewSpansMetricCreateRequestWithDefaults instantiates a new SpansMetricCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricCreateRequest) GetData() SpansMetricCreateData
GetData returns the Data field value.
func (o *SpansMetricCreateRequest) GetDataOk() (*SpansMetricCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SpansMetricCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricCreateRequest) SetData(v SpansMetricCreateData)
SetData sets field value.
func (o *SpansMetricCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricFilter The span-based metric filter. Spans matching this filter will be aggregated in this metric.
type SpansMetricFilter struct {
// The search query - following the span search syntax.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricFilter() *SpansMetricFilter
NewSpansMetricFilter instantiates a new SpansMetricFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricFilterWithDefaults() *SpansMetricFilter
NewSpansMetricFilterWithDefaults instantiates a new SpansMetricFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SpansMetricFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o SpansMetricFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SpansMetricFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricGroupBy A group by rule.
type SpansMetricGroupBy struct {
// The path to the value the span-based metric will be aggregated over.
Path string `json:"path"`
// Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
TagName *string `json:"tag_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricGroupBy(path string) *SpansMetricGroupBy
NewSpansMetricGroupBy instantiates a new SpansMetricGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricGroupByWithDefaults() *SpansMetricGroupBy
NewSpansMetricGroupByWithDefaults instantiates a new SpansMetricGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricGroupBy) GetPath() string
GetPath returns the Path field value.
func (o *SpansMetricGroupBy) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.
func (o *SpansMetricGroupBy) GetTagName() string
GetTagName returns the TagName field value if set, zero value otherwise.
func (o *SpansMetricGroupBy) GetTagNameOk() (*string, bool)
GetTagNameOk returns a tuple with the TagName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricGroupBy) HasTagName() bool
HasTagName returns a boolean if a field has been set.
func (o SpansMetricGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricGroupBy) SetPath(v string)
SetPath sets field value.
func (o *SpansMetricGroupBy) SetTagName(v string)
SetTagName gets a reference to the given string and assigns it to the TagName field.
func (o *SpansMetricGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricResponse The span-based metric object.
type SpansMetricResponse struct {
// The span-based metric properties.
Data *SpansMetricResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricResponse() *SpansMetricResponse
NewSpansMetricResponse instantiates a new SpansMetricResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricResponseWithDefaults() *SpansMetricResponse
NewSpansMetricResponseWithDefaults instantiates a new SpansMetricResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricResponse) GetData() SpansMetricResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *SpansMetricResponse) GetDataOk() (*SpansMetricResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o SpansMetricResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricResponse) SetData(v SpansMetricResponseData)
SetData gets a reference to the given SpansMetricResponseData and assigns it to the Data field.
func (o *SpansMetricResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricResponseAttributes The object describing a Datadog span-based metric.
type SpansMetricResponseAttributes struct {
// The compute rule to compute the span-based metric.
Compute *SpansMetricResponseCompute `json:"compute,omitempty"`
// The span-based metric filter. Spans matching this filter will be aggregated in this metric.
Filter *SpansMetricResponseFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []SpansMetricResponseGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricResponseAttributes() *SpansMetricResponseAttributes
NewSpansMetricResponseAttributes instantiates a new SpansMetricResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricResponseAttributesWithDefaults() *SpansMetricResponseAttributes
NewSpansMetricResponseAttributesWithDefaults instantiates a new SpansMetricResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricResponseAttributes) GetCompute() SpansMetricResponseCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *SpansMetricResponseAttributes) GetComputeOk() (*SpansMetricResponseCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseAttributes) GetFilter() SpansMetricResponseFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *SpansMetricResponseAttributes) GetFilterOk() (*SpansMetricResponseFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseAttributes) GetGroupBy() []SpansMetricResponseGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *SpansMetricResponseAttributes) GetGroupByOk() (*[]SpansMetricResponseGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseAttributes) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *SpansMetricResponseAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *SpansMetricResponseAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o SpansMetricResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricResponseAttributes) SetCompute(v SpansMetricResponseCompute)
SetCompute gets a reference to the given SpansMetricResponseCompute and assigns it to the Compute field.
func (o *SpansMetricResponseAttributes) SetFilter(v SpansMetricResponseFilter)
SetFilter gets a reference to the given SpansMetricResponseFilter and assigns it to the Filter field.
func (o *SpansMetricResponseAttributes) SetGroupBy(v []SpansMetricResponseGroupBy)
SetGroupBy gets a reference to the given []SpansMetricResponseGroupBy and assigns it to the GroupBy field.
func (o *SpansMetricResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricResponseCompute The compute rule to compute the span-based metric.
type SpansMetricResponseCompute struct {
// The type of aggregation to use.
AggregationType *SpansMetricComputeAggregationType `json:"aggregation_type,omitempty"`
// Toggle to include or exclude percentile aggregations for distribution metrics.
// Only present when the `aggregation_type` is `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// The path to the value the span-based metric will aggregate on (only used if the aggregation type is a "distribution").
Path *string `json:"path,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricResponseCompute() *SpansMetricResponseCompute
NewSpansMetricResponseCompute instantiates a new SpansMetricResponseCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricResponseComputeWithDefaults() *SpansMetricResponseCompute
NewSpansMetricResponseComputeWithDefaults instantiates a new SpansMetricResponseCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricResponseCompute) GetAggregationType() SpansMetricComputeAggregationType
GetAggregationType returns the AggregationType field value if set, zero value otherwise.
func (o *SpansMetricResponseCompute) GetAggregationTypeOk() (*SpansMetricComputeAggregationType, bool)
GetAggregationTypeOk returns a tuple with the AggregationType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseCompute) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *SpansMetricResponseCompute) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseCompute) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *SpansMetricResponseCompute) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseCompute) HasAggregationType() bool
HasAggregationType returns a boolean if a field has been set.
func (o *SpansMetricResponseCompute) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o *SpansMetricResponseCompute) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o SpansMetricResponseCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricResponseCompute) SetAggregationType(v SpansMetricComputeAggregationType)
SetAggregationType gets a reference to the given SpansMetricComputeAggregationType and assigns it to the AggregationType field.
func (o *SpansMetricResponseCompute) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *SpansMetricResponseCompute) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *SpansMetricResponseCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricResponseData The span-based metric properties.
type SpansMetricResponseData struct {
// The object describing a Datadog span-based metric.
Attributes *SpansMetricResponseAttributes `json:"attributes,omitempty"`
// The name of the span-based metric.
Id *string `json:"id,omitempty"`
// The type of resource. The value should always be spans_metrics.
Type *SpansMetricType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricResponseData() *SpansMetricResponseData
NewSpansMetricResponseData instantiates a new SpansMetricResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricResponseDataWithDefaults() *SpansMetricResponseData
NewSpansMetricResponseDataWithDefaults instantiates a new SpansMetricResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricResponseData) GetAttributes() SpansMetricResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SpansMetricResponseData) GetAttributesOk() (*SpansMetricResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SpansMetricResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseData) GetType() SpansMetricType
GetType returns the Type field value if set, zero value otherwise.
func (o *SpansMetricResponseData) GetTypeOk() (*SpansMetricType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SpansMetricResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SpansMetricResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o SpansMetricResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricResponseData) SetAttributes(v SpansMetricResponseAttributes)
SetAttributes gets a reference to the given SpansMetricResponseAttributes and assigns it to the Attributes field.
func (o *SpansMetricResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SpansMetricResponseData) SetType(v SpansMetricType)
SetType gets a reference to the given SpansMetricType and assigns it to the Type field.
func (o *SpansMetricResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricResponseFilter The span-based metric filter. Spans matching this filter will be aggregated in this metric.
type SpansMetricResponseFilter struct {
// The search query - following the span search syntax.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricResponseFilter() *SpansMetricResponseFilter
NewSpansMetricResponseFilter instantiates a new SpansMetricResponseFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricResponseFilterWithDefaults() *SpansMetricResponseFilter
NewSpansMetricResponseFilterWithDefaults instantiates a new SpansMetricResponseFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricResponseFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SpansMetricResponseFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o SpansMetricResponseFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricResponseFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SpansMetricResponseFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricResponseGroupBy A group by rule.
type SpansMetricResponseGroupBy struct {
// The path to the value the span-based metric will be aggregated over.
Path *string `json:"path,omitempty"`
// Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
TagName *string `json:"tag_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricResponseGroupBy() *SpansMetricResponseGroupBy
NewSpansMetricResponseGroupBy instantiates a new SpansMetricResponseGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricResponseGroupByWithDefaults() *SpansMetricResponseGroupBy
NewSpansMetricResponseGroupByWithDefaults instantiates a new SpansMetricResponseGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricResponseGroupBy) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *SpansMetricResponseGroupBy) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseGroupBy) GetTagName() string
GetTagName returns the TagName field value if set, zero value otherwise.
func (o *SpansMetricResponseGroupBy) GetTagNameOk() (*string, bool)
GetTagNameOk returns a tuple with the TagName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricResponseGroupBy) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o *SpansMetricResponseGroupBy) HasTagName() bool
HasTagName returns a boolean if a field has been set.
func (o SpansMetricResponseGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricResponseGroupBy) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *SpansMetricResponseGroupBy) SetTagName(v string)
SetTagName gets a reference to the given string and assigns it to the TagName field.
func (o *SpansMetricResponseGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricType The type of resource. The value should always be spans_metrics.
type SpansMetricType string
List of SpansMetricType.
const (
SPANSMETRICTYPE_SPANS_METRICS SpansMetricType = "spans_metrics"
)
func NewSpansMetricTypeFromValue(v string) (*SpansMetricType, error)
NewSpansMetricTypeFromValue returns a pointer to a valid SpansMetricType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansMetricType) GetAllowedValues() []SpansMetricType
GetAllowedValues reeturns the list of possible values.
func (v SpansMetricType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansMetricType) Ptr() *SpansMetricType
Ptr returns reference to SpansMetricType value.
func (v *SpansMetricType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansMetricUpdateAttributes The span-based metric properties that will be updated.
type SpansMetricUpdateAttributes struct {
// The compute rule to compute the span-based metric.
Compute *SpansMetricUpdateCompute `json:"compute,omitempty"`
// The span-based metric filter. Spans matching this filter will be aggregated in this metric.
Filter *SpansMetricFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []SpansMetricGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricUpdateAttributes() *SpansMetricUpdateAttributes
NewSpansMetricUpdateAttributes instantiates a new SpansMetricUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricUpdateAttributesWithDefaults() *SpansMetricUpdateAttributes
NewSpansMetricUpdateAttributesWithDefaults instantiates a new SpansMetricUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricUpdateAttributes) GetCompute() SpansMetricUpdateCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *SpansMetricUpdateAttributes) GetComputeOk() (*SpansMetricUpdateCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricUpdateAttributes) GetFilter() SpansMetricFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *SpansMetricUpdateAttributes) GetFilterOk() (*SpansMetricFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricUpdateAttributes) GetGroupBy() []SpansMetricGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *SpansMetricUpdateAttributes) GetGroupByOk() (*[]SpansMetricGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricUpdateAttributes) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *SpansMetricUpdateAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *SpansMetricUpdateAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o SpansMetricUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricUpdateAttributes) SetCompute(v SpansMetricUpdateCompute)
SetCompute gets a reference to the given SpansMetricUpdateCompute and assigns it to the Compute field.
func (o *SpansMetricUpdateAttributes) SetFilter(v SpansMetricFilter)
SetFilter gets a reference to the given SpansMetricFilter and assigns it to the Filter field.
func (o *SpansMetricUpdateAttributes) SetGroupBy(v []SpansMetricGroupBy)
SetGroupBy gets a reference to the given []SpansMetricGroupBy and assigns it to the GroupBy field.
func (o *SpansMetricUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricUpdateCompute The compute rule to compute the span-based metric.
type SpansMetricUpdateCompute struct {
// Toggle to include or exclude percentile aggregations for distribution metrics.
// Only present when the `aggregation_type` is `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricUpdateCompute() *SpansMetricUpdateCompute
NewSpansMetricUpdateCompute instantiates a new SpansMetricUpdateCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricUpdateComputeWithDefaults() *SpansMetricUpdateCompute
NewSpansMetricUpdateComputeWithDefaults instantiates a new SpansMetricUpdateCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricUpdateCompute) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *SpansMetricUpdateCompute) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricUpdateCompute) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o SpansMetricUpdateCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricUpdateCompute) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *SpansMetricUpdateCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricUpdateData The new span-based metric properties.
type SpansMetricUpdateData struct {
// The span-based metric properties that will be updated.
Attributes SpansMetricUpdateAttributes `json:"attributes"`
// The type of resource. The value should always be spans_metrics.
Type SpansMetricType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricUpdateData(attributes SpansMetricUpdateAttributes, typeVar SpansMetricType) *SpansMetricUpdateData
NewSpansMetricUpdateData instantiates a new SpansMetricUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricUpdateDataWithDefaults() *SpansMetricUpdateData
NewSpansMetricUpdateDataWithDefaults instantiates a new SpansMetricUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricUpdateData) GetAttributes() SpansMetricUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SpansMetricUpdateData) GetAttributesOk() (*SpansMetricUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *SpansMetricUpdateData) GetType() SpansMetricType
GetType returns the Type field value.
func (o *SpansMetricUpdateData) GetTypeOk() (*SpansMetricType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o SpansMetricUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricUpdateData) SetAttributes(v SpansMetricUpdateAttributes)
SetAttributes sets field value.
func (o *SpansMetricUpdateData) SetType(v SpansMetricType)
SetType sets field value.
func (o *SpansMetricUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricUpdateRequest The new span-based metric body.
type SpansMetricUpdateRequest struct {
// The new span-based metric properties.
Data SpansMetricUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricUpdateRequest(data SpansMetricUpdateData) *SpansMetricUpdateRequest
NewSpansMetricUpdateRequest instantiates a new SpansMetricUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricUpdateRequestWithDefaults() *SpansMetricUpdateRequest
NewSpansMetricUpdateRequestWithDefaults instantiates a new SpansMetricUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricUpdateRequest) GetData() SpansMetricUpdateData
GetData returns the Data field value.
func (o *SpansMetricUpdateRequest) GetDataOk() (*SpansMetricUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SpansMetricUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricUpdateRequest) SetData(v SpansMetricUpdateData)
SetData sets field value.
func (o *SpansMetricUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansMetricsApi service type
type SpansMetricsApi datadog.Service
func NewSpansMetricsApi(client *datadog.APIClient) *SpansMetricsApi
NewSpansMetricsApi Returns NewSpansMetricsApi.
func (a *SpansMetricsApi) CreateSpansMetric(ctx _context.Context, body SpansMetricCreateRequest) (SpansMetricResponse, *_nethttp.Response, error)
CreateSpansMetric Create a span-based metric. Create a metric based on your ingested spans in your organization. Returns the span-based metric object from the request body when the request is successful.
func (a *SpansMetricsApi) DeleteSpansMetric(ctx _context.Context, metricId string) (*_nethttp.Response, error)
DeleteSpansMetric Delete a span-based metric. Delete a specific span-based metric from your organization.
func (a *SpansMetricsApi) GetSpansMetric(ctx _context.Context, metricId string) (SpansMetricResponse, *_nethttp.Response, error)
GetSpansMetric Get a span-based metric. Get a specific span-based metric from your organization.
func (a *SpansMetricsApi) ListSpansMetrics(ctx _context.Context) (SpansMetricsResponse, *_nethttp.Response, error)
ListSpansMetrics Get all span-based metrics. Get the list of configured span-based metrics with their definitions.
func (a *SpansMetricsApi) UpdateSpansMetric(ctx _context.Context, metricId string, body SpansMetricUpdateRequest) (SpansMetricResponse, *_nethttp.Response, error)
UpdateSpansMetric Update a span-based metric. Update a specific span-based metric from your organization. Returns the span-based metric object from the request body when the request is successful.
SpansMetricsResponse All the available span-based metric objects.
type SpansMetricsResponse struct {
// A list of span-based metric objects.
Data []SpansMetricResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansMetricsResponse() *SpansMetricsResponse
NewSpansMetricsResponse instantiates a new SpansMetricsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansMetricsResponseWithDefaults() *SpansMetricsResponse
NewSpansMetricsResponseWithDefaults instantiates a new SpansMetricsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansMetricsResponse) GetData() []SpansMetricResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *SpansMetricsResponse) GetDataOk() (*[]SpansMetricResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansMetricsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o SpansMetricsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansMetricsResponse) SetData(v []SpansMetricResponseData)
SetData gets a reference to the given []SpansMetricResponseData and assigns it to the Data field.
func (o *SpansMetricsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansQueryFilter The search and filter query settings.
type SpansQueryFilter struct {
// The minimum time for the requested spans, supports date-time ISO8601, date math, and regular timestamps (milliseconds).
From *string `json:"from,omitempty"`
// The search query - following the span search syntax.
Query *string `json:"query,omitempty"`
// The maximum time for the requested spans, supports date-time ISO8601, date math, and regular timestamps (milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansQueryFilter() *SpansQueryFilter
NewSpansQueryFilter instantiates a new SpansQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansQueryFilterWithDefaults() *SpansQueryFilter
NewSpansQueryFilterWithDefaults instantiates a new SpansQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *SpansQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SpansQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *SpansQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *SpansQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *SpansQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o SpansQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *SpansQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SpansQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *SpansQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansQueryOptions Global query options that are used during the query. Note: You should only supply timezone or time offset but not both otherwise the query will fail.
type SpansQueryOptions struct {
// The time offset (in seconds) to apply to the query.
TimeOffset *int64 `json:"timeOffset,omitempty"`
// The timezone can be specified as GMT, UTC, an offset from UTC (like UTC+1), or as a Timezone Database identifier (like America/New_York).
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansQueryOptions() *SpansQueryOptions
NewSpansQueryOptions instantiates a new SpansQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansQueryOptionsWithDefaults() *SpansQueryOptions
NewSpansQueryOptionsWithDefaults instantiates a new SpansQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *SpansQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *SpansQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *SpansQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o SpansQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *SpansQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *SpansQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansResponseMetadataPage Paging attributes.
type SpansResponseMetadataPage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansResponseMetadataPage() *SpansResponseMetadataPage
NewSpansResponseMetadataPage instantiates a new SpansResponseMetadataPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansResponseMetadataPageWithDefaults() *SpansResponseMetadataPage
NewSpansResponseMetadataPageWithDefaults instantiates a new SpansResponseMetadataPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansResponseMetadataPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *SpansResponseMetadataPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansResponseMetadataPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o SpansResponseMetadataPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansResponseMetadataPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *SpansResponseMetadataPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SpansSort Sort parameters when querying spans.
type SpansSort string
List of SpansSort.
const (
SPANSSORT_TIMESTAMP_ASCENDING SpansSort = "timestamp"
SPANSSORT_TIMESTAMP_DESCENDING SpansSort = "-timestamp"
)
func NewSpansSortFromValue(v string) (*SpansSort, error)
NewSpansSortFromValue returns a pointer to a valid SpansSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansSort) GetAllowedValues() []SpansSort
GetAllowedValues reeturns the list of possible values.
func (v SpansSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansSort) Ptr() *SpansSort
Ptr returns reference to SpansSort value.
func (v *SpansSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansSortOrder The order to use, ascending or descending.
type SpansSortOrder string
List of SpansSortOrder.
const (
SPANSSORTORDER_ASCENDING SpansSortOrder = "asc"
SPANSSORTORDER_DESCENDING SpansSortOrder = "desc"
)
func NewSpansSortOrderFromValue(v string) (*SpansSortOrder, error)
NewSpansSortOrderFromValue returns a pointer to a valid SpansSortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansSortOrder) GetAllowedValues() []SpansSortOrder
GetAllowedValues reeturns the list of possible values.
func (v SpansSortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansSortOrder) Ptr() *SpansSortOrder
Ptr returns reference to SpansSortOrder value.
func (v *SpansSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansType Type of the span.
type SpansType string
List of SpansType.
const (
SPANSTYPE_SPANS SpansType = "spans"
)
func NewSpansTypeFromValue(v string) (*SpansType, error)
NewSpansTypeFromValue returns a pointer to a valid SpansType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SpansType) GetAllowedValues() []SpansType
GetAllowedValues reeturns the list of possible values.
func (v SpansType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SpansType) Ptr() *SpansType
Ptr returns reference to SpansType value.
func (v *SpansType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SpansWarning A warning message indicating something that went wrong with the query.
type SpansWarning struct {
// A unique code for this type of warning.
Code *string `json:"code,omitempty"`
// A detailed explanation of this specific warning.
Detail *string `json:"detail,omitempty"`
// A short human-readable summary of the warning.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSpansWarning() *SpansWarning
NewSpansWarning instantiates a new SpansWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSpansWarningWithDefaults() *SpansWarning
NewSpansWarningWithDefaults instantiates a new SpansWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SpansWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *SpansWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *SpansWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *SpansWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SpansWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *SpansWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *SpansWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o SpansWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SpansWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *SpansWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *SpansWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *SpansWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SubmitLogOptionalParameters holds optional parameters for SubmitLog.
type SubmitLogOptionalParameters struct {
ContentEncoding *ContentEncoding
Ddtags *string
}
func NewSubmitLogOptionalParameters() *SubmitLogOptionalParameters
NewSubmitLogOptionalParameters creates an empty struct for parameters.
func (r *SubmitLogOptionalParameters) WithContentEncoding(contentEncoding ContentEncoding) *SubmitLogOptionalParameters
WithContentEncoding sets the corresponding parameter name and returns the struct.
func (r *SubmitLogOptionalParameters) WithDdtags(ddtags string) *SubmitLogOptionalParameters
WithDdtags sets the corresponding parameter name and returns the struct.
SubmitMetricsOptionalParameters holds optional parameters for SubmitMetrics.
type SubmitMetricsOptionalParameters struct {
ContentEncoding *MetricContentEncoding
}
func NewSubmitMetricsOptionalParameters() *SubmitMetricsOptionalParameters
NewSubmitMetricsOptionalParameters creates an empty struct for parameters.
func (r *SubmitMetricsOptionalParameters) WithContentEncoding(contentEncoding MetricContentEncoding) *SubmitMetricsOptionalParameters
WithContentEncoding sets the corresponding parameter name and returns the struct.
SyntheticsApi service type
type SyntheticsApi datadog.Service
func NewSyntheticsApi(client *datadog.APIClient) *SyntheticsApi
NewSyntheticsApi Returns NewSyntheticsApi.
func (a *SyntheticsApi) GetOnDemandConcurrencyCap(ctx _context.Context) (OnDemandConcurrencyCapResponse, *_nethttp.Response, error)
GetOnDemandConcurrencyCap Get the on-demand concurrency cap. Get the on-demand concurrency cap.
func (a *SyntheticsApi) SetOnDemandConcurrencyCap(ctx _context.Context, body OnDemandConcurrencyCapAttributes) (OnDemandConcurrencyCapResponse, *_nethttp.Response, error)
SetOnDemandConcurrencyCap Save new value for on-demand concurrency cap. Save new value for on-demand concurrency cap.
Team A team
type Team struct {
// Team attributes
Attributes TeamAttributes `json:"attributes"`
// The team's identifier
Id string `json:"id"`
// Resources related to a team
Relationships *TeamRelationships `json:"relationships,omitempty"`
// Team type
Type TeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeam(attributes TeamAttributes, id string, typeVar TeamType) *Team
NewTeam instantiates a new Team object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamWithDefaults() *Team
NewTeamWithDefaults instantiates a new Team object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Team) GetAttributes() TeamAttributes
GetAttributes returns the Attributes field value.
func (o *Team) GetAttributesOk() (*TeamAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *Team) GetId() string
GetId returns the Id field value.
func (o *Team) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *Team) GetRelationships() TeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *Team) GetRelationshipsOk() (*TeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Team) GetType() TeamType
GetType returns the Type field value.
func (o *Team) GetTypeOk() (*TeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *Team) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o Team) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Team) SetAttributes(v TeamAttributes)
SetAttributes sets field value.
func (o *Team) SetId(v string)
SetId sets field value.
func (o *Team) SetRelationships(v TeamRelationships)
SetRelationships gets a reference to the given TeamRelationships and assigns it to the Relationships field.
func (o *Team) SetType(v TeamType)
SetType sets field value.
func (o *Team) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamAttributes Team attributes
type TeamAttributes struct {
// Creation date of the team
CreatedAt *time.Time `json:"created_at,omitempty"`
// Free-form markdown description/content for the team's homepage
Description datadog.NullableString `json:"description,omitempty"`
// The team's identifier
Handle string `json:"handle"`
// The number of links belonging to the team
LinkCount *int32 `json:"link_count,omitempty"`
// Modification date of the team
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// The name of the team
Name string `json:"name"`
// A brief summary of the team, derived from the `description`
Summary datadog.NullableString `json:"summary,omitempty"`
// The number of users belonging to the team
UserCount *int32 `json:"user_count,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamAttributes(handle string, name string) *TeamAttributes
NewTeamAttributes instantiates a new TeamAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamAttributesWithDefaults() *TeamAttributes
NewTeamAttributesWithDefaults instantiates a new TeamAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *TeamAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TeamAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *TeamAttributes) GetHandle() string
GetHandle returns the Handle field value.
func (o *TeamAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value and a boolean to check if the value has been set.
func (o *TeamAttributes) GetLinkCount() int32
GetLinkCount returns the LinkCount field value if set, zero value otherwise.
func (o *TeamAttributes) GetLinkCountOk() (*int32, bool)
GetLinkCountOk returns a tuple with the LinkCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *TeamAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamAttributes) GetName() string
GetName returns the Name field value.
func (o *TeamAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *TeamAttributes) GetSummary() string
GetSummary returns the Summary field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TeamAttributes) GetSummaryOk() (*string, bool)
GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *TeamAttributes) GetUserCount() int32
GetUserCount returns the UserCount field value if set, zero value otherwise.
func (o *TeamAttributes) GetUserCountOk() (*int32, bool)
GetUserCountOk returns a tuple with the UserCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *TeamAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *TeamAttributes) HasLinkCount() bool
HasLinkCount returns a boolean if a field has been set.
func (o *TeamAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *TeamAttributes) HasSummary() bool
HasSummary returns a boolean if a field has been set.
func (o *TeamAttributes) HasUserCount() bool
HasUserCount returns a boolean if a field has been set.
func (o TeamAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *TeamAttributes) SetDescription(v string)
SetDescription gets a reference to the given datadog.NullableString and assigns it to the Description field.
func (o *TeamAttributes) SetDescriptionNil()
SetDescriptionNil sets the value for Description to be an explicit nil.
func (o *TeamAttributes) SetHandle(v string)
SetHandle sets field value.
func (o *TeamAttributes) SetLinkCount(v int32)
SetLinkCount gets a reference to the given int32 and assigns it to the LinkCount field.
func (o *TeamAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *TeamAttributes) SetName(v string)
SetName sets field value.
func (o *TeamAttributes) SetSummary(v string)
SetSummary gets a reference to the given datadog.NullableString and assigns it to the Summary field.
func (o *TeamAttributes) SetSummaryNil()
SetSummaryNil sets the value for Summary to be an explicit nil.
func (o *TeamAttributes) SetUserCount(v int32)
SetUserCount gets a reference to the given int32 and assigns it to the UserCount field.
func (o *TeamAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *TeamAttributes) UnsetDescription()
UnsetDescription ensures that no value is present for Description, not even an explicit nil.
func (o *TeamAttributes) UnsetSummary()
UnsetSummary ensures that no value is present for Summary, not even an explicit nil.
TeamCreate Team create
type TeamCreate struct {
// Team creation attributes
Attributes TeamCreateAttributes `json:"attributes"`
// Relationships formed with the team on creation
Relationships *TeamCreateRelationships `json:"relationships,omitempty"`
// Team type
Type TeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamCreate(attributes TeamCreateAttributes, typeVar TeamType) *TeamCreate
NewTeamCreate instantiates a new TeamCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamCreateWithDefaults() *TeamCreate
NewTeamCreateWithDefaults instantiates a new TeamCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamCreate) GetAttributes() TeamCreateAttributes
GetAttributes returns the Attributes field value.
func (o *TeamCreate) GetAttributesOk() (*TeamCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *TeamCreate) GetRelationships() TeamCreateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *TeamCreate) GetRelationshipsOk() (*TeamCreateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamCreate) GetType() TeamType
GetType returns the Type field value.
func (o *TeamCreate) GetTypeOk() (*TeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *TeamCreate) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o TeamCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamCreate) SetAttributes(v TeamCreateAttributes)
SetAttributes sets field value.
func (o *TeamCreate) SetRelationships(v TeamCreateRelationships)
SetRelationships gets a reference to the given TeamCreateRelationships and assigns it to the Relationships field.
func (o *TeamCreate) SetType(v TeamType)
SetType sets field value.
func (o *TeamCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamCreateAttributes Team creation attributes
type TeamCreateAttributes struct {
// Free-form markdown description/content for the team's homepage
Description *string `json:"description,omitempty"`
// The team's identifier
Handle string `json:"handle"`
// The name of the team
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamCreateAttributes(handle string, name string) *TeamCreateAttributes
NewTeamCreateAttributes instantiates a new TeamCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamCreateAttributesWithDefaults() *TeamCreateAttributes
NewTeamCreateAttributesWithDefaults instantiates a new TeamCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamCreateAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *TeamCreateAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamCreateAttributes) GetHandle() string
GetHandle returns the Handle field value.
func (o *TeamCreateAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value and a boolean to check if the value has been set.
func (o *TeamCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *TeamCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *TeamCreateAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o TeamCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamCreateAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *TeamCreateAttributes) SetHandle(v string)
SetHandle sets field value.
func (o *TeamCreateAttributes) SetName(v string)
SetName sets field value.
func (o *TeamCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamCreateRelationships Relationships formed with the team on creation
type TeamCreateRelationships struct {
// Relationship to users.
Users *RelationshipToUsers `json:"users,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamCreateRelationships() *TeamCreateRelationships
NewTeamCreateRelationships instantiates a new TeamCreateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamCreateRelationshipsWithDefaults() *TeamCreateRelationships
NewTeamCreateRelationshipsWithDefaults instantiates a new TeamCreateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamCreateRelationships) GetUsers() RelationshipToUsers
GetUsers returns the Users field value if set, zero value otherwise.
func (o *TeamCreateRelationships) GetUsersOk() (*RelationshipToUsers, bool)
GetUsersOk returns a tuple with the Users field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamCreateRelationships) HasUsers() bool
HasUsers returns a boolean if a field has been set.
func (o TeamCreateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamCreateRelationships) SetUsers(v RelationshipToUsers)
SetUsers gets a reference to the given RelationshipToUsers and assigns it to the Users field.
func (o *TeamCreateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamCreateRequest Request to create a team
type TeamCreateRequest struct {
// Team create
Data TeamCreate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamCreateRequest(data TeamCreate) *TeamCreateRequest
NewTeamCreateRequest instantiates a new TeamCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamCreateRequestWithDefaults() *TeamCreateRequest
NewTeamCreateRequestWithDefaults instantiates a new TeamCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamCreateRequest) GetData() TeamCreate
GetData returns the Data field value.
func (o *TeamCreateRequest) GetDataOk() (*TeamCreate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o TeamCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamCreateRequest) SetData(v TeamCreate)
SetData sets field value.
func (o *TeamCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamIncluded - Included resources related to the team
type TeamIncluded struct {
User *User
TeamLink *TeamLink
UserTeamPermission *UserTeamPermission
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func TeamLinkAsTeamIncluded(v *TeamLink) TeamIncluded
TeamLinkAsTeamIncluded is a convenience function that returns TeamLink wrapped in TeamIncluded.
func UserAsTeamIncluded(v *User) TeamIncluded
UserAsTeamIncluded is a convenience function that returns User wrapped in TeamIncluded.
func UserTeamPermissionAsTeamIncluded(v *UserTeamPermission) TeamIncluded
UserTeamPermissionAsTeamIncluded is a convenience function that returns UserTeamPermission wrapped in TeamIncluded.
func (obj *TeamIncluded) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj TeamIncluded) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *TeamIncluded) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
TeamLink Team link
type TeamLink struct {
// Team link attributes
Attributes TeamLinkAttributes `json:"attributes"`
// The team link's identifier
Id string `json:"id"`
// Team link type
Type TeamLinkType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamLink(attributes TeamLinkAttributes, id string, typeVar TeamLinkType) *TeamLink
NewTeamLink instantiates a new TeamLink object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamLinkWithDefaults() *TeamLink
NewTeamLinkWithDefaults instantiates a new TeamLink object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamLink) GetAttributes() TeamLinkAttributes
GetAttributes returns the Attributes field value.
func (o *TeamLink) GetAttributesOk() (*TeamLinkAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *TeamLink) GetId() string
GetId returns the Id field value.
func (o *TeamLink) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *TeamLink) GetType() TeamLinkType
GetType returns the Type field value.
func (o *TeamLink) GetTypeOk() (*TeamLinkType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o TeamLink) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamLink) SetAttributes(v TeamLinkAttributes)
SetAttributes sets field value.
func (o *TeamLink) SetId(v string)
SetId sets field value.
func (o *TeamLink) SetType(v TeamLinkType)
SetType sets field value.
func (o *TeamLink) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamLinkAttributes Team link attributes
type TeamLinkAttributes struct {
// The link's label
Label string `json:"label"`
// The link's position, used to sort links for the team
Position *int32 `json:"position,omitempty"`
// ID of the team the link is associated with
TeamId *string `json:"team_id,omitempty"`
// The URL for the link
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamLinkAttributes(label string, url string) *TeamLinkAttributes
NewTeamLinkAttributes instantiates a new TeamLinkAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamLinkAttributesWithDefaults() *TeamLinkAttributes
NewTeamLinkAttributesWithDefaults instantiates a new TeamLinkAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamLinkAttributes) GetLabel() string
GetLabel returns the Label field value.
func (o *TeamLinkAttributes) GetLabelOk() (*string, bool)
GetLabelOk returns a tuple with the Label field value and a boolean to check if the value has been set.
func (o *TeamLinkAttributes) GetPosition() int32
GetPosition returns the Position field value if set, zero value otherwise.
func (o *TeamLinkAttributes) GetPositionOk() (*int32, bool)
GetPositionOk returns a tuple with the Position field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamLinkAttributes) GetTeamId() string
GetTeamId returns the TeamId field value if set, zero value otherwise.
func (o *TeamLinkAttributes) GetTeamIdOk() (*string, bool)
GetTeamIdOk returns a tuple with the TeamId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamLinkAttributes) GetUrl() string
GetUrl returns the Url field value.
func (o *TeamLinkAttributes) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *TeamLinkAttributes) HasPosition() bool
HasPosition returns a boolean if a field has been set.
func (o *TeamLinkAttributes) HasTeamId() bool
HasTeamId returns a boolean if a field has been set.
func (o TeamLinkAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamLinkAttributes) SetLabel(v string)
SetLabel sets field value.
func (o *TeamLinkAttributes) SetPosition(v int32)
SetPosition gets a reference to the given int32 and assigns it to the Position field.
func (o *TeamLinkAttributes) SetTeamId(v string)
SetTeamId gets a reference to the given string and assigns it to the TeamId field.
func (o *TeamLinkAttributes) SetUrl(v string)
SetUrl sets field value.
func (o *TeamLinkAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamLinkCreate Team link create
type TeamLinkCreate struct {
// Team link attributes
Attributes TeamLinkAttributes `json:"attributes"`
// Team link type
Type TeamLinkType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamLinkCreate(attributes TeamLinkAttributes, typeVar TeamLinkType) *TeamLinkCreate
NewTeamLinkCreate instantiates a new TeamLinkCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamLinkCreateWithDefaults() *TeamLinkCreate
NewTeamLinkCreateWithDefaults instantiates a new TeamLinkCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamLinkCreate) GetAttributes() TeamLinkAttributes
GetAttributes returns the Attributes field value.
func (o *TeamLinkCreate) GetAttributesOk() (*TeamLinkAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *TeamLinkCreate) GetType() TeamLinkType
GetType returns the Type field value.
func (o *TeamLinkCreate) GetTypeOk() (*TeamLinkType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o TeamLinkCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamLinkCreate) SetAttributes(v TeamLinkAttributes)
SetAttributes sets field value.
func (o *TeamLinkCreate) SetType(v TeamLinkType)
SetType sets field value.
func (o *TeamLinkCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamLinkCreateRequest Team link create request
type TeamLinkCreateRequest struct {
// Team link create
Data TeamLinkCreate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamLinkCreateRequest(data TeamLinkCreate) *TeamLinkCreateRequest
NewTeamLinkCreateRequest instantiates a new TeamLinkCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamLinkCreateRequestWithDefaults() *TeamLinkCreateRequest
NewTeamLinkCreateRequestWithDefaults instantiates a new TeamLinkCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamLinkCreateRequest) GetData() TeamLinkCreate
GetData returns the Data field value.
func (o *TeamLinkCreateRequest) GetDataOk() (*TeamLinkCreate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o TeamLinkCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamLinkCreateRequest) SetData(v TeamLinkCreate)
SetData sets field value.
func (o *TeamLinkCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamLinkResponse Team link response
type TeamLinkResponse struct {
// Team link
Data *TeamLink `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamLinkResponse() *TeamLinkResponse
NewTeamLinkResponse instantiates a new TeamLinkResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamLinkResponseWithDefaults() *TeamLinkResponse
NewTeamLinkResponseWithDefaults instantiates a new TeamLinkResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamLinkResponse) GetData() TeamLink
GetData returns the Data field value if set, zero value otherwise.
func (o *TeamLinkResponse) GetDataOk() (*TeamLink, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamLinkResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o TeamLinkResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamLinkResponse) SetData(v TeamLink)
SetData gets a reference to the given TeamLink and assigns it to the Data field.
func (o *TeamLinkResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamLinkType Team link type
type TeamLinkType string
List of TeamLinkType.
const (
TEAMLINKTYPE_TEAM_LINKS TeamLinkType = "team_links"
)
func NewTeamLinkTypeFromValue(v string) (*TeamLinkType, error)
NewTeamLinkTypeFromValue returns a pointer to a valid TeamLinkType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *TeamLinkType) GetAllowedValues() []TeamLinkType
GetAllowedValues reeturns the list of possible values.
func (v TeamLinkType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v TeamLinkType) Ptr() *TeamLinkType
Ptr returns reference to TeamLinkType value.
func (v *TeamLinkType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
TeamLinksResponse Team links response
type TeamLinksResponse struct {
// Team links response data
Data []TeamLink `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamLinksResponse() *TeamLinksResponse
NewTeamLinksResponse instantiates a new TeamLinksResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamLinksResponseWithDefaults() *TeamLinksResponse
NewTeamLinksResponseWithDefaults instantiates a new TeamLinksResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamLinksResponse) GetData() []TeamLink
GetData returns the Data field value if set, zero value otherwise.
func (o *TeamLinksResponse) GetDataOk() (*[]TeamLink, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamLinksResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o TeamLinksResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamLinksResponse) SetData(v []TeamLink)
SetData gets a reference to the given []TeamLink and assigns it to the Data field.
func (o *TeamLinksResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamPermissionSetting Team permission setting
type TeamPermissionSetting struct {
// Team permission setting attributes
Attributes *TeamPermissionSettingAttributes `json:"attributes,omitempty"`
// The team permission setting's identifier
Id string `json:"id"`
// Team permission setting type
Type TeamPermissionSettingType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamPermissionSetting(id string, typeVar TeamPermissionSettingType) *TeamPermissionSetting
NewTeamPermissionSetting instantiates a new TeamPermissionSetting object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamPermissionSettingWithDefaults() *TeamPermissionSetting
NewTeamPermissionSettingWithDefaults instantiates a new TeamPermissionSetting object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamPermissionSetting) GetAttributes() TeamPermissionSettingAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *TeamPermissionSetting) GetAttributesOk() (*TeamPermissionSettingAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSetting) GetId() string
GetId returns the Id field value.
func (o *TeamPermissionSetting) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *TeamPermissionSetting) GetType() TeamPermissionSettingType
GetType returns the Type field value.
func (o *TeamPermissionSetting) GetTypeOk() (*TeamPermissionSettingType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *TeamPermissionSetting) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o TeamPermissionSetting) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamPermissionSetting) SetAttributes(v TeamPermissionSettingAttributes)
SetAttributes gets a reference to the given TeamPermissionSettingAttributes and assigns it to the Attributes field.
func (o *TeamPermissionSetting) SetId(v string)
SetId sets field value.
func (o *TeamPermissionSetting) SetType(v TeamPermissionSettingType)
SetType sets field value.
func (o *TeamPermissionSetting) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingAttributes Team permission setting attributes
type TeamPermissionSettingAttributes struct {
// The identifier for the action
Action *TeamPermissionSettingSerializerAction `json:"action,omitempty"`
// Whether or not the permission setting is editable by the current user
Editable *bool `json:"editable,omitempty"`
// Possible values for action
Options []TeamPermissionSettingValue `json:"options,omitempty"`
// The team permission name
Title *string `json:"title,omitempty"`
// What type of user is allowed to perform the specified action
Value *TeamPermissionSettingValue `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamPermissionSettingAttributes() *TeamPermissionSettingAttributes
NewTeamPermissionSettingAttributes instantiates a new TeamPermissionSettingAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamPermissionSettingAttributesWithDefaults() *TeamPermissionSettingAttributes
NewTeamPermissionSettingAttributesWithDefaults instantiates a new TeamPermissionSettingAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamPermissionSettingAttributes) GetAction() TeamPermissionSettingSerializerAction
GetAction returns the Action field value if set, zero value otherwise.
func (o *TeamPermissionSettingAttributes) GetActionOk() (*TeamPermissionSettingSerializerAction, bool)
GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingAttributes) GetEditable() bool
GetEditable returns the Editable field value if set, zero value otherwise.
func (o *TeamPermissionSettingAttributes) GetEditableOk() (*bool, bool)
GetEditableOk returns a tuple with the Editable field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingAttributes) GetOptions() []TeamPermissionSettingValue
GetOptions returns the Options field value if set, zero value otherwise.
func (o *TeamPermissionSettingAttributes) GetOptionsOk() (*[]TeamPermissionSettingValue, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *TeamPermissionSettingAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingAttributes) GetValue() TeamPermissionSettingValue
GetValue returns the Value field value if set, zero value otherwise.
func (o *TeamPermissionSettingAttributes) GetValueOk() (*TeamPermissionSettingValue, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingAttributes) HasAction() bool
HasAction returns a boolean if a field has been set.
func (o *TeamPermissionSettingAttributes) HasEditable() bool
HasEditable returns a boolean if a field has been set.
func (o *TeamPermissionSettingAttributes) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *TeamPermissionSettingAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *TeamPermissionSettingAttributes) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o TeamPermissionSettingAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamPermissionSettingAttributes) SetAction(v TeamPermissionSettingSerializerAction)
SetAction gets a reference to the given TeamPermissionSettingSerializerAction and assigns it to the Action field.
func (o *TeamPermissionSettingAttributes) SetEditable(v bool)
SetEditable gets a reference to the given bool and assigns it to the Editable field.
func (o *TeamPermissionSettingAttributes) SetOptions(v []TeamPermissionSettingValue)
SetOptions gets a reference to the given []TeamPermissionSettingValue and assigns it to the Options field.
func (o *TeamPermissionSettingAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *TeamPermissionSettingAttributes) SetValue(v TeamPermissionSettingValue)
SetValue gets a reference to the given TeamPermissionSettingValue and assigns it to the Value field.
func (o *TeamPermissionSettingAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingResponse Team permission setting response
type TeamPermissionSettingResponse struct {
// Team permission setting
Data *TeamPermissionSetting `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamPermissionSettingResponse() *TeamPermissionSettingResponse
NewTeamPermissionSettingResponse instantiates a new TeamPermissionSettingResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamPermissionSettingResponseWithDefaults() *TeamPermissionSettingResponse
NewTeamPermissionSettingResponseWithDefaults instantiates a new TeamPermissionSettingResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamPermissionSettingResponse) GetData() TeamPermissionSetting
GetData returns the Data field value if set, zero value otherwise.
func (o *TeamPermissionSettingResponse) GetDataOk() (*TeamPermissionSetting, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o TeamPermissionSettingResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamPermissionSettingResponse) SetData(v TeamPermissionSetting)
SetData gets a reference to the given TeamPermissionSetting and assigns it to the Data field.
func (o *TeamPermissionSettingResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingSerializerAction The identifier for the action
type TeamPermissionSettingSerializerAction string
List of TeamPermissionSettingSerializerAction.
const (
TEAMPERMISSIONSETTINGSERIALIZERACTION_MANAGE_MEMBERSHIP TeamPermissionSettingSerializerAction = "manage_membership"
TEAMPERMISSIONSETTINGSERIALIZERACTION_EDIT TeamPermissionSettingSerializerAction = "edit"
)
func NewTeamPermissionSettingSerializerActionFromValue(v string) (*TeamPermissionSettingSerializerAction, error)
NewTeamPermissionSettingSerializerActionFromValue returns a pointer to a valid TeamPermissionSettingSerializerAction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *TeamPermissionSettingSerializerAction) GetAllowedValues() []TeamPermissionSettingSerializerAction
GetAllowedValues reeturns the list of possible values.
func (v TeamPermissionSettingSerializerAction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v TeamPermissionSettingSerializerAction) Ptr() *TeamPermissionSettingSerializerAction
Ptr returns reference to TeamPermissionSettingSerializerAction value.
func (v *TeamPermissionSettingSerializerAction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingType Team permission setting type
type TeamPermissionSettingType string
List of TeamPermissionSettingType.
const (
TEAMPERMISSIONSETTINGTYPE_TEAM_PERMISSION_SETTINGS TeamPermissionSettingType = "team_permission_settings"
)
func NewTeamPermissionSettingTypeFromValue(v string) (*TeamPermissionSettingType, error)
NewTeamPermissionSettingTypeFromValue returns a pointer to a valid TeamPermissionSettingType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *TeamPermissionSettingType) GetAllowedValues() []TeamPermissionSettingType
GetAllowedValues reeturns the list of possible values.
func (v TeamPermissionSettingType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v TeamPermissionSettingType) Ptr() *TeamPermissionSettingType
Ptr returns reference to TeamPermissionSettingType value.
func (v *TeamPermissionSettingType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingUpdate Team permission setting update
type TeamPermissionSettingUpdate struct {
// Team permission setting update attributes
Attributes *TeamPermissionSettingUpdateAttributes `json:"attributes,omitempty"`
// Team permission setting type
Type TeamPermissionSettingType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamPermissionSettingUpdate(typeVar TeamPermissionSettingType) *TeamPermissionSettingUpdate
NewTeamPermissionSettingUpdate instantiates a new TeamPermissionSettingUpdate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamPermissionSettingUpdateWithDefaults() *TeamPermissionSettingUpdate
NewTeamPermissionSettingUpdateWithDefaults instantiates a new TeamPermissionSettingUpdate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamPermissionSettingUpdate) GetAttributes() TeamPermissionSettingUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *TeamPermissionSettingUpdate) GetAttributesOk() (*TeamPermissionSettingUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingUpdate) GetType() TeamPermissionSettingType
GetType returns the Type field value.
func (o *TeamPermissionSettingUpdate) GetTypeOk() (*TeamPermissionSettingType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *TeamPermissionSettingUpdate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o TeamPermissionSettingUpdate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamPermissionSettingUpdate) SetAttributes(v TeamPermissionSettingUpdateAttributes)
SetAttributes gets a reference to the given TeamPermissionSettingUpdateAttributes and assigns it to the Attributes field.
func (o *TeamPermissionSettingUpdate) SetType(v TeamPermissionSettingType)
SetType sets field value.
func (o *TeamPermissionSettingUpdate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingUpdateAttributes Team permission setting update attributes
type TeamPermissionSettingUpdateAttributes struct {
// What type of user is allowed to perform the specified action
Value *TeamPermissionSettingValue `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamPermissionSettingUpdateAttributes() *TeamPermissionSettingUpdateAttributes
NewTeamPermissionSettingUpdateAttributes instantiates a new TeamPermissionSettingUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamPermissionSettingUpdateAttributesWithDefaults() *TeamPermissionSettingUpdateAttributes
NewTeamPermissionSettingUpdateAttributesWithDefaults instantiates a new TeamPermissionSettingUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamPermissionSettingUpdateAttributes) GetValue() TeamPermissionSettingValue
GetValue returns the Value field value if set, zero value otherwise.
func (o *TeamPermissionSettingUpdateAttributes) GetValueOk() (*TeamPermissionSettingValue, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingUpdateAttributes) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o TeamPermissionSettingUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamPermissionSettingUpdateAttributes) SetValue(v TeamPermissionSettingValue)
SetValue gets a reference to the given TeamPermissionSettingValue and assigns it to the Value field.
func (o *TeamPermissionSettingUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingUpdateRequest Team permission setting update request
type TeamPermissionSettingUpdateRequest struct {
// Team permission setting update
Data TeamPermissionSettingUpdate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamPermissionSettingUpdateRequest(data TeamPermissionSettingUpdate) *TeamPermissionSettingUpdateRequest
NewTeamPermissionSettingUpdateRequest instantiates a new TeamPermissionSettingUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamPermissionSettingUpdateRequestWithDefaults() *TeamPermissionSettingUpdateRequest
NewTeamPermissionSettingUpdateRequestWithDefaults instantiates a new TeamPermissionSettingUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamPermissionSettingUpdateRequest) GetData() TeamPermissionSettingUpdate
GetData returns the Data field value.
func (o *TeamPermissionSettingUpdateRequest) GetDataOk() (*TeamPermissionSettingUpdate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o TeamPermissionSettingUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamPermissionSettingUpdateRequest) SetData(v TeamPermissionSettingUpdate)
SetData sets field value.
func (o *TeamPermissionSettingUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingValue What type of user is allowed to perform the specified action
type TeamPermissionSettingValue string
List of TeamPermissionSettingValue.
const (
TEAMPERMISSIONSETTINGVALUE_ADMINS TeamPermissionSettingValue = "admins"
TEAMPERMISSIONSETTINGVALUE_MEMBERS TeamPermissionSettingValue = "members"
TEAMPERMISSIONSETTINGVALUE_ORGANIZATION TeamPermissionSettingValue = "organization"
TEAMPERMISSIONSETTINGVALUE_USER_ACCESS_MANAGE TeamPermissionSettingValue = "user_access_manage"
TEAMPERMISSIONSETTINGVALUE_TEAMS_MANAGE TeamPermissionSettingValue = "teams_manage"
)
func NewTeamPermissionSettingValueFromValue(v string) (*TeamPermissionSettingValue, error)
NewTeamPermissionSettingValueFromValue returns a pointer to a valid TeamPermissionSettingValue for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *TeamPermissionSettingValue) GetAllowedValues() []TeamPermissionSettingValue
GetAllowedValues reeturns the list of possible values.
func (v TeamPermissionSettingValue) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v TeamPermissionSettingValue) Ptr() *TeamPermissionSettingValue
Ptr returns reference to TeamPermissionSettingValue value.
func (v *TeamPermissionSettingValue) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
TeamPermissionSettingsResponse Team permission settings response
type TeamPermissionSettingsResponse struct {
// Team permission settings response data
Data []TeamPermissionSetting `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamPermissionSettingsResponse() *TeamPermissionSettingsResponse
NewTeamPermissionSettingsResponse instantiates a new TeamPermissionSettingsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamPermissionSettingsResponseWithDefaults() *TeamPermissionSettingsResponse
NewTeamPermissionSettingsResponseWithDefaults instantiates a new TeamPermissionSettingsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamPermissionSettingsResponse) GetData() []TeamPermissionSetting
GetData returns the Data field value if set, zero value otherwise.
func (o *TeamPermissionSettingsResponse) GetDataOk() (*[]TeamPermissionSetting, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamPermissionSettingsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o TeamPermissionSettingsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamPermissionSettingsResponse) SetData(v []TeamPermissionSetting)
SetData gets a reference to the given []TeamPermissionSetting and assigns it to the Data field.
func (o *TeamPermissionSettingsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamRelationships Resources related to a team
type TeamRelationships struct {
// Relationship between a team and a team link
TeamLinks *RelationshipToTeamLinks `json:"team_links,omitempty"`
// Relationship between a user team permission and a team
UserTeamPermissions *RelationshipToUserTeamPermission `json:"user_team_permissions,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamRelationships() *TeamRelationships
NewTeamRelationships instantiates a new TeamRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamRelationshipsWithDefaults() *TeamRelationships
NewTeamRelationshipsWithDefaults instantiates a new TeamRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamRelationships) GetTeamLinks() RelationshipToTeamLinks
GetTeamLinks returns the TeamLinks field value if set, zero value otherwise.
func (o *TeamRelationships) GetTeamLinksOk() (*RelationshipToTeamLinks, bool)
GetTeamLinksOk returns a tuple with the TeamLinks field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamRelationships) GetUserTeamPermissions() RelationshipToUserTeamPermission
GetUserTeamPermissions returns the UserTeamPermissions field value if set, zero value otherwise.
func (o *TeamRelationships) GetUserTeamPermissionsOk() (*RelationshipToUserTeamPermission, bool)
GetUserTeamPermissionsOk returns a tuple with the UserTeamPermissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamRelationships) HasTeamLinks() bool
HasTeamLinks returns a boolean if a field has been set.
func (o *TeamRelationships) HasUserTeamPermissions() bool
HasUserTeamPermissions returns a boolean if a field has been set.
func (o TeamRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamRelationships) SetTeamLinks(v RelationshipToTeamLinks)
SetTeamLinks gets a reference to the given RelationshipToTeamLinks and assigns it to the TeamLinks field.
func (o *TeamRelationships) SetUserTeamPermissions(v RelationshipToUserTeamPermission)
SetUserTeamPermissions gets a reference to the given RelationshipToUserTeamPermission and assigns it to the UserTeamPermissions field.
func (o *TeamRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamRelationshipsLinks Links attributes.
type TeamRelationshipsLinks struct {
// Related link.
Related *string `json:"related,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamRelationshipsLinks() *TeamRelationshipsLinks
NewTeamRelationshipsLinks instantiates a new TeamRelationshipsLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamRelationshipsLinksWithDefaults() *TeamRelationshipsLinks
NewTeamRelationshipsLinksWithDefaults instantiates a new TeamRelationshipsLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamRelationshipsLinks) GetRelated() string
GetRelated returns the Related field value if set, zero value otherwise.
func (o *TeamRelationshipsLinks) GetRelatedOk() (*string, bool)
GetRelatedOk returns a tuple with the Related field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamRelationshipsLinks) HasRelated() bool
HasRelated returns a boolean if a field has been set.
func (o TeamRelationshipsLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamRelationshipsLinks) SetRelated(v string)
SetRelated gets a reference to the given string and assigns it to the Related field.
func (o *TeamRelationshipsLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamResponse Response with a team
type TeamResponse struct {
// A team
Data *Team `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamResponse() *TeamResponse
NewTeamResponse instantiates a new TeamResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamResponseWithDefaults() *TeamResponse
NewTeamResponseWithDefaults instantiates a new TeamResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamResponse) GetData() Team
GetData returns the Data field value if set, zero value otherwise.
func (o *TeamResponse) GetDataOk() (*Team, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o TeamResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamResponse) SetData(v Team)
SetData gets a reference to the given Team and assigns it to the Data field.
func (o *TeamResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamType Team type
type TeamType string
List of TeamType.
const (
TEAMTYPE_TEAM TeamType = "team"
)
func NewTeamTypeFromValue(v string) (*TeamType, error)
NewTeamTypeFromValue returns a pointer to a valid TeamType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *TeamType) GetAllowedValues() []TeamType
GetAllowedValues reeturns the list of possible values.
func (v TeamType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v TeamType) Ptr() *TeamType
Ptr returns reference to TeamType value.
func (v *TeamType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
TeamUpdate Team update request
type TeamUpdate struct {
// Team update attributes
Attributes TeamUpdateAttributes `json:"attributes"`
// Team update relationships
Relationships *TeamUpdateRelationships `json:"relationships,omitempty"`
// Team type
Type TeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamUpdate(attributes TeamUpdateAttributes, typeVar TeamType) *TeamUpdate
NewTeamUpdate instantiates a new TeamUpdate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamUpdateWithDefaults() *TeamUpdate
NewTeamUpdateWithDefaults instantiates a new TeamUpdate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamUpdate) GetAttributes() TeamUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *TeamUpdate) GetAttributesOk() (*TeamUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *TeamUpdate) GetRelationships() TeamUpdateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *TeamUpdate) GetRelationshipsOk() (*TeamUpdateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamUpdate) GetType() TeamType
GetType returns the Type field value.
func (o *TeamUpdate) GetTypeOk() (*TeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *TeamUpdate) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o TeamUpdate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamUpdate) SetAttributes(v TeamUpdateAttributes)
SetAttributes sets field value.
func (o *TeamUpdate) SetRelationships(v TeamUpdateRelationships)
SetRelationships gets a reference to the given TeamUpdateRelationships and assigns it to the Relationships field.
func (o *TeamUpdate) SetType(v TeamType)
SetType sets field value.
func (o *TeamUpdate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamUpdateAttributes Team update attributes
type TeamUpdateAttributes struct {
// An identifier for the color representing the team
Color *int32 `json:"color,omitempty"`
// Free-form markdown description/content for the team's homepage
Description *string `json:"description,omitempty"`
// The team's identifier
Handle string `json:"handle"`
// The name of the team
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamUpdateAttributes(handle string, name string) *TeamUpdateAttributes
NewTeamUpdateAttributes instantiates a new TeamUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamUpdateAttributesWithDefaults() *TeamUpdateAttributes
NewTeamUpdateAttributesWithDefaults instantiates a new TeamUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamUpdateAttributes) GetColor() int32
GetColor returns the Color field value if set, zero value otherwise.
func (o *TeamUpdateAttributes) GetColorOk() (*int32, bool)
GetColorOk returns a tuple with the Color field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamUpdateAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *TeamUpdateAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamUpdateAttributes) GetHandle() string
GetHandle returns the Handle field value.
func (o *TeamUpdateAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value and a boolean to check if the value has been set.
func (o *TeamUpdateAttributes) GetName() string
GetName returns the Name field value.
func (o *TeamUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *TeamUpdateAttributes) HasColor() bool
HasColor returns a boolean if a field has been set.
func (o *TeamUpdateAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o TeamUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamUpdateAttributes) SetColor(v int32)
SetColor gets a reference to the given int32 and assigns it to the Color field.
func (o *TeamUpdateAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *TeamUpdateAttributes) SetHandle(v string)
SetHandle sets field value.
func (o *TeamUpdateAttributes) SetName(v string)
SetName sets field value.
func (o *TeamUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamUpdateRelationships Team update relationships
type TeamUpdateRelationships struct {
// Relationship between a team and a team link
TeamLinks *RelationshipToTeamLinks `json:"team_links,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamUpdateRelationships() *TeamUpdateRelationships
NewTeamUpdateRelationships instantiates a new TeamUpdateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamUpdateRelationshipsWithDefaults() *TeamUpdateRelationships
NewTeamUpdateRelationshipsWithDefaults instantiates a new TeamUpdateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamUpdateRelationships) GetTeamLinks() RelationshipToTeamLinks
GetTeamLinks returns the TeamLinks field value if set, zero value otherwise.
func (o *TeamUpdateRelationships) GetTeamLinksOk() (*RelationshipToTeamLinks, bool)
GetTeamLinksOk returns a tuple with the TeamLinks field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamUpdateRelationships) HasTeamLinks() bool
HasTeamLinks returns a boolean if a field has been set.
func (o TeamUpdateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamUpdateRelationships) SetTeamLinks(v RelationshipToTeamLinks)
SetTeamLinks gets a reference to the given RelationshipToTeamLinks and assigns it to the TeamLinks field.
func (o *TeamUpdateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamUpdateRequest Team update request
type TeamUpdateRequest struct {
// Team update request
Data TeamUpdate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamUpdateRequest(data TeamUpdate) *TeamUpdateRequest
NewTeamUpdateRequest instantiates a new TeamUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamUpdateRequestWithDefaults() *TeamUpdateRequest
NewTeamUpdateRequestWithDefaults instantiates a new TeamUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamUpdateRequest) GetData() TeamUpdate
GetData returns the Data field value.
func (o *TeamUpdateRequest) GetDataOk() (*TeamUpdate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o TeamUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamUpdateRequest) SetData(v TeamUpdate)
SetData sets field value.
func (o *TeamUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamsApi service type
type TeamsApi datadog.Service
func NewTeamsApi(client *datadog.APIClient) *TeamsApi
NewTeamsApi Returns NewTeamsApi.
func (a *TeamsApi) CreateTeam(ctx _context.Context, body TeamCreateRequest) (TeamResponse, *_nethttp.Response, error)
CreateTeam Create a team. Create a new team. User IDs passed through the `users` relationship field are added to the team.
func (a *TeamsApi) CreateTeamLink(ctx _context.Context, teamId string, body TeamLinkCreateRequest) (TeamLinkResponse, *_nethttp.Response, error)
CreateTeamLink Create a team link. Add a new link to a team.
func (a *TeamsApi) CreateTeamMembership(ctx _context.Context, teamId string, body UserTeamRequest) (UserTeamResponse, *_nethttp.Response, error)
CreateTeamMembership Add a user to a team. Add a user to a team.
func (a *TeamsApi) DeleteTeam(ctx _context.Context, teamId string) (*_nethttp.Response, error)
DeleteTeam Remove a team. Remove a team using the team's `id`.
func (a *TeamsApi) DeleteTeamLink(ctx _context.Context, teamId string, linkId string) (*_nethttp.Response, error)
DeleteTeamLink Remove a team link. Remove a link from a team.
func (a *TeamsApi) DeleteTeamMembership(ctx _context.Context, teamId string, userId string) (*_nethttp.Response, error)
DeleteTeamMembership Remove a user from a team. Remove a user from a team.
func (a *TeamsApi) GetTeam(ctx _context.Context, teamId string) (TeamResponse, *_nethttp.Response, error)
GetTeam Get a team. Get a single team using the team's `id`.
func (a *TeamsApi) GetTeamLink(ctx _context.Context, teamId string, linkId string) (TeamLinkResponse, *_nethttp.Response, error)
GetTeamLink Get a team link. Get a single link for a team.
func (a *TeamsApi) GetTeamLinks(ctx _context.Context, teamId string) (TeamLinksResponse, *_nethttp.Response, error)
GetTeamLinks Get links for a team. Get all links for a given team.
func (a *TeamsApi) GetTeamMemberships(ctx _context.Context, teamId string, o ...GetTeamMembershipsOptionalParameters) (UserTeamsResponse, *_nethttp.Response, error)
GetTeamMemberships Get team memberships. Get a paginated list of members for a team
func (a *TeamsApi) GetTeamPermissionSettings(ctx _context.Context, teamId string) (TeamPermissionSettingsResponse, *_nethttp.Response, error)
GetTeamPermissionSettings Get permission settings for a team. Get all permission settings for a given team.
func (a *TeamsApi) ListTeams(ctx _context.Context, o ...ListTeamsOptionalParameters) (TeamsResponse, *_nethttp.Response, error)
ListTeams Get all teams. Get all teams. Can be used to search for teams using the `filter[keyword]` and `filter[me]` query parameters.
func (a *TeamsApi) UpdateTeam(ctx _context.Context, teamId string, body TeamUpdateRequest) (TeamResponse, *_nethttp.Response, error)
UpdateTeam Update a team. Update a team using the team's `id`. If the `team_links` relationship is present, the associated links are updated to be in the order they appear in the array, and any existing team links not present are removed.
func (a *TeamsApi) UpdateTeamLink(ctx _context.Context, teamId string, linkId string, body TeamLinkCreateRequest) (TeamLinkResponse, *_nethttp.Response, error)
UpdateTeamLink Update a team link. Update a team link.
func (a *TeamsApi) UpdateTeamMembership(ctx _context.Context, teamId string, userId string, body UserTeamUpdateRequest) (UserTeamResponse, *_nethttp.Response, error)
UpdateTeamMembership Update a user's membership attributes on a team. Update a user's membership attributes on a team.
func (a *TeamsApi) UpdateTeamPermissionSetting(ctx _context.Context, teamId string, action string, body TeamPermissionSettingUpdateRequest) (TeamPermissionSettingResponse, *_nethttp.Response, error)
UpdateTeamPermissionSetting Update permission setting for team. Update a team permission setting for a given team.
TeamsResponse Response with multiple teams
type TeamsResponse struct {
// Teams response data
Data []Team `json:"data,omitempty"`
// Resources related to the team
Included []TeamIncluded `json:"included,omitempty"`
// Teams response links.
Links *TeamsResponseLinks `json:"links,omitempty"`
// Teams response metadata.
Meta *TeamsResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamsResponse() *TeamsResponse
NewTeamsResponse instantiates a new TeamsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamsResponseWithDefaults() *TeamsResponse
NewTeamsResponseWithDefaults instantiates a new TeamsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamsResponse) GetData() []Team
GetData returns the Data field value if set, zero value otherwise.
func (o *TeamsResponse) GetDataOk() (*[]Team, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponse) GetIncluded() []TeamIncluded
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *TeamsResponse) GetIncludedOk() (*[]TeamIncluded, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponse) GetLinks() TeamsResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *TeamsResponse) GetLinksOk() (*TeamsResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponse) GetMeta() TeamsResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *TeamsResponse) GetMetaOk() (*TeamsResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *TeamsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *TeamsResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *TeamsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o TeamsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamsResponse) SetData(v []Team)
SetData gets a reference to the given []Team and assigns it to the Data field.
func (o *TeamsResponse) SetIncluded(v []TeamIncluded)
SetIncluded gets a reference to the given []TeamIncluded and assigns it to the Included field.
func (o *TeamsResponse) SetLinks(v TeamsResponseLinks)
SetLinks gets a reference to the given TeamsResponseLinks and assigns it to the Links field.
func (o *TeamsResponse) SetMeta(v TeamsResponseMeta)
SetMeta gets a reference to the given TeamsResponseMeta and assigns it to the Meta field.
func (o *TeamsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamsResponseLinks Teams response links.
type TeamsResponseLinks struct {
// First link.
First *string `json:"first,omitempty"`
// Last link.
Last datadog.NullableString `json:"last,omitempty"`
// Next link.
Next *string `json:"next,omitempty"`
// Previous link.
Prev datadog.NullableString `json:"prev,omitempty"`
// Current link.
Self *string `json:"self,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamsResponseLinks() *TeamsResponseLinks
NewTeamsResponseLinks instantiates a new TeamsResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamsResponseLinksWithDefaults() *TeamsResponseLinks
NewTeamsResponseLinksWithDefaults instantiates a new TeamsResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamsResponseLinks) GetFirst() string
GetFirst returns the First field value if set, zero value otherwise.
func (o *TeamsResponseLinks) GetFirstOk() (*string, bool)
GetFirstOk returns a tuple with the First field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseLinks) GetLast() string
GetLast returns the Last field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TeamsResponseLinks) GetLastOk() (*string, bool)
GetLastOk returns a tuple with the Last field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *TeamsResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *TeamsResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseLinks) GetPrev() string
GetPrev returns the Prev field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TeamsResponseLinks) GetPrevOk() (*string, bool)
GetPrevOk returns a tuple with the Prev field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *TeamsResponseLinks) GetSelf() string
GetSelf returns the Self field value if set, zero value otherwise.
func (o *TeamsResponseLinks) GetSelfOk() (*string, bool)
GetSelfOk returns a tuple with the Self field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseLinks) HasFirst() bool
HasFirst returns a boolean if a field has been set.
func (o *TeamsResponseLinks) HasLast() bool
HasLast returns a boolean if a field has been set.
func (o *TeamsResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o *TeamsResponseLinks) HasPrev() bool
HasPrev returns a boolean if a field has been set.
func (o *TeamsResponseLinks) HasSelf() bool
HasSelf returns a boolean if a field has been set.
func (o TeamsResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamsResponseLinks) SetFirst(v string)
SetFirst gets a reference to the given string and assigns it to the First field.
func (o *TeamsResponseLinks) SetLast(v string)
SetLast gets a reference to the given datadog.NullableString and assigns it to the Last field.
func (o *TeamsResponseLinks) SetLastNil()
SetLastNil sets the value for Last to be an explicit nil.
func (o *TeamsResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *TeamsResponseLinks) SetPrev(v string)
SetPrev gets a reference to the given datadog.NullableString and assigns it to the Prev field.
func (o *TeamsResponseLinks) SetPrevNil()
SetPrevNil sets the value for Prev to be an explicit nil.
func (o *TeamsResponseLinks) SetSelf(v string)
SetSelf gets a reference to the given string and assigns it to the Self field.
func (o *TeamsResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *TeamsResponseLinks) UnsetLast()
UnsetLast ensures that no value is present for Last, not even an explicit nil.
func (o *TeamsResponseLinks) UnsetPrev()
UnsetPrev ensures that no value is present for Prev, not even an explicit nil.
TeamsResponseMeta Teams response metadata.
type TeamsResponseMeta struct {
// Teams response metadata.
Pagination *TeamsResponseMetaPagination `json:"pagination,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamsResponseMeta() *TeamsResponseMeta
NewTeamsResponseMeta instantiates a new TeamsResponseMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamsResponseMetaWithDefaults() *TeamsResponseMeta
NewTeamsResponseMetaWithDefaults instantiates a new TeamsResponseMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamsResponseMeta) GetPagination() TeamsResponseMetaPagination
GetPagination returns the Pagination field value if set, zero value otherwise.
func (o *TeamsResponseMeta) GetPaginationOk() (*TeamsResponseMetaPagination, bool)
GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMeta) HasPagination() bool
HasPagination returns a boolean if a field has been set.
func (o TeamsResponseMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamsResponseMeta) SetPagination(v TeamsResponseMetaPagination)
SetPagination gets a reference to the given TeamsResponseMetaPagination and assigns it to the Pagination field.
func (o *TeamsResponseMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TeamsResponseMetaPagination Teams response metadata.
type TeamsResponseMetaPagination struct {
// The first offset.
FirstOffset *int64 `json:"first_offset,omitempty"`
// The last offset.
LastOffset *int64 `json:"last_offset,omitempty"`
// Pagination limit.
Limit *int64 `json:"limit,omitempty"`
// The next offset.
NextOffset *int64 `json:"next_offset,omitempty"`
// The offset.
Offset *int64 `json:"offset,omitempty"`
// The previous offset.
PrevOffset *int64 `json:"prev_offset,omitempty"`
// Total results.
Total *int64 `json:"total,omitempty"`
// Offset type.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTeamsResponseMetaPagination() *TeamsResponseMetaPagination
NewTeamsResponseMetaPagination instantiates a new TeamsResponseMetaPagination object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTeamsResponseMetaPaginationWithDefaults() *TeamsResponseMetaPagination
NewTeamsResponseMetaPaginationWithDefaults instantiates a new TeamsResponseMetaPagination object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TeamsResponseMetaPagination) GetFirstOffset() int64
GetFirstOffset returns the FirstOffset field value if set, zero value otherwise.
func (o *TeamsResponseMetaPagination) GetFirstOffsetOk() (*int64, bool)
GetFirstOffsetOk returns a tuple with the FirstOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMetaPagination) GetLastOffset() int64
GetLastOffset returns the LastOffset field value if set, zero value otherwise.
func (o *TeamsResponseMetaPagination) GetLastOffsetOk() (*int64, bool)
GetLastOffsetOk returns a tuple with the LastOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMetaPagination) GetLimit() int64
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *TeamsResponseMetaPagination) GetLimitOk() (*int64, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMetaPagination) GetNextOffset() int64
GetNextOffset returns the NextOffset field value if set, zero value otherwise.
func (o *TeamsResponseMetaPagination) GetNextOffsetOk() (*int64, bool)
GetNextOffsetOk returns a tuple with the NextOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMetaPagination) GetOffset() int64
GetOffset returns the Offset field value if set, zero value otherwise.
func (o *TeamsResponseMetaPagination) GetOffsetOk() (*int64, bool)
GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMetaPagination) GetPrevOffset() int64
GetPrevOffset returns the PrevOffset field value if set, zero value otherwise.
func (o *TeamsResponseMetaPagination) GetPrevOffsetOk() (*int64, bool)
GetPrevOffsetOk returns a tuple with the PrevOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMetaPagination) GetTotal() int64
GetTotal returns the Total field value if set, zero value otherwise.
func (o *TeamsResponseMetaPagination) GetTotalOk() (*int64, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMetaPagination) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *TeamsResponseMetaPagination) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TeamsResponseMetaPagination) HasFirstOffset() bool
HasFirstOffset returns a boolean if a field has been set.
func (o *TeamsResponseMetaPagination) HasLastOffset() bool
HasLastOffset returns a boolean if a field has been set.
func (o *TeamsResponseMetaPagination) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *TeamsResponseMetaPagination) HasNextOffset() bool
HasNextOffset returns a boolean if a field has been set.
func (o *TeamsResponseMetaPagination) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *TeamsResponseMetaPagination) HasPrevOffset() bool
HasPrevOffset returns a boolean if a field has been set.
func (o *TeamsResponseMetaPagination) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o *TeamsResponseMetaPagination) HasType() bool
HasType returns a boolean if a field has been set.
func (o TeamsResponseMetaPagination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TeamsResponseMetaPagination) SetFirstOffset(v int64)
SetFirstOffset gets a reference to the given int64 and assigns it to the FirstOffset field.
func (o *TeamsResponseMetaPagination) SetLastOffset(v int64)
SetLastOffset gets a reference to the given int64 and assigns it to the LastOffset field.
func (o *TeamsResponseMetaPagination) SetLimit(v int64)
SetLimit gets a reference to the given int64 and assigns it to the Limit field.
func (o *TeamsResponseMetaPagination) SetNextOffset(v int64)
SetNextOffset gets a reference to the given int64 and assigns it to the NextOffset field.
func (o *TeamsResponseMetaPagination) SetOffset(v int64)
SetOffset gets a reference to the given int64 and assigns it to the Offset field.
func (o *TeamsResponseMetaPagination) SetPrevOffset(v int64)
SetPrevOffset gets a reference to the given int64 and assigns it to the PrevOffset field.
func (o *TeamsResponseMetaPagination) SetTotal(v int64)
SetTotal gets a reference to the given int64 and assigns it to the Total field.
func (o *TeamsResponseMetaPagination) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *TeamsResponseMetaPagination) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TimeseriesFormulaQueryRequest A request wrapper around a single timeseries query to be executed.
type TimeseriesFormulaQueryRequest struct {
// A single timeseries query to be executed.
Data TimeseriesFormulaRequest `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTimeseriesFormulaQueryRequest(data TimeseriesFormulaRequest) *TimeseriesFormulaQueryRequest
NewTimeseriesFormulaQueryRequest instantiates a new TimeseriesFormulaQueryRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTimeseriesFormulaQueryRequestWithDefaults() *TimeseriesFormulaQueryRequest
NewTimeseriesFormulaQueryRequestWithDefaults instantiates a new TimeseriesFormulaQueryRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TimeseriesFormulaQueryRequest) GetData() TimeseriesFormulaRequest
GetData returns the Data field value.
func (o *TimeseriesFormulaQueryRequest) GetDataOk() (*TimeseriesFormulaRequest, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o TimeseriesFormulaQueryRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TimeseriesFormulaQueryRequest) SetData(v TimeseriesFormulaRequest)
SetData sets field value.
func (o *TimeseriesFormulaQueryRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TimeseriesFormulaQueryResponse A message containing one response to a timeseries query made with timeseries formula query request.
type TimeseriesFormulaQueryResponse struct {
// A message containing the response to a timeseries query.
Data *TimeseriesResponse `json:"data,omitempty"`
// The error generated by the request.
Errors *string `json:"errors,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTimeseriesFormulaQueryResponse() *TimeseriesFormulaQueryResponse
NewTimeseriesFormulaQueryResponse instantiates a new TimeseriesFormulaQueryResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTimeseriesFormulaQueryResponseWithDefaults() *TimeseriesFormulaQueryResponse
NewTimeseriesFormulaQueryResponseWithDefaults instantiates a new TimeseriesFormulaQueryResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TimeseriesFormulaQueryResponse) GetData() TimeseriesResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *TimeseriesFormulaQueryResponse) GetDataOk() (*TimeseriesResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesFormulaQueryResponse) GetErrors() string
GetErrors returns the Errors field value if set, zero value otherwise.
func (o *TimeseriesFormulaQueryResponse) GetErrorsOk() (*string, bool)
GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesFormulaQueryResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *TimeseriesFormulaQueryResponse) HasErrors() bool
HasErrors returns a boolean if a field has been set.
func (o TimeseriesFormulaQueryResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TimeseriesFormulaQueryResponse) SetData(v TimeseriesResponse)
SetData gets a reference to the given TimeseriesResponse and assigns it to the Data field.
func (o *TimeseriesFormulaQueryResponse) SetErrors(v string)
SetErrors gets a reference to the given string and assigns it to the Errors field.
func (o *TimeseriesFormulaQueryResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TimeseriesFormulaRequest A single timeseries query to be executed.
type TimeseriesFormulaRequest struct {
// The object describing a timeseries formula request.
Attributes TimeseriesFormulaRequestAttributes `json:"attributes"`
// The type of the resource. The value should always be timeseries_request.
Type TimeseriesFormulaRequestType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTimeseriesFormulaRequest(attributes TimeseriesFormulaRequestAttributes, typeVar TimeseriesFormulaRequestType) *TimeseriesFormulaRequest
NewTimeseriesFormulaRequest instantiates a new TimeseriesFormulaRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTimeseriesFormulaRequestWithDefaults() *TimeseriesFormulaRequest
NewTimeseriesFormulaRequestWithDefaults instantiates a new TimeseriesFormulaRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TimeseriesFormulaRequest) GetAttributes() TimeseriesFormulaRequestAttributes
GetAttributes returns the Attributes field value.
func (o *TimeseriesFormulaRequest) GetAttributesOk() (*TimeseriesFormulaRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *TimeseriesFormulaRequest) GetType() TimeseriesFormulaRequestType
GetType returns the Type field value.
func (o *TimeseriesFormulaRequest) GetTypeOk() (*TimeseriesFormulaRequestType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o TimeseriesFormulaRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TimeseriesFormulaRequest) SetAttributes(v TimeseriesFormulaRequestAttributes)
SetAttributes sets field value.
func (o *TimeseriesFormulaRequest) SetType(v TimeseriesFormulaRequestType)
SetType sets field value.
func (o *TimeseriesFormulaRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TimeseriesFormulaRequestAttributes The object describing a timeseries formula request.
type TimeseriesFormulaRequestAttributes struct {
// List of formulas to be calculated and returned as responses.
Formulas []QueryFormula `json:"formulas,omitempty"`
// Start date (inclusive) of the query in milliseconds since the Unix epoch.
From int64 `json:"from"`
// A time interval in milliseconds.
// May be overridden by a larger interval if the query would result in
// too many points for the specified timeframe.
// Defaults to a reasonable interval for the given timeframe.
Interval *int64 `json:"interval,omitempty"`
// List of queries to be run and used as inputs to the formulas.
Queries []TimeseriesQuery `json:"queries"`
// End date (exclusive) of the query in milliseconds since the Unix epoch.
To int64 `json:"to"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTimeseriesFormulaRequestAttributes(from int64, queries []TimeseriesQuery, to int64) *TimeseriesFormulaRequestAttributes
NewTimeseriesFormulaRequestAttributes instantiates a new TimeseriesFormulaRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTimeseriesFormulaRequestAttributesWithDefaults() *TimeseriesFormulaRequestAttributes
NewTimeseriesFormulaRequestAttributesWithDefaults instantiates a new TimeseriesFormulaRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TimeseriesFormulaRequestAttributes) GetFormulas() []QueryFormula
GetFormulas returns the Formulas field value if set, zero value otherwise.
func (o *TimeseriesFormulaRequestAttributes) GetFormulasOk() (*[]QueryFormula, bool)
GetFormulasOk returns a tuple with the Formulas field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesFormulaRequestAttributes) GetFrom() int64
GetFrom returns the From field value.
func (o *TimeseriesFormulaRequestAttributes) GetFromOk() (*int64, bool)
GetFromOk returns a tuple with the From field value and a boolean to check if the value has been set.
func (o *TimeseriesFormulaRequestAttributes) GetInterval() int64
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *TimeseriesFormulaRequestAttributes) GetIntervalOk() (*int64, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesFormulaRequestAttributes) GetQueries() []TimeseriesQuery
GetQueries returns the Queries field value.
func (o *TimeseriesFormulaRequestAttributes) GetQueriesOk() (*[]TimeseriesQuery, bool)
GetQueriesOk returns a tuple with the Queries field value and a boolean to check if the value has been set.
func (o *TimeseriesFormulaRequestAttributes) GetTo() int64
GetTo returns the To field value.
func (o *TimeseriesFormulaRequestAttributes) GetToOk() (*int64, bool)
GetToOk returns a tuple with the To field value and a boolean to check if the value has been set.
func (o *TimeseriesFormulaRequestAttributes) HasFormulas() bool
HasFormulas returns a boolean if a field has been set.
func (o *TimeseriesFormulaRequestAttributes) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o TimeseriesFormulaRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TimeseriesFormulaRequestAttributes) SetFormulas(v []QueryFormula)
SetFormulas gets a reference to the given []QueryFormula and assigns it to the Formulas field.
func (o *TimeseriesFormulaRequestAttributes) SetFrom(v int64)
SetFrom sets field value.
func (o *TimeseriesFormulaRequestAttributes) SetInterval(v int64)
SetInterval gets a reference to the given int64 and assigns it to the Interval field.
func (o *TimeseriesFormulaRequestAttributes) SetQueries(v []TimeseriesQuery)
SetQueries sets field value.
func (o *TimeseriesFormulaRequestAttributes) SetTo(v int64)
SetTo sets field value.
func (o *TimeseriesFormulaRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TimeseriesFormulaRequestType The type of the resource. The value should always be timeseries_request.
type TimeseriesFormulaRequestType string
List of TimeseriesFormulaRequestType.
const (
TIMESERIESFORMULAREQUESTTYPE_TIMESERIES_REQUEST TimeseriesFormulaRequestType = "timeseries_request"
)
func NewTimeseriesFormulaRequestTypeFromValue(v string) (*TimeseriesFormulaRequestType, error)
NewTimeseriesFormulaRequestTypeFromValue returns a pointer to a valid TimeseriesFormulaRequestType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *TimeseriesFormulaRequestType) GetAllowedValues() []TimeseriesFormulaRequestType
GetAllowedValues reeturns the list of possible values.
func (v TimeseriesFormulaRequestType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v TimeseriesFormulaRequestType) Ptr() *TimeseriesFormulaRequestType
Ptr returns reference to TimeseriesFormulaRequestType value.
func (v *TimeseriesFormulaRequestType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
TimeseriesFormulaResponseType The type of the resource. The value should always be timeseries_response.
type TimeseriesFormulaResponseType string
List of TimeseriesFormulaResponseType.
const (
TIMESERIESFORMULARESPONSETYPE_TIMESERIES_RESPONSE TimeseriesFormulaResponseType = "timeseries_response"
)
func NewTimeseriesFormulaResponseTypeFromValue(v string) (*TimeseriesFormulaResponseType, error)
NewTimeseriesFormulaResponseTypeFromValue returns a pointer to a valid TimeseriesFormulaResponseType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *TimeseriesFormulaResponseType) GetAllowedValues() []TimeseriesFormulaResponseType
GetAllowedValues reeturns the list of possible values.
func (v TimeseriesFormulaResponseType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v TimeseriesFormulaResponseType) Ptr() *TimeseriesFormulaResponseType
Ptr returns reference to TimeseriesFormulaResponseType value.
func (v *TimeseriesFormulaResponseType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
TimeseriesQuery - An individual timeseries query to one of the basic Datadog data sources.
type TimeseriesQuery struct {
MetricsTimeseriesQuery *MetricsTimeseriesQuery
EventsTimeseriesQuery *EventsTimeseriesQuery
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func EventsTimeseriesQueryAsTimeseriesQuery(v *EventsTimeseriesQuery) TimeseriesQuery
EventsTimeseriesQueryAsTimeseriesQuery is a convenience function that returns EventsTimeseriesQuery wrapped in TimeseriesQuery.
func MetricsTimeseriesQueryAsTimeseriesQuery(v *MetricsTimeseriesQuery) TimeseriesQuery
MetricsTimeseriesQueryAsTimeseriesQuery is a convenience function that returns MetricsTimeseriesQuery wrapped in TimeseriesQuery.
func (obj *TimeseriesQuery) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj TimeseriesQuery) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *TimeseriesQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
TimeseriesResponse A message containing the response to a timeseries query.
type TimeseriesResponse struct {
// The object describing a timeseries response.
Attributes *TimeseriesResponseAttributes `json:"attributes,omitempty"`
// The type of the resource. The value should always be timeseries_response.
Type *TimeseriesFormulaResponseType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTimeseriesResponse() *TimeseriesResponse
NewTimeseriesResponse instantiates a new TimeseriesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTimeseriesResponseWithDefaults() *TimeseriesResponse
NewTimeseriesResponseWithDefaults instantiates a new TimeseriesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TimeseriesResponse) GetAttributes() TimeseriesResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *TimeseriesResponse) GetAttributesOk() (*TimeseriesResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesResponse) GetType() TimeseriesFormulaResponseType
GetType returns the Type field value if set, zero value otherwise.
func (o *TimeseriesResponse) GetTypeOk() (*TimeseriesFormulaResponseType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesResponse) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *TimeseriesResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o TimeseriesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TimeseriesResponse) SetAttributes(v TimeseriesResponseAttributes)
SetAttributes gets a reference to the given TimeseriesResponseAttributes and assigns it to the Attributes field.
func (o *TimeseriesResponse) SetType(v TimeseriesFormulaResponseType)
SetType gets a reference to the given TimeseriesFormulaResponseType and assigns it to the Type field.
func (o *TimeseriesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TimeseriesResponseAttributes The object describing a timeseries response.
type TimeseriesResponseAttributes struct {
// Array of response series. The index here corresponds to the index in the `formulas` or `queries` array from the request.
Series []TimeseriesResponseSeries `json:"series,omitempty"`
// Array of times, 1-1 match with individual values arrays.
Times []int64 `json:"times,omitempty"`
// Array of value-arrays. The index here corresponds to the index in the `formulas` or `queries` array from the request.
Values [][]*float64 `json:"values,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTimeseriesResponseAttributes() *TimeseriesResponseAttributes
NewTimeseriesResponseAttributes instantiates a new TimeseriesResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTimeseriesResponseAttributesWithDefaults() *TimeseriesResponseAttributes
NewTimeseriesResponseAttributesWithDefaults instantiates a new TimeseriesResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TimeseriesResponseAttributes) GetSeries() []TimeseriesResponseSeries
GetSeries returns the Series field value if set, zero value otherwise.
func (o *TimeseriesResponseAttributes) GetSeriesOk() (*[]TimeseriesResponseSeries, bool)
GetSeriesOk returns a tuple with the Series field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesResponseAttributes) GetTimes() []int64
GetTimes returns the Times field value if set, zero value otherwise.
func (o *TimeseriesResponseAttributes) GetTimesOk() (*[]int64, bool)
GetTimesOk returns a tuple with the Times field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesResponseAttributes) GetValues() [][]*float64
GetValues returns the Values field value if set, zero value otherwise.
func (o *TimeseriesResponseAttributes) GetValuesOk() (*[][]*float64, bool)
GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesResponseAttributes) HasSeries() bool
HasSeries returns a boolean if a field has been set.
func (o *TimeseriesResponseAttributes) HasTimes() bool
HasTimes returns a boolean if a field has been set.
func (o *TimeseriesResponseAttributes) HasValues() bool
HasValues returns a boolean if a field has been set.
func (o TimeseriesResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TimeseriesResponseAttributes) SetSeries(v []TimeseriesResponseSeries)
SetSeries gets a reference to the given []TimeseriesResponseSeries and assigns it to the Series field.
func (o *TimeseriesResponseAttributes) SetTimes(v []int64)
SetTimes gets a reference to the given []int64 and assigns it to the Times field.
func (o *TimeseriesResponseAttributes) SetValues(v [][]*float64)
SetValues gets a reference to the given [][]*float64 and assigns it to the Values field.
func (o *TimeseriesResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
TimeseriesResponseSeries
type TimeseriesResponseSeries struct {
// List of tags that apply to a single response value.
GroupTags []string `json:"group_tags,omitempty"`
// The index of the query in the "formulas" array (or "queries" array if no "formulas" was specified).
QueryIndex *int32 `json:"query_index,omitempty"`
// Detailed information about the unit.
// The first element describes the "primary unit" (for example, `bytes` in `bytes per second`).
// The second element describes the "per unit" (for example, `second` in `bytes per second`).
// If the second element is not present, the API returns null.
Unit []Unit `json:"unit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewTimeseriesResponseSeries() *TimeseriesResponseSeries
NewTimeseriesResponseSeries instantiates a new TimeseriesResponseSeries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewTimeseriesResponseSeriesWithDefaults() *TimeseriesResponseSeries
NewTimeseriesResponseSeriesWithDefaults instantiates a new TimeseriesResponseSeries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *TimeseriesResponseSeries) GetGroupTags() []string
GetGroupTags returns the GroupTags field value if set, zero value otherwise.
func (o *TimeseriesResponseSeries) GetGroupTagsOk() (*[]string, bool)
GetGroupTagsOk returns a tuple with the GroupTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesResponseSeries) GetQueryIndex() int32
GetQueryIndex returns the QueryIndex field value if set, zero value otherwise.
func (o *TimeseriesResponseSeries) GetQueryIndexOk() (*int32, bool)
GetQueryIndexOk returns a tuple with the QueryIndex field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesResponseSeries) GetUnit() []Unit
GetUnit returns the Unit field value if set, zero value otherwise.
func (o *TimeseriesResponseSeries) GetUnitOk() (*[]Unit, bool)
GetUnitOk returns a tuple with the Unit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *TimeseriesResponseSeries) HasGroupTags() bool
HasGroupTags returns a boolean if a field has been set.
func (o *TimeseriesResponseSeries) HasQueryIndex() bool
HasQueryIndex returns a boolean if a field has been set.
func (o *TimeseriesResponseSeries) HasUnit() bool
HasUnit returns a boolean if a field has been set.
func (o TimeseriesResponseSeries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *TimeseriesResponseSeries) SetGroupTags(v []string)
SetGroupTags gets a reference to the given []string and assigns it to the GroupTags field.
func (o *TimeseriesResponseSeries) SetQueryIndex(v int32)
SetQueryIndex gets a reference to the given int32 and assigns it to the QueryIndex field.
func (o *TimeseriesResponseSeries) SetUnit(v []Unit)
SetUnit gets a reference to the given []Unit and assigns it to the Unit field.
func (o *TimeseriesResponseSeries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Unit Object containing the metric unit family, scale factor, name, and short name.
type Unit struct {
// Unit family, allows for conversion between units of the same family, for scaling.
Family *string `json:"family,omitempty"`
// Unit name
Name *string `json:"name,omitempty"`
// Plural form of the unit name.
Plural *string `json:"plural,omitempty"`
// Factor for scaling between units of the same family.
ScaleFactor *float64 `json:"scale_factor,omitempty"`
// Abbreviation of the unit.
ShortName *string `json:"short_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUnit() *Unit
NewUnit instantiates a new Unit object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUnitWithDefaults() *Unit
NewUnitWithDefaults instantiates a new Unit object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Unit) GetFamily() string
GetFamily returns the Family field value if set, zero value otherwise.
func (o *Unit) GetFamilyOk() (*string, bool)
GetFamilyOk returns a tuple with the Family field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Unit) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *Unit) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Unit) GetPlural() string
GetPlural returns the Plural field value if set, zero value otherwise.
func (o *Unit) GetPluralOk() (*string, bool)
GetPluralOk returns a tuple with the Plural field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Unit) GetScaleFactor() float64
GetScaleFactor returns the ScaleFactor field value if set, zero value otherwise.
func (o *Unit) GetScaleFactorOk() (*float64, bool)
GetScaleFactorOk returns a tuple with the ScaleFactor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Unit) GetShortName() string
GetShortName returns the ShortName field value if set, zero value otherwise.
func (o *Unit) GetShortNameOk() (*string, bool)
GetShortNameOk returns a tuple with the ShortName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Unit) HasFamily() bool
HasFamily returns a boolean if a field has been set.
func (o *Unit) HasName() bool
HasName returns a boolean if a field has been set.
func (o *Unit) HasPlural() bool
HasPlural returns a boolean if a field has been set.
func (o *Unit) HasScaleFactor() bool
HasScaleFactor returns a boolean if a field has been set.
func (o *Unit) HasShortName() bool
HasShortName returns a boolean if a field has been set.
func (o Unit) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Unit) SetFamily(v string)
SetFamily gets a reference to the given string and assigns it to the Family field.
func (o *Unit) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *Unit) SetPlural(v string)
SetPlural gets a reference to the given string and assigns it to the Plural field.
func (o *Unit) SetScaleFactor(v float64)
SetScaleFactor gets a reference to the given float64 and assigns it to the ScaleFactor field.
func (o *Unit) SetShortName(v string)
SetShortName gets a reference to the given string and assigns it to the ShortName field.
func (o *Unit) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UpdateIncidentAttachmentsOptionalParameters holds optional parameters for UpdateIncidentAttachments.
type UpdateIncidentAttachmentsOptionalParameters struct {
Include *[]IncidentAttachmentRelatedObject
}
func NewUpdateIncidentAttachmentsOptionalParameters() *UpdateIncidentAttachmentsOptionalParameters
NewUpdateIncidentAttachmentsOptionalParameters creates an empty struct for parameters.
func (r *UpdateIncidentAttachmentsOptionalParameters) WithInclude(include []IncidentAttachmentRelatedObject) *UpdateIncidentAttachmentsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
UpdateIncidentOptionalParameters holds optional parameters for UpdateIncident.
type UpdateIncidentOptionalParameters struct {
Include *[]IncidentRelatedObject
}
func NewUpdateIncidentOptionalParameters() *UpdateIncidentOptionalParameters
NewUpdateIncidentOptionalParameters creates an empty struct for parameters.
func (r *UpdateIncidentOptionalParameters) WithInclude(include []IncidentRelatedObject) *UpdateIncidentOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
UploadIdPMetadataOptionalParameters holds optional parameters for UploadIdPMetadata.
type UploadIdPMetadataOptionalParameters struct {
IdpFile **os.File
}
func NewUploadIdPMetadataOptionalParameters() *UploadIdPMetadataOptionalParameters
NewUploadIdPMetadataOptionalParameters creates an empty struct for parameters.
func (r *UploadIdPMetadataOptionalParameters) WithIdpFile(idpFile *os.File) *UploadIdPMetadataOptionalParameters
WithIdpFile sets the corresponding parameter name and returns the struct.
UsageApplicationSecurityMonitoringResponse Application Security Monitoring usage response.
type UsageApplicationSecurityMonitoringResponse struct {
// Response containing Application Security Monitoring usage.
Data []UsageDataObject `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageApplicationSecurityMonitoringResponse() *UsageApplicationSecurityMonitoringResponse
NewUsageApplicationSecurityMonitoringResponse instantiates a new UsageApplicationSecurityMonitoringResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageApplicationSecurityMonitoringResponseWithDefaults() *UsageApplicationSecurityMonitoringResponse
NewUsageApplicationSecurityMonitoringResponseWithDefaults instantiates a new UsageApplicationSecurityMonitoringResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageApplicationSecurityMonitoringResponse) GetData() []UsageDataObject
GetData returns the Data field value if set, zero value otherwise.
func (o *UsageApplicationSecurityMonitoringResponse) GetDataOk() (*[]UsageDataObject, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageApplicationSecurityMonitoringResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UsageApplicationSecurityMonitoringResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageApplicationSecurityMonitoringResponse) SetData(v []UsageDataObject)
SetData gets a reference to the given []UsageDataObject and assigns it to the Data field.
func (o *UsageApplicationSecurityMonitoringResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageAttributesObject Usage attributes data.
type UsageAttributesObject struct {
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The product for which usage is being reported.
ProductFamily *string `json:"product_family,omitempty"`
// The organization public ID.
PublicId *string `json:"public_id,omitempty"`
// List of usage data reported for each requested hour.
Timeseries []UsageTimeSeriesObject `json:"timeseries,omitempty"`
// Usage type that is being measured.
UsageType *HourlyUsageType `json:"usage_type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageAttributesObject() *UsageAttributesObject
NewUsageAttributesObject instantiates a new UsageAttributesObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageAttributesObjectWithDefaults() *UsageAttributesObject
NewUsageAttributesObjectWithDefaults instantiates a new UsageAttributesObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageAttributesObject) GetOrgName() string
GetOrgName returns the OrgName field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetOrgNameOk() (*string, bool)
GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) GetProductFamily() string
GetProductFamily returns the ProductFamily field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetProductFamilyOk() (*string, bool)
GetProductFamilyOk returns a tuple with the ProductFamily field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) GetPublicId() string
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetPublicIdOk() (*string, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) GetTimeseries() []UsageTimeSeriesObject
GetTimeseries returns the Timeseries field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetTimeseriesOk() (*[]UsageTimeSeriesObject, bool)
GetTimeseriesOk returns a tuple with the Timeseries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) GetUsageType() HourlyUsageType
GetUsageType returns the UsageType field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetUsageTypeOk() (*HourlyUsageType, bool)
GetUsageTypeOk returns a tuple with the UsageType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) HasOrgName() bool
HasOrgName returns a boolean if a field has been set.
func (o *UsageAttributesObject) HasProductFamily() bool
HasProductFamily returns a boolean if a field has been set.
func (o *UsageAttributesObject) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *UsageAttributesObject) HasTimeseries() bool
HasTimeseries returns a boolean if a field has been set.
func (o *UsageAttributesObject) HasUsageType() bool
HasUsageType returns a boolean if a field has been set.
func (o UsageAttributesObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageAttributesObject) SetOrgName(v string)
SetOrgName gets a reference to the given string and assigns it to the OrgName field.
func (o *UsageAttributesObject) SetProductFamily(v string)
SetProductFamily gets a reference to the given string and assigns it to the ProductFamily field.
func (o *UsageAttributesObject) SetPublicId(v string)
SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *UsageAttributesObject) SetTimeseries(v []UsageTimeSeriesObject)
SetTimeseries gets a reference to the given []UsageTimeSeriesObject and assigns it to the Timeseries field.
func (o *UsageAttributesObject) SetUsageType(v HourlyUsageType)
SetUsageType gets a reference to the given HourlyUsageType and assigns it to the UsageType field.
func (o *UsageAttributesObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageDataObject Usage data.
type UsageDataObject struct {
// Usage attributes data.
Attributes *UsageAttributesObject `json:"attributes,omitempty"`
// Unique ID of the response.
Id *string `json:"id,omitempty"`
// Type of usage data.
Type *UsageTimeSeriesType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageDataObject() *UsageDataObject
NewUsageDataObject instantiates a new UsageDataObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageDataObjectWithDefaults() *UsageDataObject
NewUsageDataObjectWithDefaults instantiates a new UsageDataObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageDataObject) GetAttributes() UsageAttributesObject
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *UsageDataObject) GetAttributesOk() (*UsageAttributesObject, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageDataObject) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *UsageDataObject) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageDataObject) GetType() UsageTimeSeriesType
GetType returns the Type field value if set, zero value otherwise.
func (o *UsageDataObject) GetTypeOk() (*UsageTimeSeriesType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageDataObject) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *UsageDataObject) HasId() bool
HasId returns a boolean if a field has been set.
func (o *UsageDataObject) HasType() bool
HasType returns a boolean if a field has been set.
func (o UsageDataObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageDataObject) SetAttributes(v UsageAttributesObject)
SetAttributes gets a reference to the given UsageAttributesObject and assigns it to the Attributes field.
func (o *UsageDataObject) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *UsageDataObject) SetType(v UsageTimeSeriesType)
SetType gets a reference to the given UsageTimeSeriesType and assigns it to the Type field.
func (o *UsageDataObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageLambdaTracedInvocationsResponse Lambda Traced Invocations usage response.
type UsageLambdaTracedInvocationsResponse struct {
// Response containing Lambda Traced Invocations usage.
Data []UsageDataObject `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageLambdaTracedInvocationsResponse() *UsageLambdaTracedInvocationsResponse
NewUsageLambdaTracedInvocationsResponse instantiates a new UsageLambdaTracedInvocationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageLambdaTracedInvocationsResponseWithDefaults() *UsageLambdaTracedInvocationsResponse
NewUsageLambdaTracedInvocationsResponseWithDefaults instantiates a new UsageLambdaTracedInvocationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageLambdaTracedInvocationsResponse) GetData() []UsageDataObject
GetData returns the Data field value if set, zero value otherwise.
func (o *UsageLambdaTracedInvocationsResponse) GetDataOk() (*[]UsageDataObject, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageLambdaTracedInvocationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UsageLambdaTracedInvocationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageLambdaTracedInvocationsResponse) SetData(v []UsageDataObject)
SetData gets a reference to the given []UsageDataObject and assigns it to the Data field.
func (o *UsageLambdaTracedInvocationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageMeteringApi service type
type UsageMeteringApi datadog.Service
func NewUsageMeteringApi(client *datadog.APIClient) *UsageMeteringApi
NewUsageMeteringApi Returns NewUsageMeteringApi.
func (a *UsageMeteringApi) GetCostByOrg(ctx _context.Context, startMonth time.Time, o ...GetCostByOrgOptionalParameters) (CostByOrgResponse, *_nethttp.Response, error)
GetCostByOrg Get cost across multi-org account. Get cost across multi-org account. Cost by org data for a given month becomes available no later than the 16th of the following month. **Note:** This endpoint has been deprecated. Please use the new endpoint [`/historical_cost`](https://docs.datadoghq.com/api/latest/usage-metering/#get-historical-cost-across-your-account) instead.
Deprecated: This API is deprecated.
func (a *UsageMeteringApi) GetEstimatedCostByOrg(ctx _context.Context, o ...GetEstimatedCostByOrgOptionalParameters) (CostByOrgResponse, *_nethttp.Response, error)
GetEstimatedCostByOrg Get estimated cost across your account. Get estimated cost across multi-org and single root-org accounts. Estimated cost data is only available for the current month and previous month and is delayed by up to 72 hours from when it was incurred. To access historical costs prior to this, use the `/historical_cost` endpoint.
func (a *UsageMeteringApi) GetHistoricalCostByOrg(ctx _context.Context, startMonth time.Time, o ...GetHistoricalCostByOrgOptionalParameters) (CostByOrgResponse, *_nethttp.Response, error)
GetHistoricalCostByOrg Get historical cost across your account. Get historical cost across multi-org and single root-org accounts. Cost data for a given month becomes available no later than the 16th of the following month.
func (a *UsageMeteringApi) GetHourlyUsage(ctx _context.Context, filterTimestampStart time.Time, filterProductFamilies string, o ...GetHourlyUsageOptionalParameters) (HourlyUsageResponse, *_nethttp.Response, error)
GetHourlyUsage Get hourly usage by product family. Get hourly usage by product family.
func (a *UsageMeteringApi) GetUsageApplicationSecurityMonitoring(ctx _context.Context, startHr time.Time, o ...GetUsageApplicationSecurityMonitoringOptionalParameters) (UsageApplicationSecurityMonitoringResponse, *_nethttp.Response, error)
GetUsageApplicationSecurityMonitoring Get hourly usage for application security. Get hourly usage for application security . **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
func (a *UsageMeteringApi) GetUsageLambdaTracedInvocations(ctx _context.Context, startHr time.Time, o ...GetUsageLambdaTracedInvocationsOptionalParameters) (UsageLambdaTracedInvocationsResponse, *_nethttp.Response, error)
GetUsageLambdaTracedInvocations Get hourly usage for lambda traced invocations. Get hourly usage for lambda traced invocations. **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
func (a *UsageMeteringApi) GetUsageObservabilityPipelines(ctx _context.Context, startHr time.Time, o ...GetUsageObservabilityPipelinesOptionalParameters) (UsageObservabilityPipelinesResponse, *_nethttp.Response, error)
GetUsageObservabilityPipelines Get hourly usage for observability pipelines. Get hourly usage for observability pipelines. **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
UsageObservabilityPipelinesResponse Observability Pipelines usage response.
type UsageObservabilityPipelinesResponse struct {
// Response containing Observability Pipelines usage.
Data []UsageDataObject `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageObservabilityPipelinesResponse() *UsageObservabilityPipelinesResponse
NewUsageObservabilityPipelinesResponse instantiates a new UsageObservabilityPipelinesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageObservabilityPipelinesResponseWithDefaults() *UsageObservabilityPipelinesResponse
NewUsageObservabilityPipelinesResponseWithDefaults instantiates a new UsageObservabilityPipelinesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageObservabilityPipelinesResponse) GetData() []UsageDataObject
GetData returns the Data field value if set, zero value otherwise.
func (o *UsageObservabilityPipelinesResponse) GetDataOk() (*[]UsageDataObject, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageObservabilityPipelinesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UsageObservabilityPipelinesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageObservabilityPipelinesResponse) SetData(v []UsageDataObject)
SetData gets a reference to the given []UsageDataObject and assigns it to the Data field.
func (o *UsageObservabilityPipelinesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageTimeSeriesObject Usage timeseries data.
type UsageTimeSeriesObject struct {
// Datetime in ISO-8601 format, UTC. The hour for the usage.
Timestamp *time.Time `json:"timestamp,omitempty"`
// Contains the number measured for the given usage_type during the hour.
Value datadog.NullableInt64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageTimeSeriesObject() *UsageTimeSeriesObject
NewUsageTimeSeriesObject instantiates a new UsageTimeSeriesObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageTimeSeriesObjectWithDefaults() *UsageTimeSeriesObject
NewUsageTimeSeriesObjectWithDefaults instantiates a new UsageTimeSeriesObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageTimeSeriesObject) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *UsageTimeSeriesObject) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageTimeSeriesObject) GetValue() int64
GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UsageTimeSeriesObject) GetValueOk() (*int64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *UsageTimeSeriesObject) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *UsageTimeSeriesObject) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o UsageTimeSeriesObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageTimeSeriesObject) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *UsageTimeSeriesObject) SetValue(v int64)
SetValue gets a reference to the given datadog.NullableInt64 and assigns it to the Value field.
func (o *UsageTimeSeriesObject) SetValueNil()
SetValueNil sets the value for Value to be an explicit nil.
func (o *UsageTimeSeriesObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *UsageTimeSeriesObject) UnsetValue()
UnsetValue ensures that no value is present for Value, not even an explicit nil.
UsageTimeSeriesType Type of usage data.
type UsageTimeSeriesType string
List of UsageTimeSeriesType.
const (
USAGETIMESERIESTYPE_USAGE_TIMESERIES UsageTimeSeriesType = "usage_timeseries"
)
func NewUsageTimeSeriesTypeFromValue(v string) (*UsageTimeSeriesType, error)
NewUsageTimeSeriesTypeFromValue returns a pointer to a valid UsageTimeSeriesType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UsageTimeSeriesType) GetAllowedValues() []UsageTimeSeriesType
GetAllowedValues reeturns the list of possible values.
func (v UsageTimeSeriesType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UsageTimeSeriesType) Ptr() *UsageTimeSeriesType
Ptr returns reference to UsageTimeSeriesType value.
func (v *UsageTimeSeriesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
User User object returned by the API.
type User struct {
// Attributes of user object returned by the API.
Attributes *UserAttributes `json:"attributes,omitempty"`
// ID of the user.
Id *string `json:"id,omitempty"`
// Relationships of the user object returned by the API.
Relationships *UserResponseRelationships `json:"relationships,omitempty"`
// Users resource type.
Type *UsersType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUser() *User
NewUser instantiates a new User object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserWithDefaults() *User
NewUserWithDefaults instantiates a new User object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *User) GetAttributes() UserAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *User) GetAttributesOk() (*UserAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *User) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *User) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *User) GetRelationships() UserResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *User) GetRelationshipsOk() (*UserResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *User) GetType() UsersType
GetType returns the Type field value if set, zero value otherwise.
func (o *User) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *User) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *User) HasId() bool
HasId returns a boolean if a field has been set.
func (o *User) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *User) HasType() bool
HasType returns a boolean if a field has been set.
func (o User) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *User) SetAttributes(v UserAttributes)
SetAttributes gets a reference to the given UserAttributes and assigns it to the Attributes field.
func (o *User) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *User) SetRelationships(v UserResponseRelationships)
SetRelationships gets a reference to the given UserResponseRelationships and assigns it to the Relationships field.
func (o *User) SetType(v UsersType)
SetType gets a reference to the given UsersType and assigns it to the Type field.
func (o *User) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserAttributes Attributes of user object returned by the API.
type UserAttributes struct {
// Creation time of the user.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Whether the user is disabled.
Disabled *bool `json:"disabled,omitempty"`
// Email of the user.
Email *string `json:"email,omitempty"`
// Handle of the user.
Handle *string `json:"handle,omitempty"`
// URL of the user's icon.
Icon *string `json:"icon,omitempty"`
// Time that the user was last modified.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// Name of the user.
Name datadog.NullableString `json:"name,omitempty"`
// Whether the user is a service account.
ServiceAccount *bool `json:"service_account,omitempty"`
// Status of the user.
Status *string `json:"status,omitempty"`
// Title of the user.
Title datadog.NullableString `json:"title,omitempty"`
// Whether the user is verified.
Verified *bool `json:"verified,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserAttributes() *UserAttributes
NewUserAttributes instantiates a new UserAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserAttributesWithDefaults() *UserAttributes
NewUserAttributesWithDefaults instantiates a new UserAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *UserAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetDisabled() bool
GetDisabled returns the Disabled field value if set, zero value otherwise.
func (o *UserAttributes) GetDisabledOk() (*bool, bool)
GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *UserAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *UserAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetIcon() string
GetIcon returns the Icon field value if set, zero value otherwise.
func (o *UserAttributes) GetIconOk() (*string, bool)
GetIconOk returns a tuple with the Icon field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *UserAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *UserAttributes) GetServiceAccount() bool
GetServiceAccount returns the ServiceAccount field value if set, zero value otherwise.
func (o *UserAttributes) GetServiceAccountOk() (*bool, bool)
GetServiceAccountOk returns a tuple with the ServiceAccount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *UserAttributes) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *UserAttributes) GetVerified() bool
GetVerified returns the Verified field value if set, zero value otherwise.
func (o *UserAttributes) GetVerifiedOk() (*bool, bool)
GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *UserAttributes) HasDisabled() bool
HasDisabled returns a boolean if a field has been set.
func (o *UserAttributes) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *UserAttributes) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *UserAttributes) HasIcon() bool
HasIcon returns a boolean if a field has been set.
func (o *UserAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *UserAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *UserAttributes) HasServiceAccount() bool
HasServiceAccount returns a boolean if a field has been set.
func (o *UserAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *UserAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *UserAttributes) HasVerified() bool
HasVerified returns a boolean if a field has been set.
func (o UserAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *UserAttributes) SetDisabled(v bool)
SetDisabled gets a reference to the given bool and assigns it to the Disabled field.
func (o *UserAttributes) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *UserAttributes) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *UserAttributes) SetIcon(v string)
SetIcon gets a reference to the given string and assigns it to the Icon field.
func (o *UserAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *UserAttributes) SetName(v string)
SetName gets a reference to the given datadog.NullableString and assigns it to the Name field.
func (o *UserAttributes) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil.
func (o *UserAttributes) SetServiceAccount(v bool)
SetServiceAccount gets a reference to the given bool and assigns it to the ServiceAccount field.
func (o *UserAttributes) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *UserAttributes) SetTitle(v string)
SetTitle gets a reference to the given datadog.NullableString and assigns it to the Title field.
func (o *UserAttributes) SetTitleNil()
SetTitleNil sets the value for Title to be an explicit nil.
func (o *UserAttributes) SetVerified(v bool)
SetVerified gets a reference to the given bool and assigns it to the Verified field.
func (o *UserAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *UserAttributes) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil.
func (o *UserAttributes) UnsetTitle()
UnsetTitle ensures that no value is present for Title, not even an explicit nil.
UserCreateAttributes Attributes of the created user.
type UserCreateAttributes struct {
// The email of the user.
Email string `json:"email"`
// The name of the user.
Name *string `json:"name,omitempty"`
// The title of the user.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserCreateAttributes(email string) *UserCreateAttributes
NewUserCreateAttributes instantiates a new UserCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserCreateAttributesWithDefaults() *UserCreateAttributes
NewUserCreateAttributesWithDefaults instantiates a new UserCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserCreateAttributes) GetEmail() string
GetEmail returns the Email field value.
func (o *UserCreateAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.
func (o *UserCreateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *UserCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserCreateAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *UserCreateAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserCreateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *UserCreateAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o UserCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserCreateAttributes) SetEmail(v string)
SetEmail sets field value.
func (o *UserCreateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *UserCreateAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *UserCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserCreateData Object to create a user.
type UserCreateData struct {
// Attributes of the created user.
Attributes UserCreateAttributes `json:"attributes"`
// Relationships of the user object.
Relationships *UserRelationships `json:"relationships,omitempty"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserCreateData(attributes UserCreateAttributes, typeVar UsersType) *UserCreateData
NewUserCreateData instantiates a new UserCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserCreateDataWithDefaults() *UserCreateData
NewUserCreateDataWithDefaults instantiates a new UserCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserCreateData) GetAttributes() UserCreateAttributes
GetAttributes returns the Attributes field value.
func (o *UserCreateData) GetAttributesOk() (*UserCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *UserCreateData) GetRelationships() UserRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *UserCreateData) GetRelationshipsOk() (*UserRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserCreateData) GetType() UsersType
GetType returns the Type field value.
func (o *UserCreateData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *UserCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o UserCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserCreateData) SetAttributes(v UserCreateAttributes)
SetAttributes sets field value.
func (o *UserCreateData) SetRelationships(v UserRelationships)
SetRelationships gets a reference to the given UserRelationships and assigns it to the Relationships field.
func (o *UserCreateData) SetType(v UsersType)
SetType sets field value.
func (o *UserCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserCreateRequest Create a user.
type UserCreateRequest struct {
// Object to create a user.
Data UserCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserCreateRequest(data UserCreateData) *UserCreateRequest
NewUserCreateRequest instantiates a new UserCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserCreateRequestWithDefaults() *UserCreateRequest
NewUserCreateRequestWithDefaults instantiates a new UserCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserCreateRequest) GetData() UserCreateData
GetData returns the Data field value.
func (o *UserCreateRequest) GetDataOk() (*UserCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o UserCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserCreateRequest) SetData(v UserCreateData)
SetData sets field value.
func (o *UserCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationData Object to create a user invitation.
type UserInvitationData struct {
// Relationships data for user invitation.
Relationships UserInvitationRelationships `json:"relationships"`
// User invitations type.
Type UserInvitationsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationData(relationships UserInvitationRelationships, typeVar UserInvitationsType) *UserInvitationData
NewUserInvitationData instantiates a new UserInvitationData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationDataWithDefaults() *UserInvitationData
NewUserInvitationDataWithDefaults instantiates a new UserInvitationData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationData) GetRelationships() UserInvitationRelationships
GetRelationships returns the Relationships field value.
func (o *UserInvitationData) GetRelationshipsOk() (*UserInvitationRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value and a boolean to check if the value has been set.
func (o *UserInvitationData) GetType() UserInvitationsType
GetType returns the Type field value.
func (o *UserInvitationData) GetTypeOk() (*UserInvitationsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o UserInvitationData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationData) SetRelationships(v UserInvitationRelationships)
SetRelationships sets field value.
func (o *UserInvitationData) SetType(v UserInvitationsType)
SetType sets field value.
func (o *UserInvitationData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationDataAttributes Attributes of a user invitation.
type UserInvitationDataAttributes struct {
// Creation time of the user invitation.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of invitation expiration.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Type of invitation.
InviteType *string `json:"invite_type,omitempty"`
// UUID of the user invitation.
Uuid *string `json:"uuid,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationDataAttributes() *UserInvitationDataAttributes
NewUserInvitationDataAttributes instantiates a new UserInvitationDataAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationDataAttributesWithDefaults() *UserInvitationDataAttributes
NewUserInvitationDataAttributesWithDefaults instantiates a new UserInvitationDataAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationDataAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *UserInvitationDataAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationDataAttributes) GetExpiresAt() time.Time
GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.
func (o *UserInvitationDataAttributes) GetExpiresAtOk() (*time.Time, bool)
GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationDataAttributes) GetInviteType() string
GetInviteType returns the InviteType field value if set, zero value otherwise.
func (o *UserInvitationDataAttributes) GetInviteTypeOk() (*string, bool)
GetInviteTypeOk returns a tuple with the InviteType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationDataAttributes) GetUuid() string
GetUuid returns the Uuid field value if set, zero value otherwise.
func (o *UserInvitationDataAttributes) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationDataAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *UserInvitationDataAttributes) HasExpiresAt() bool
HasExpiresAt returns a boolean if a field has been set.
func (o *UserInvitationDataAttributes) HasInviteType() bool
HasInviteType returns a boolean if a field has been set.
func (o *UserInvitationDataAttributes) HasUuid() bool
HasUuid returns a boolean if a field has been set.
func (o UserInvitationDataAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationDataAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *UserInvitationDataAttributes) SetExpiresAt(v time.Time)
SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field.
func (o *UserInvitationDataAttributes) SetInviteType(v string)
SetInviteType gets a reference to the given string and assigns it to the InviteType field.
func (o *UserInvitationDataAttributes) SetUuid(v string)
SetUuid gets a reference to the given string and assigns it to the Uuid field.
func (o *UserInvitationDataAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationRelationships Relationships data for user invitation.
type UserInvitationRelationships struct {
// Relationship to user.
User RelationshipToUser `json:"user"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationRelationships(user RelationshipToUser) *UserInvitationRelationships
NewUserInvitationRelationships instantiates a new UserInvitationRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationRelationshipsWithDefaults() *UserInvitationRelationships
NewUserInvitationRelationshipsWithDefaults instantiates a new UserInvitationRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationRelationships) GetUser() RelationshipToUser
GetUser returns the User field value.
func (o *UserInvitationRelationships) GetUserOk() (*RelationshipToUser, bool)
GetUserOk returns a tuple with the User field value and a boolean to check if the value has been set.
func (o UserInvitationRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationRelationships) SetUser(v RelationshipToUser)
SetUser sets field value.
func (o *UserInvitationRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationResponse User invitation as returned by the API.
type UserInvitationResponse struct {
// Object of a user invitation returned by the API.
Data *UserInvitationResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationResponse() *UserInvitationResponse
NewUserInvitationResponse instantiates a new UserInvitationResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationResponseWithDefaults() *UserInvitationResponse
NewUserInvitationResponseWithDefaults instantiates a new UserInvitationResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationResponse) GetData() UserInvitationResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *UserInvitationResponse) GetDataOk() (*UserInvitationResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UserInvitationResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationResponse) SetData(v UserInvitationResponseData)
SetData gets a reference to the given UserInvitationResponseData and assigns it to the Data field.
func (o *UserInvitationResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationResponseData Object of a user invitation returned by the API.
type UserInvitationResponseData struct {
// Attributes of a user invitation.
Attributes *UserInvitationDataAttributes `json:"attributes,omitempty"`
// ID of the user invitation.
Id *string `json:"id,omitempty"`
// Relationships data for user invitation.
Relationships *UserInvitationRelationships `json:"relationships,omitempty"`
// User invitations type.
Type *UserInvitationsType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationResponseData() *UserInvitationResponseData
NewUserInvitationResponseData instantiates a new UserInvitationResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationResponseDataWithDefaults() *UserInvitationResponseData
NewUserInvitationResponseDataWithDefaults instantiates a new UserInvitationResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationResponseData) GetAttributes() UserInvitationDataAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *UserInvitationResponseData) GetAttributesOk() (*UserInvitationDataAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *UserInvitationResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponseData) GetRelationships() UserInvitationRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *UserInvitationResponseData) GetRelationshipsOk() (*UserInvitationRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponseData) GetType() UserInvitationsType
GetType returns the Type field value if set, zero value otherwise.
func (o *UserInvitationResponseData) GetTypeOk() (*UserInvitationsType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *UserInvitationResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *UserInvitationResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *UserInvitationResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o UserInvitationResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationResponseData) SetAttributes(v UserInvitationDataAttributes)
SetAttributes gets a reference to the given UserInvitationDataAttributes and assigns it to the Attributes field.
func (o *UserInvitationResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *UserInvitationResponseData) SetRelationships(v UserInvitationRelationships)
SetRelationships gets a reference to the given UserInvitationRelationships and assigns it to the Relationships field.
func (o *UserInvitationResponseData) SetType(v UserInvitationsType)
SetType gets a reference to the given UserInvitationsType and assigns it to the Type field.
func (o *UserInvitationResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationsRequest Object to invite users to join the organization.
type UserInvitationsRequest struct {
// List of user invitations.
Data []UserInvitationData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationsRequest(data []UserInvitationData) *UserInvitationsRequest
NewUserInvitationsRequest instantiates a new UserInvitationsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationsRequestWithDefaults() *UserInvitationsRequest
NewUserInvitationsRequestWithDefaults instantiates a new UserInvitationsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationsRequest) GetData() []UserInvitationData
GetData returns the Data field value.
func (o *UserInvitationsRequest) GetDataOk() (*[]UserInvitationData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o UserInvitationsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationsRequest) SetData(v []UserInvitationData)
SetData sets field value.
func (o *UserInvitationsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationsResponse User invitations as returned by the API.
type UserInvitationsResponse struct {
// Array of user invitations.
Data []UserInvitationResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationsResponse() *UserInvitationsResponse
NewUserInvitationsResponse instantiates a new UserInvitationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationsResponseWithDefaults() *UserInvitationsResponse
NewUserInvitationsResponseWithDefaults instantiates a new UserInvitationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationsResponse) GetData() []UserInvitationResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *UserInvitationsResponse) GetDataOk() (*[]UserInvitationResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UserInvitationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationsResponse) SetData(v []UserInvitationResponseData)
SetData gets a reference to the given []UserInvitationResponseData and assigns it to the Data field.
func (o *UserInvitationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationsType User invitations type.
type UserInvitationsType string
List of UserInvitationsType.
const (
USERINVITATIONSTYPE_USER_INVITATIONS UserInvitationsType = "user_invitations"
)
func NewUserInvitationsTypeFromValue(v string) (*UserInvitationsType, error)
NewUserInvitationsTypeFromValue returns a pointer to a valid UserInvitationsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UserInvitationsType) GetAllowedValues() []UserInvitationsType
GetAllowedValues reeturns the list of possible values.
func (v UserInvitationsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UserInvitationsType) Ptr() *UserInvitationsType
Ptr returns reference to UserInvitationsType value.
func (v *UserInvitationsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
UserRelationships Relationships of the user object.
type UserRelationships struct {
// Relationship to roles.
Roles *RelationshipToRoles `json:"roles,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserRelationships() *UserRelationships
NewUserRelationships instantiates a new UserRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserRelationshipsWithDefaults() *UserRelationships
NewUserRelationshipsWithDefaults instantiates a new UserRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserRelationships) GetRoles() RelationshipToRoles
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *UserRelationships) GetRolesOk() (*RelationshipToRoles, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserRelationships) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o UserRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserRelationships) SetRoles(v RelationshipToRoles)
SetRoles gets a reference to the given RelationshipToRoles and assigns it to the Roles field.
func (o *UserRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserResponse Response containing information about a single user.
type UserResponse struct {
// User object returned by the API.
Data *User `json:"data,omitempty"`
// Array of objects related to the user.
Included []UserResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserResponse() *UserResponse
NewUserResponse instantiates a new UserResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserResponseWithDefaults() *UserResponse
NewUserResponseWithDefaults instantiates a new UserResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserResponse) GetData() User
GetData returns the Data field value if set, zero value otherwise.
func (o *UserResponse) GetDataOk() (*User, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponse) GetIncluded() []UserResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *UserResponse) GetIncludedOk() (*[]UserResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *UserResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o UserResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserResponse) SetData(v User)
SetData gets a reference to the given User and assigns it to the Data field.
func (o *UserResponse) SetIncluded(v []UserResponseIncludedItem)
SetIncluded gets a reference to the given []UserResponseIncludedItem and assigns it to the Included field.
func (o *UserResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserResponseIncludedItem - An object related to a user.
type UserResponseIncludedItem struct {
Organization *Organization
Permission *Permission
Role *Role
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func OrganizationAsUserResponseIncludedItem(v *Organization) UserResponseIncludedItem
OrganizationAsUserResponseIncludedItem is a convenience function that returns Organization wrapped in UserResponseIncludedItem.
func PermissionAsUserResponseIncludedItem(v *Permission) UserResponseIncludedItem
PermissionAsUserResponseIncludedItem is a convenience function that returns Permission wrapped in UserResponseIncludedItem.
func RoleAsUserResponseIncludedItem(v *Role) UserResponseIncludedItem
RoleAsUserResponseIncludedItem is a convenience function that returns Role wrapped in UserResponseIncludedItem.
func (obj *UserResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj UserResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *UserResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
UserResponseRelationships Relationships of the user object returned by the API.
type UserResponseRelationships struct {
// Relationship to an organization.
Org *RelationshipToOrganization `json:"org,omitempty"`
// Relationship to organizations.
OtherOrgs *RelationshipToOrganizations `json:"other_orgs,omitempty"`
// Relationship to users.
OtherUsers *RelationshipToUsers `json:"other_users,omitempty"`
// Relationship to roles.
Roles *RelationshipToRoles `json:"roles,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserResponseRelationships() *UserResponseRelationships
NewUserResponseRelationships instantiates a new UserResponseRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserResponseRelationshipsWithDefaults() *UserResponseRelationships
NewUserResponseRelationshipsWithDefaults instantiates a new UserResponseRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserResponseRelationships) GetOrg() RelationshipToOrganization
GetOrg returns the Org field value if set, zero value otherwise.
func (o *UserResponseRelationships) GetOrgOk() (*RelationshipToOrganization, bool)
GetOrgOk returns a tuple with the Org field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponseRelationships) GetOtherOrgs() RelationshipToOrganizations
GetOtherOrgs returns the OtherOrgs field value if set, zero value otherwise.
func (o *UserResponseRelationships) GetOtherOrgsOk() (*RelationshipToOrganizations, bool)
GetOtherOrgsOk returns a tuple with the OtherOrgs field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponseRelationships) GetOtherUsers() RelationshipToUsers
GetOtherUsers returns the OtherUsers field value if set, zero value otherwise.
func (o *UserResponseRelationships) GetOtherUsersOk() (*RelationshipToUsers, bool)
GetOtherUsersOk returns a tuple with the OtherUsers field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponseRelationships) GetRoles() RelationshipToRoles
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *UserResponseRelationships) GetRolesOk() (*RelationshipToRoles, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponseRelationships) HasOrg() bool
HasOrg returns a boolean if a field has been set.
func (o *UserResponseRelationships) HasOtherOrgs() bool
HasOtherOrgs returns a boolean if a field has been set.
func (o *UserResponseRelationships) HasOtherUsers() bool
HasOtherUsers returns a boolean if a field has been set.
func (o *UserResponseRelationships) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o UserResponseRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserResponseRelationships) SetOrg(v RelationshipToOrganization)
SetOrg gets a reference to the given RelationshipToOrganization and assigns it to the Org field.
func (o *UserResponseRelationships) SetOtherOrgs(v RelationshipToOrganizations)
SetOtherOrgs gets a reference to the given RelationshipToOrganizations and assigns it to the OtherOrgs field.
func (o *UserResponseRelationships) SetOtherUsers(v RelationshipToUsers)
SetOtherUsers gets a reference to the given RelationshipToUsers and assigns it to the OtherUsers field.
func (o *UserResponseRelationships) SetRoles(v RelationshipToRoles)
SetRoles gets a reference to the given RelationshipToRoles and assigns it to the Roles field.
func (o *UserResponseRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeam A user's relationship with a team
type UserTeam struct {
// Team membership attributes
Attributes *UserTeamAttributes `json:"attributes,omitempty"`
// The ID of a user's relationship with a team
Id string `json:"id"`
// Relationship between membership and a user
Relationships *UserTeamRelationships `json:"relationships,omitempty"`
// Team membership type
Type UserTeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeam(id string, typeVar UserTeamType) *UserTeam
NewUserTeam instantiates a new UserTeam object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamWithDefaults() *UserTeam
NewUserTeamWithDefaults instantiates a new UserTeam object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeam) GetAttributes() UserTeamAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *UserTeam) GetAttributesOk() (*UserTeamAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeam) GetId() string
GetId returns the Id field value.
func (o *UserTeam) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *UserTeam) GetRelationships() UserTeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *UserTeam) GetRelationshipsOk() (*UserTeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeam) GetType() UserTeamType
GetType returns the Type field value.
func (o *UserTeam) GetTypeOk() (*UserTeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *UserTeam) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *UserTeam) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o UserTeam) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeam) SetAttributes(v UserTeamAttributes)
SetAttributes gets a reference to the given UserTeamAttributes and assigns it to the Attributes field.
func (o *UserTeam) SetId(v string)
SetId sets field value.
func (o *UserTeam) SetRelationships(v UserTeamRelationships)
SetRelationships gets a reference to the given UserTeamRelationships and assigns it to the Relationships field.
func (o *UserTeam) SetType(v UserTeamType)
SetType sets field value.
func (o *UserTeam) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamAttributes Team membership attributes
type UserTeamAttributes struct {
// The user's role within the team
Role NullableUserTeamRole `json:"role,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamAttributes() *UserTeamAttributes
NewUserTeamAttributes instantiates a new UserTeamAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamAttributesWithDefaults() *UserTeamAttributes
NewUserTeamAttributesWithDefaults instantiates a new UserTeamAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamAttributes) GetRole() UserTeamRole
GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserTeamAttributes) GetRoleOk() (*UserTeamRole, bool)
GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *UserTeamAttributes) HasRole() bool
HasRole returns a boolean if a field has been set.
func (o UserTeamAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamAttributes) SetRole(v UserTeamRole)
SetRole gets a reference to the given NullableUserTeamRole and assigns it to the Role field.
func (o *UserTeamAttributes) SetRoleNil()
SetRoleNil sets the value for Role to be an explicit nil.
func (o *UserTeamAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *UserTeamAttributes) UnsetRole()
UnsetRole ensures that no value is present for Role, not even an explicit nil.
UserTeamCreate A user's relationship with a team
type UserTeamCreate struct {
// Team membership attributes
Attributes *UserTeamAttributes `json:"attributes,omitempty"`
// Relationship between membership and a user
Relationships *UserTeamRelationships `json:"relationships,omitempty"`
// Team membership type
Type UserTeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamCreate(typeVar UserTeamType) *UserTeamCreate
NewUserTeamCreate instantiates a new UserTeamCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamCreateWithDefaults() *UserTeamCreate
NewUserTeamCreateWithDefaults instantiates a new UserTeamCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamCreate) GetAttributes() UserTeamAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *UserTeamCreate) GetAttributesOk() (*UserTeamAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamCreate) GetRelationships() UserTeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *UserTeamCreate) GetRelationshipsOk() (*UserTeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamCreate) GetType() UserTeamType
GetType returns the Type field value.
func (o *UserTeamCreate) GetTypeOk() (*UserTeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *UserTeamCreate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *UserTeamCreate) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o UserTeamCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamCreate) SetAttributes(v UserTeamAttributes)
SetAttributes gets a reference to the given UserTeamAttributes and assigns it to the Attributes field.
func (o *UserTeamCreate) SetRelationships(v UserTeamRelationships)
SetRelationships gets a reference to the given UserTeamRelationships and assigns it to the Relationships field.
func (o *UserTeamCreate) SetType(v UserTeamType)
SetType sets field value.
func (o *UserTeamCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamPermission A user's permissions for a given team
type UserTeamPermission struct {
// User team permission attributes
Attributes *UserTeamPermissionAttributes `json:"attributes,omitempty"`
// The user team permission's identifier
Id string `json:"id"`
// User team permission type
Type UserTeamPermissionType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamPermission(id string, typeVar UserTeamPermissionType) *UserTeamPermission
NewUserTeamPermission instantiates a new UserTeamPermission object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamPermissionWithDefaults() *UserTeamPermission
NewUserTeamPermissionWithDefaults instantiates a new UserTeamPermission object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamPermission) GetAttributes() UserTeamPermissionAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *UserTeamPermission) GetAttributesOk() (*UserTeamPermissionAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamPermission) GetId() string
GetId returns the Id field value.
func (o *UserTeamPermission) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *UserTeamPermission) GetType() UserTeamPermissionType
GetType returns the Type field value.
func (o *UserTeamPermission) GetTypeOk() (*UserTeamPermissionType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *UserTeamPermission) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o UserTeamPermission) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamPermission) SetAttributes(v UserTeamPermissionAttributes)
SetAttributes gets a reference to the given UserTeamPermissionAttributes and assigns it to the Attributes field.
func (o *UserTeamPermission) SetId(v string)
SetId sets field value.
func (o *UserTeamPermission) SetType(v UserTeamPermissionType)
SetType sets field value.
func (o *UserTeamPermission) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamPermissionAttributes User team permission attributes
type UserTeamPermissionAttributes struct {
// Object of team permission actions and boolean values indicating of the currently logged in user can perform them on this team
Permissions interface{} `json:"permissions,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamPermissionAttributes() *UserTeamPermissionAttributes
NewUserTeamPermissionAttributes instantiates a new UserTeamPermissionAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamPermissionAttributesWithDefaults() *UserTeamPermissionAttributes
NewUserTeamPermissionAttributesWithDefaults instantiates a new UserTeamPermissionAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamPermissionAttributes) GetPermissions() interface{}
GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *UserTeamPermissionAttributes) GetPermissionsOk() (*interface{}, bool)
GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamPermissionAttributes) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.
func (o UserTeamPermissionAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamPermissionAttributes) SetPermissions(v interface{})
SetPermissions gets a reference to the given interface{} and assigns it to the Permissions field.
func (o *UserTeamPermissionAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamPermissionType User team permission type
type UserTeamPermissionType string
List of UserTeamPermissionType.
const (
USERTEAMPERMISSIONTYPE_USER_TEAM_PERMISSIONS UserTeamPermissionType = "user_team_permissions"
)
func NewUserTeamPermissionTypeFromValue(v string) (*UserTeamPermissionType, error)
NewUserTeamPermissionTypeFromValue returns a pointer to a valid UserTeamPermissionType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UserTeamPermissionType) GetAllowedValues() []UserTeamPermissionType
GetAllowedValues reeturns the list of possible values.
func (v UserTeamPermissionType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UserTeamPermissionType) Ptr() *UserTeamPermissionType
Ptr returns reference to UserTeamPermissionType value.
func (v *UserTeamPermissionType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
UserTeamRelationships Relationship between membership and a user
type UserTeamRelationships struct {
// Relationship between team membership and user
User *RelationshipToUserTeamUser `json:"user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamRelationships() *UserTeamRelationships
NewUserTeamRelationships instantiates a new UserTeamRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamRelationshipsWithDefaults() *UserTeamRelationships
NewUserTeamRelationshipsWithDefaults instantiates a new UserTeamRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamRelationships) GetUser() RelationshipToUserTeamUser
GetUser returns the User field value if set, zero value otherwise.
func (o *UserTeamRelationships) GetUserOk() (*RelationshipToUserTeamUser, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamRelationships) HasUser() bool
HasUser returns a boolean if a field has been set.
func (o UserTeamRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamRelationships) SetUser(v RelationshipToUserTeamUser)
SetUser gets a reference to the given RelationshipToUserTeamUser and assigns it to the User field.
func (o *UserTeamRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamRequest Team membership request
type UserTeamRequest struct {
// A user's relationship with a team
Data UserTeamCreate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamRequest(data UserTeamCreate) *UserTeamRequest
NewUserTeamRequest instantiates a new UserTeamRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamRequestWithDefaults() *UserTeamRequest
NewUserTeamRequestWithDefaults instantiates a new UserTeamRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamRequest) GetData() UserTeamCreate
GetData returns the Data field value.
func (o *UserTeamRequest) GetDataOk() (*UserTeamCreate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o UserTeamRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamRequest) SetData(v UserTeamCreate)
SetData sets field value.
func (o *UserTeamRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamResponse Team membership response
type UserTeamResponse struct {
// A user's relationship with a team
Data *UserTeam `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamResponse() *UserTeamResponse
NewUserTeamResponse instantiates a new UserTeamResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamResponseWithDefaults() *UserTeamResponse
NewUserTeamResponseWithDefaults instantiates a new UserTeamResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamResponse) GetData() UserTeam
GetData returns the Data field value if set, zero value otherwise.
func (o *UserTeamResponse) GetDataOk() (*UserTeam, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UserTeamResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamResponse) SetData(v UserTeam)
SetData gets a reference to the given UserTeam and assigns it to the Data field.
func (o *UserTeamResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamRole The user's role within the team
type UserTeamRole string
List of UserTeamRole.
const (
USERTEAMROLE_ADMIN UserTeamRole = "admin"
)
func NewUserTeamRoleFromValue(v string) (*UserTeamRole, error)
NewUserTeamRoleFromValue returns a pointer to a valid UserTeamRole for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UserTeamRole) GetAllowedValues() []UserTeamRole
GetAllowedValues reeturns the list of possible values.
func (v UserTeamRole) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UserTeamRole) Ptr() *UserTeamRole
Ptr returns reference to UserTeamRole value.
func (v *UserTeamRole) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
UserTeamType Team membership type
type UserTeamType string
List of UserTeamType.
const (
USERTEAMTYPE_TEAM_MEMBERSHIPS UserTeamType = "team_memberships"
)
func NewUserTeamTypeFromValue(v string) (*UserTeamType, error)
NewUserTeamTypeFromValue returns a pointer to a valid UserTeamType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UserTeamType) GetAllowedValues() []UserTeamType
GetAllowedValues reeturns the list of possible values.
func (v UserTeamType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UserTeamType) Ptr() *UserTeamType
Ptr returns reference to UserTeamType value.
func (v *UserTeamType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
UserTeamUpdate A user's relationship with a team
type UserTeamUpdate struct {
// Team membership attributes
Attributes *UserTeamAttributes `json:"attributes,omitempty"`
// Team membership type
Type UserTeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamUpdate(typeVar UserTeamType) *UserTeamUpdate
NewUserTeamUpdate instantiates a new UserTeamUpdate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamUpdateWithDefaults() *UserTeamUpdate
NewUserTeamUpdateWithDefaults instantiates a new UserTeamUpdate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamUpdate) GetAttributes() UserTeamAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *UserTeamUpdate) GetAttributesOk() (*UserTeamAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamUpdate) GetType() UserTeamType
GetType returns the Type field value.
func (o *UserTeamUpdate) GetTypeOk() (*UserTeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *UserTeamUpdate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o UserTeamUpdate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamUpdate) SetAttributes(v UserTeamAttributes)
SetAttributes gets a reference to the given UserTeamAttributes and assigns it to the Attributes field.
func (o *UserTeamUpdate) SetType(v UserTeamType)
SetType sets field value.
func (o *UserTeamUpdate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamUpdateRequest Team membership request
type UserTeamUpdateRequest struct {
// A user's relationship with a team
Data UserTeamUpdate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamUpdateRequest(data UserTeamUpdate) *UserTeamUpdateRequest
NewUserTeamUpdateRequest instantiates a new UserTeamUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamUpdateRequestWithDefaults() *UserTeamUpdateRequest
NewUserTeamUpdateRequestWithDefaults instantiates a new UserTeamUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamUpdateRequest) GetData() UserTeamUpdate
GetData returns the Data field value.
func (o *UserTeamUpdateRequest) GetDataOk() (*UserTeamUpdate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o UserTeamUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamUpdateRequest) SetData(v UserTeamUpdate)
SetData sets field value.
func (o *UserTeamUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserTeamUserType User team user type
type UserTeamUserType string
List of UserTeamUserType.
const (
USERTEAMUSERTYPE_USERS UserTeamUserType = "users"
)
func NewUserTeamUserTypeFromValue(v string) (*UserTeamUserType, error)
NewUserTeamUserTypeFromValue returns a pointer to a valid UserTeamUserType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UserTeamUserType) GetAllowedValues() []UserTeamUserType
GetAllowedValues reeturns the list of possible values.
func (v UserTeamUserType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UserTeamUserType) Ptr() *UserTeamUserType
Ptr returns reference to UserTeamUserType value.
func (v *UserTeamUserType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
UserTeamsResponse Team memberships response
type UserTeamsResponse struct {
// Team memberships response data
Data []UserTeam `json:"data,omitempty"`
// Teams response links.
Links *TeamsResponseLinks `json:"links,omitempty"`
// Teams response metadata.
Meta *TeamsResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserTeamsResponse() *UserTeamsResponse
NewUserTeamsResponse instantiates a new UserTeamsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserTeamsResponseWithDefaults() *UserTeamsResponse
NewUserTeamsResponseWithDefaults instantiates a new UserTeamsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserTeamsResponse) GetData() []UserTeam
GetData returns the Data field value if set, zero value otherwise.
func (o *UserTeamsResponse) GetDataOk() (*[]UserTeam, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamsResponse) GetLinks() TeamsResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *UserTeamsResponse) GetLinksOk() (*TeamsResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamsResponse) GetMeta() TeamsResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *UserTeamsResponse) GetMetaOk() (*TeamsResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserTeamsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *UserTeamsResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *UserTeamsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o UserTeamsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserTeamsResponse) SetData(v []UserTeam)
SetData gets a reference to the given []UserTeam and assigns it to the Data field.
func (o *UserTeamsResponse) SetLinks(v TeamsResponseLinks)
SetLinks gets a reference to the given TeamsResponseLinks and assigns it to the Links field.
func (o *UserTeamsResponse) SetMeta(v TeamsResponseMeta)
SetMeta gets a reference to the given TeamsResponseMeta and assigns it to the Meta field.
func (o *UserTeamsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserUpdateAttributes Attributes of the edited user.
type UserUpdateAttributes struct {
// If the user is enabled or disabled.
Disabled *bool `json:"disabled,omitempty"`
// The email of the user.
Email *string `json:"email,omitempty"`
// The name of the user.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserUpdateAttributes() *UserUpdateAttributes
NewUserUpdateAttributes instantiates a new UserUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserUpdateAttributesWithDefaults() *UserUpdateAttributes
NewUserUpdateAttributesWithDefaults instantiates a new UserUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserUpdateAttributes) GetDisabled() bool
GetDisabled returns the Disabled field value if set, zero value otherwise.
func (o *UserUpdateAttributes) GetDisabledOk() (*bool, bool)
GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserUpdateAttributes) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *UserUpdateAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *UserUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserUpdateAttributes) HasDisabled() bool
HasDisabled returns a boolean if a field has been set.
func (o *UserUpdateAttributes) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *UserUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o UserUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserUpdateAttributes) SetDisabled(v bool)
SetDisabled gets a reference to the given bool and assigns it to the Disabled field.
func (o *UserUpdateAttributes) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *UserUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *UserUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserUpdateData Object to update a user.
type UserUpdateData struct {
// Attributes of the edited user.
Attributes UserUpdateAttributes `json:"attributes"`
// ID of the user.
Id string `json:"id"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserUpdateData(attributes UserUpdateAttributes, id string, typeVar UsersType) *UserUpdateData
NewUserUpdateData instantiates a new UserUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserUpdateDataWithDefaults() *UserUpdateData
NewUserUpdateDataWithDefaults instantiates a new UserUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserUpdateData) GetAttributes() UserUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *UserUpdateData) GetAttributesOk() (*UserUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *UserUpdateData) GetId() string
GetId returns the Id field value.
func (o *UserUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *UserUpdateData) GetType() UsersType
GetType returns the Type field value.
func (o *UserUpdateData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o UserUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserUpdateData) SetAttributes(v UserUpdateAttributes)
SetAttributes sets field value.
func (o *UserUpdateData) SetId(v string)
SetId sets field value.
func (o *UserUpdateData) SetType(v UsersType)
SetType sets field value.
func (o *UserUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserUpdateRequest Update a user.
type UserUpdateRequest struct {
// Object to update a user.
Data UserUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserUpdateRequest(data UserUpdateData) *UserUpdateRequest
NewUserUpdateRequest instantiates a new UserUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserUpdateRequestWithDefaults() *UserUpdateRequest
NewUserUpdateRequestWithDefaults instantiates a new UserUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserUpdateRequest) GetData() UserUpdateData
GetData returns the Data field value.
func (o *UserUpdateRequest) GetDataOk() (*UserUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o UserUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserUpdateRequest) SetData(v UserUpdateData)
SetData sets field value.
func (o *UserUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsersApi service type
type UsersApi datadog.Service
func NewUsersApi(client *datadog.APIClient) *UsersApi
NewUsersApi Returns NewUsersApi.
func (a *UsersApi) CreateUser(ctx _context.Context, body UserCreateRequest) (UserResponse, *_nethttp.Response, error)
CreateUser Create a user. Create a user for your organization.
func (a *UsersApi) DisableUser(ctx _context.Context, userId string) (*_nethttp.Response, error)
DisableUser Disable a user. Disable a user. Can only be used with an application key belonging to an administrator user.
func (a *UsersApi) GetInvitation(ctx _context.Context, userInvitationUuid string) (UserInvitationResponse, *_nethttp.Response, error)
GetInvitation Get a user invitation. Returns a single user invitation by its UUID.
func (a *UsersApi) GetUser(ctx _context.Context, userId string) (UserResponse, *_nethttp.Response, error)
GetUser Get user details. Get a user in the organization specified by the user’s `user_id`.
func (a *UsersApi) ListUserOrganizations(ctx _context.Context, userId string) (UserResponse, *_nethttp.Response, error)
ListUserOrganizations Get a user organization. Get a user organization. Returns the user information and all organizations joined by this user.
func (a *UsersApi) ListUserPermissions(ctx _context.Context, userId string) (PermissionsResponse, *_nethttp.Response, error)
ListUserPermissions Get a user permissions. Get a user permission set. Returns a list of the user’s permissions granted by the associated user's roles.
func (a *UsersApi) ListUsers(ctx _context.Context, o ...ListUsersOptionalParameters) (UsersResponse, *_nethttp.Response, error)
ListUsers List all users. Get the list of all users in the organization. This list includes all users even if they are deactivated or unverified.
func (a *UsersApi) SendInvitations(ctx _context.Context, body UserInvitationsRequest) (UserInvitationsResponse, *_nethttp.Response, error)
SendInvitations Send invitation emails. Sends emails to one or more users inviting them to join the organization.
func (a *UsersApi) UpdateUser(ctx _context.Context, userId string, body UserUpdateRequest) (UserResponse, *_nethttp.Response, error)
UpdateUser Update a user. Edit a user. Can only be used with an application key belonging to an administrator user.
UsersResponse Response containing information about multiple users.
type UsersResponse struct {
// Array of returned users.
Data []User `json:"data,omitempty"`
// Array of objects related to the users.
Included []UserResponseIncludedItem `json:"included,omitempty"`
// Object describing meta attributes of response.
Meta *ResponseMetaAttributes `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsersResponse() *UsersResponse
NewUsersResponse instantiates a new UsersResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsersResponseWithDefaults() *UsersResponse
NewUsersResponseWithDefaults instantiates a new UsersResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsersResponse) GetData() []User
GetData returns the Data field value if set, zero value otherwise.
func (o *UsersResponse) GetDataOk() (*[]User, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsersResponse) GetIncluded() []UserResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *UsersResponse) GetIncludedOk() (*[]UserResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsersResponse) GetMeta() ResponseMetaAttributes
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *UsersResponse) GetMetaOk() (*ResponseMetaAttributes, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsersResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *UsersResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *UsersResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o UsersResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsersResponse) SetData(v []User)
SetData gets a reference to the given []User and assigns it to the Data field.
func (o *UsersResponse) SetIncluded(v []UserResponseIncludedItem)
SetIncluded gets a reference to the given []UserResponseIncludedItem and assigns it to the Included field.
func (o *UsersResponse) SetMeta(v ResponseMetaAttributes)
SetMeta gets a reference to the given ResponseMetaAttributes and assigns it to the Meta field.
func (o *UsersResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsersType Users resource type.
type UsersType string
List of UsersType.
const (
USERSTYPE_USERS UsersType = "users"
)
func NewUsersTypeFromValue(v string) (*UsersType, error)
NewUsersTypeFromValue returns a pointer to a valid UsersType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UsersType) GetAllowedValues() []UsersType
GetAllowedValues reeturns the list of possible values.
func (v UsersType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UsersType) Ptr() *UsersType
Ptr returns reference to UsersType value.
func (v *UsersType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.